View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
15307Bug reportsSurvey editingpublic2020-12-23 18:50
Reporteruibklime1 Assigned Tocdorin  
PrioritynoneSeveritycrash 
Status closedResolutionfixed 
Product Version3.17.x 
Summary15307: Cannot create new surveys
Description

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.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)3.17.16+190906
I will donate to the project if issue is resolvedNo
BrowserChrome (Windows64)
Database type & versionmysql 5.7
Server OS (if known)
Webserver software & version (if known)
PHP VersionPHP 7.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

cdorin

cdorin

2020-07-10 00:18

reporter   ~58887

Hello and thanks for reporting it.
Have you tried the latest LTS version recently? Are you still having issues?

uibklime1

uibklime1

2020-11-05 15:01

reporter   ~60562

@cdorin sorry for late response. This accounts email was improprerly configured till now.

What's the point of using the latest LTS? Don't call it LTS if we always need to upgrade :) Anyway, currently on 3.22.4, where this code is exactly the same. I believe I updated the older surveys with a default values instead of NULL for their language field.

cdorin

cdorin

2020-11-05 15:20

reporter   ~60564

Super, great to hear everything is fine.

Latest LTS = it includes (security) patches and fixes. It is your choice if you wish to stick to an older version :) : https://manual.limesurvey.org/Version_guide#3.x

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
2020-07-10 00:18 cdorin Assigned To cdorin =>
2020-07-10 00:18 cdorin Status assigned => new
2020-07-10 00:18 cdorin Description Updated
2020-07-10 00:18 cdorin Additional Information Updated
2020-07-10 00:18 cdorin Note Added: 58887
2020-11-05 15:01 uibklime1 Note Added: 60562
2020-11-05 15:20 cdorin Note Added: 60564
2020-12-23 18:50 cdorin Assigned To => cdorin
2020-12-23 18:50 cdorin Status new => closed
2020-12-23 18:50 cdorin Resolution open => fixed