View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
06424 | Bug reports | Survey taking | public | 2012-08-03 23:26 | 2012-08-08 13:55 |
Reporter | tim44202 | Assigned To | c_schmitz | ||
Priority | normal | Severity | partial_block | ||
Status | closed | Resolution | fixed | ||
Product Version | 1.92+ | ||||
Fixed in Version | 1.92+ | ||||
Summary | 06424: SQL Server Error - Taking Survey | ||||
Description | After an update any user taking a survey receives the following error: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'lastpage'.:UPDATE lime_survey_62944 SET [lastpage]='1', [62944X29X135]='123456', [62944X29X155]='654321', [62944X29X136]='123', [62944X29X137]='ABC', [62944X29X138]='1' WHERE ID=82 The data entry Function works fine. The DB is SQL Server 2005 The present version is 1.92 the error occurred after applying a build using comfortupdate. There were no errors during update. It went unreported by our user so I am not sure which build triggered the problem. Problem occurs on all surveys on two different internal LimeSurvey web sites. | ||||
Steps To Reproduce | Take this short survey. http://limesurvey.jfsa-cleveland.org/index.php?sid=62944&lang=en Question 1 any two digit response between 60 and 79. | ||||
Tags | No tags attached. | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 120801 | ||||
I will donate to the project if issue is resolved | Yes | ||||
Browser | Internet Explorer 8 or Google Chrome 21.0.1180.60 m | ||||
Database type & version | MS SQL Server 2005 | ||||
Server OS (if known) | Windows 2008 | ||||
Webserver software & version (if known) | Apache/2.2.14 (Win32) PHP/5.2.12 | ||||
PHP Version | PHP Version 5.2.12 | ||||
I can reproduce the problem following the steps described above. Can you attach the DB backup which was created prior to the update (should be located at /tmp?! From which version did you update? |
|
Which DB driver are you using in config.php? |
|
? |
|
ODBC Support enabled |
|
I am sorry, that's not the answer to my question. Can you please re-read? |
|
Sorry is this what you wanted? $databasetype = 'odbc_mssql'; |
|
Yes, thank you. I will retest the upgrade and let you know. Maybe you can restore the original database and try to assign root permissions to the LimeSurvey DB user, then run the upgrade again. Because if this has failed more stuff may have failed. |
|
The workaround cured the problem. I just noticed that only one of the two Limesurvey websites has this problem. |
|
Fix committed to Yii branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9262 |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=9263 |
|
It was indeed an error in the update script. Thank you for bringing this to our attention. |
|
LimeSurvey: master 9f131938 2012-08-07 11:44:05 Details Diff |
Fixed issue 06424: Lastpage field not being added in MSSQL when upgrading from 1.85 or older |
Affected Issues 06424 |
|
mod - common_functions.php | Diff File | ||
LimeSurvey: Yii 2401db5a 2012-08-07 11:47:01 Details Diff |
Fixed issue 06424: Lastpage field not being added in MSSQL when upgrading from 1.85 or older |
Affected Issues 06424 |
|
mod - application/helpers/database_helper.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-08-03 23:26 | tim44202 | New Issue | |
2012-08-03 23:49 | Mazi | Note Added: 20177 | |
2012-08-03 23:49 | Mazi | Assigned To | => c_schmitz |
2012-08-03 23:49 | Mazi | Status | new => feedback |
2012-08-05 18:38 | c_schmitz | Note Added: 20208 | |
2012-08-06 11:23 | c_schmitz | Note Edited: 20208 | |
2012-08-06 11:23 | c_schmitz | Note Added: 20218 | |
2012-08-06 15:05 | tim44202 | Note Added: 20226 | |
2012-08-06 15:05 | tim44202 | Status | feedback => assigned |
2012-08-06 15:06 | c_schmitz | Note Added: 20227 | |
2012-08-06 15:06 | c_schmitz | Status | assigned => feedback |
2012-08-06 15:30 | tim44202 | Note Added: 20228 | |
2012-08-06 15:30 | tim44202 | Status | feedback => assigned |
2012-08-06 20:58 | c_schmitz | Note Added: 20233 | |
2012-08-06 21:00 | c_schmitz | Note Edited: 20233 | |
2012-08-06 21:26 | tim44202 | Note Added: 20234 | |
2012-08-07 20:47 | c_schmitz | Changeset attached | => LimeSurvey Yii 2401db5a |
2012-08-07 20:47 | c_schmitz | Note Added: 20254 | |
2012-08-07 20:47 | c_schmitz | Resolution | open => fixed |
2012-08-07 20:47 | c_schmitz | Changeset attached | => LimeSurvey master 9f131938 |
2012-08-07 20:47 | c_schmitz | Note Added: 20255 | |
2012-08-07 20:47 | c_schmitz | Note Added: 20256 | |
2012-08-07 20:48 | c_schmitz | Status | assigned => resolved |
2012-08-07 20:48 | c_schmitz | Fixed in Version | => 1.92+ |
2012-08-08 13:55 | c_schmitz | Status | resolved => closed |