- Posts: 56
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
- torilee93
- Topic Author
- Offline
- Senior Member
Less
More
2 years 8 months ago #218846
by torilee93
Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22] was created by torilee93
Hello,
I am trying to use comfort update to update limesurvey. I am on limesurvey Version 3.27.6+210629
When I run the comfortupdate I end up getting the Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]: Column not found. 1054 Unknown column 'question' in "field list" File update_helper.php line 33. What does this mean and how might I be able to fix it?
(I have also attached a image of the error)
- Tori
I am trying to use comfort update to update limesurvey. I am on limesurvey Version 3.27.6+210629
When I run the comfortupdate I end up getting the Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]: Column not found. 1054 Unknown column 'question' in "field list" File update_helper.php line 33. What does this mean and how might I be able to fix it?
(I have also attached a image of the error)
- Tori
Attachments:
The topic has been locked.
- GuernseyResearch
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 5
2 years 8 months ago #218850
by GuernseyResearch
Replied by GuernseyResearch on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
This appears to be a bug in the update process. We failed on a similar update. You will need to restore the database and files from the copies you made during the update process.
I have submitted a bug report.
I have submitted a bug report.
The topic has been locked.
- ollehar
- Offline
- LimeSurvey GmbH Employee
Less
More
- Posts: 522
- Thank you received: 108
2 years 8 months ago #218861
by ollehar
Replied by ollehar on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
This error is related to a previous update run that was not completed, maybe because of a MySQL 8 incompatibility. We're working on it and will release a number of fixes later.
The topic has been locked.
- ollehar
- Offline
- LimeSurvey GmbH Employee
Less
More
- Posts: 522
- Thank you received: 108
2 years 8 months ago #218870
by ollehar
Replied by ollehar on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
Version 5.1.1 released, please try again with this new version and let us know if any problems remain. Thank you!
@torilee93 you might have to restore your previous database from the backup and try again, sorry.
@torilee93 you might have to restore your previous database from the backup and try again, sorry.
The topic has been locked.
- ollehar
- Offline
- LimeSurvey GmbH Employee
Less
More
- Posts: 522
- Thank you received: 108
2 years 8 months ago #218876
by ollehar
Replied by ollehar on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
5.1.2 released.
The topic has been locked.
- torilee93
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 56
- Thank you received: 0
2 years 8 months ago #218877
by torilee93
Replied by torilee93 on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
Hi @ollehar
Unfortunately when I tried the comfortupdate again, I got a different error.
It now says CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-3n' for key "lime_idx1_label_l1ons'
File update_helper.php, line 33
I have attached a photo of the error.
- Tori
Unfortunately when I tried the comfortupdate again, I got a different error.
It now says CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-3n' for key "lime_idx1_label_l1ons'
File update_helper.php, line 33
I have attached a photo of the error.
- Tori
Attachments:
The topic has been locked.
- torilee93
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 56
- Thank you received: 0
2 years 8 months ago #218908
by torilee93
Replied by torilee93 on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
Hi @ollehar
Even with 5.1.2. released, I am getting this error
CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-3n' for key "lime_idx1_label_l1ons'
Even with 5.1.2. released, I am getting this error
CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-3n' for key "lime_idx1_label_l1ons'
The topic has been locked.
- ollehar
- Offline
- LimeSurvey GmbH Employee
Less
More
- Posts: 522
- Thank you received: 108
2 years 8 months ago #218909
by ollehar
Replied by ollehar on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
@torilee93 This might be because your database failed in the middle of the update. Can you restore the database from your backup and try to update again?
The topic has been locked.
- torilee93
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 56
- Thank you received: 0
2 years 8 months ago #218911
by torilee93
Replied by torilee93 on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
@ollehar I did restore from a previous backup. After running comfortupdate (5.1.3/210817), it asks to update the database.
When I proceed I get the error
An non-recoverable error happened during the update. Error details:
CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-en' for key 'lime_idx1_label_l10ns'
File update_helper.php, line 33.
When I proceed I get the error
An non-recoverable error happened during the update. Error details:
CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1-en' for key 'lime_idx1_label_l10ns'
File update_helper.php, line 33.
The topic has been locked.
- GuernseyResearch
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 5
2 years 8 months ago #218912
by GuernseyResearch
Replied by GuernseyResearch on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
Did you restore the database and the files from your previous backup and check to see that it worked before you attempted the update?
The topic has been locked.
- torilee93
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 56
- Thank you received: 0
2 years 8 months ago #218913
by torilee93
Replied by torilee93 on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
Hello @GuernseyResearch
Yes, after restoring from a previous backup, I was able to navigate throughtout limesurvey without any issues.
Yes, after restoring from a previous backup, I was able to navigate throughtout limesurvey without any issues.
The topic has been locked.
- GuernseyResearch
- Offline
- Junior Member
Less
More
- Posts: 31
- Thank you received: 5
2 years 8 months ago #218914
by GuernseyResearch
Replied by GuernseyResearch on topic Error CDbCommand failed to excute the SQL statement: SQLSTATE[42S22]
You are using this to go from LS3 to LS5?
The topic has been locked.