View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
15307 | Bug reports | Survey editing | public | 2019-09-18 17:29 | 2020-12-23 18:50 |
Reporter | uibklime1 | Assigned To | cdorin | ||
Priority | none | Severity | crash | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.17.x | ||||
Summary | 15307: 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.
Note, there is another file, ./models/SurveyDynamic.php, which contains a similar line. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 3.17.16+190906 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome (Windows64) | ||||
Database type & version | mysql 5.7 | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | PHP 7.1 | ||||
Hello and thanks for reporting it. |
|
@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. |
|
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 |
|
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 |