Have installed Commons3.0 (Drupal 7) distribution and Limesurveys 2 on XAMPP and I am trying to enable limesurveys_sync module. There is an exception which is thrown (provided below). The module installation does proceed if we comment out the calling code for the function limesurvey_sync_fake_survey is commented out..
Error message
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xxxx.surveys' doesn't exist: INSERT INTO {surveys} (sid, active, listpublic, owner_id, admin, language, datecreated) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => 462 [:db_insert_placeholder_1] => Y [:db_insert_placeholder_2] => Y [:db_insert_placeholder_3] => 1 [:db_insert_placeholder_4] => The LimeSurvey Sync module [:db_insert_placeholder_5] => en [:db_insert_placeholder_6] => 2013-07-19 20:07:32 ) in limesurvey_sync_fake_survey() (line 551 of C:\xampp\htdocs\commons\sites\all\modules\limesurvey_sync\ls_api\limesurvey_sync_api_sync.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | PDO_Exception_when_enabling_Limesurveys_Sync_Modules-2045883-3.patch | 2.32 KB | thedut |
| #3 | limesurvey_sync.inc_.zip | 9.11 KB | thedut |
Comments
Comment #1
thedut commentedI need to check this !
As a workarround, the limesurvey_sync_fake_survey() function is not important, you can disable it (commenting it).
I will dig on this issue, thanks.
Comment #2
vispateresa commentedHello, I'm having the same problem with Drupal 7 and LimeSurvey Sync.
I tryed the solution to disable the function limesurvey_sync_fake_survey() and now it's working
Comment #3
thedut commentedThis issue returns a fatal error.
It occurs on specific conditions :
Here is the patch fixing this issue (or the corresponding modified file : the limesurvey_sync.inc file).
I will include this fix into the next limesurvey_sync release.
Comment #4
thedut commentedComment #5
thedut commentedFixed into the 7.x-1.4 and 6.x-1.4 LimeSurvey Sync module releases.