View Issue Details

IDProjectCategoryView StatusLast Update
15307Bug reportsSurvey editingpublic2019-12-03 15:53
Reporteruibklime1 Assigned Tocdorin  
Status assignedResolutionopen 
Product Version3.17.x 
Summary15307: Cannot create new surveys

After upgrading from Limesurvey 2.5 to Limesurvey 3.17.16, new surveys could not be created. with PHP debugging, a warning message inidicated a problem with Languages. See screenshot, additional info. Just to be sure, we used global settings to change and save the site language.

On a fresh install, we do not see this error.

Steps To Reproduce

Apparently, some very old surveys had NULL entries for their 'language' column and did not get corresponding surveys_languagesettings entries (this table exists and is populated BEFORE the upgrade).

Additional Information

array_merge(): Argument #2 is not an array

187 $surveynames[] = array_merge($result->attributes, $result->languagesettings[$result->language]->attributes);

Workaround was to use solutino provided on stackoverflow, and cast the 2nd parameter to an (array) type.
We saw the following log file entry that might be relevant:

        [18-Sep-2019 16:02:21 Europe/Vienna] PHP Notice:  Undefined index: de in /var/www/html/limesurvey/limesurvey3177/application/helpers/common_helper.php on line 187

Note, there is another file, ./models/SurveyDynamic.php, which contains a similar line.

TagsNo tags attached.
Complete LimeSurvey version number (& build)3.17.16+190906
I will donate to the project if issue is resolvedNo
BrowserChrome (Windows64)
Database & DB-Versionmysql 5.7
Server OS (if known)
Webserver software & version (if known)
PHP VersionPHP 7.1




2019-09-18 17:29


Issue History

Date Modified Username Field Change
2019-09-18 17:29 uibklime1 New Issue
2019-09-18 17:29 uibklime1 File Added: 2019-09-18 15_13_11-PHP warning.png
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing
2019-12-03 15:53 cdorin Assigned To => cdorin
2019-12-03 15:53 cdorin Status new => assigned