View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
15555Bug reportsSurvey editingpublic2020-01-20 09:52
Reporterfofiales Assigned Tocdorin  
PrioritynoneSeveritypartial_block 
Status closedResolutionunable to reproduce 
Product Version3.19.1 
Summary15555: Cannot create new surveys
Description

Hello, we have a new instalation of limesurvey where our employees was working, we have 3 surveys created but suddenly we cannot create new surveys. It seems thats have an error with de language?

When we try to create a new survey we have the following error:

PHP warning
array_merge(): Argument #2 is not an array

/servicios/limesurvey/application/helpers/common_helper.php(187)

175 static $cached = null;
176 $bCheckIntegrity = false;
177 $timeadjust = getGlobalSetting('timeadjust');
178 App()->setLanguage((isset(Yii::app()->session['adminlang']) ? Yii::app()->session['adminlang'] : 'en'));
179 $surveynames = array();
180
181 if (is_null($cached)) {
182 $surveyidresult = Survey::model()
183 ->permission(Yii::app()->user->getId())
184 ->with('languagesettings')
185 ->findAll();
186 foreach ($surveyidresult as $result) {
187 $surveynames[] = array_merge($result->attributes, $result->languagesettings[$result->language]->attributes);
188 }
189
190 usort($surveynames, function($a, $b)
191 {
192 return strcmp($a['surveyls_title'], $b['surveyls_title']);
193 });
194 $cached = $surveynames;
195 } else {
196 $surveynames = $cached;
197 }
198 $surveyselecter = "";
199 if ($bReturnArray === true) {

We attach some screenshots about the error.

Regards.

TagsNo tags attached.
Attached Files
error_limesurvey1.JPG (166,681 bytes)
error_limesurvey2.JPG (392,341 bytes)
error_limesurvey3.JPG (430,693 bytes)
Bug heat6
Complete LimeSurvey version number (& build)LimeSurvey Versión 3.19.1+191009
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql 5.7
Server OS (if known)
Webserver software & version (if known)
PHP VersionPHP 7.2.19-0ubuntu0.18.04.2

Users monitoring this issue

There are no users monitoring this issue.

Activities

fofiales

fofiales

2019-11-13 10:49

reporter   ~54554

Hello, i solved the problem deleting "sid=852349" from lime_surveys table, but I don´t know what is the problem with this registry.

| sid | owner_id | gsid | admin | active | expires | startdate | adminemail | anonymized | faxto | format | savetimings | template | language | additional_languages | datestamp | usecookie | allowregister | allowsave | autonumber_start | autoredirect | allowprev | printanswers | ipaddr | refurl | datecreated | showsurveypolicynotice | publicstatistics | publicgraphs | listpublic | htmlemail | sendconfirmation | tokenanswerspersistence | assessments | usecaptcha | usetokens | bounce_email | attributedescriptions | emailresponseto | emailnotificationto | tokenlength | showxquestions | showgroupinfo | shownoanswer | showqnumcode | bouncetime | bounceprocessing | bounceaccounttype | bounceaccounthost | bounceaccountpass | bounceaccountencryption | bounceaccountuser | showwelcome | showprogress | questionindex | navigationdelay | nokeyboard | alloweditaftercompletion | googleanalyticsstyle | googleanalyticsapikey |

| 399352 | 1 | 1 | Administrator | Y | NULL | 2019-10-21 10:59:00 | noreply@telefonicaed.com | N | | A | N | fruity | pt | | N | N | N | Y | 0 | N | N | N | N | N | 2019-10-21 11:00:26 | 0 | N | N | N | Y | Y | N | N | N | N | noreply@telefonicaed.com | NULL | | | 15 | N | B | N | X | NULL | N | NULL | NULL | NULL | NULL | NULL | Y | Y | 0 | 0 | N | N | | |

| 762881 | 1 | 1 | Administrator | N | NULL | NULL | noreply@telefonicaed.com | N | | A | N | fruity | es | | N | N | N | Y | 0 | N | N | N | N | N | 2019-10-23 17:59:13 | 0 | N | N | N | Y | Y | N | N | N | N | noreply@telefonicaed.com | NULL | | | 15 | N | B | N | X | NULL | N | NULL | NULL | NULL | NULL | NULL | Y | Y | 0 | 0 | N | N | | |

| 852349 | 5 | 1 | Diego Martinez Reiriz | N | NULL | NULL | diego.martinezreiriz@telefonica.com | N | | G | N | fruity | es | | N | N | N | Y | 0 | N | N | N | N | N | 2019-11-11 11:32:38 | 0 | N | N | N | Y | Y | N | N | N | N | | NULL | NULL | NULL | 15 | Y | B | Y | X | NULL | N | NULL | NULL | NULL | NULL | NULL | Y | Y | 0 | 0 | N | N | NULL | NULL |

DenisChenu

DenisChenu

2019-11-21 08:47

developer   ~54745

  1. PHP warning is shown ONLY with debug mode
  2. Did you try Check data integrity
cdorin

cdorin

2019-11-27 18:18

reporter   ~54840

Hello, any updates on the issue :) ? Have you tried Denis' advice?

Issue History

Date Modified Username Field Change
2019-11-11 13:16 fofiales New Issue
2019-11-11 13:16 fofiales File Added: error_limesurvey1.JPG
2019-11-11 13:16 fofiales File Added: error_limesurvey2.JPG
2019-11-11 13:16 fofiales File Added: error_limesurvey3.JPG
2019-11-13 10:49 fofiales Note Added: 54554
2019-11-20 17:26 cdorin Assigned To => cdorin
2019-11-20 17:26 cdorin Status new => assigned
2019-11-21 08:47 DenisChenu Note Added: 54745
2019-11-27 18:18 cdorin Status assigned => feedback
2019-11-27 18:18 cdorin Note Added: 54840
2020-01-20 09:52 cdorin Status feedback => closed
2020-01-20 09:52 cdorin Resolution open => unable to reproduce