KCFinder Image Browse Server not working

More
2 years 11 months ago #157957 by tammo
Debug=1 now, cannot login anymore:

PHP warning

array_merge(): Argument #2 is not an array

/home/admin/domains/vragenlijst.toolsforresearch.com/public_html/application/helpers/common_helper.php(203)

191 $timeadjust = getGlobalSetting('timeadjust');
192 App()->setLanguage((isset(Yii::app()->session) ? Yii::app()->session : 'en'));
193
194 if(is_null($cached)) {
195 $surveyidresult = Survey::model()
196 ->permission(Yii::app()->user->getId())
197 ->with('defaultlanguage')
198 ->findAll(array('order'=>'surveyls_title'));
199
200 $surveynames = array();
201 foreach ($surveyidresult as $result)
202 {
203 $surveynames[] = array_merge($result->attributes, $result->defaultlanguage->attributes);
204 }
205
206 $cached = $surveynames;
207 } else {
208 $surveynames = $cached;
209 }
210 $surveyselecter = "";
211 if ($returnarray===true) return $surveynames;
212 $activesurveys='';
213 $inactivesurveys='';
214 $expiredsurveys='';
215 if ($surveynames)

>>> Perhaps stupid question: where do I find session cookies? What should I look for?


Tammo ter Hark at Respondage
For Limesurvey education and customized themes
respondage.nl
The topic has been locked.
More
2 years 11 months ago #157958 by tammo
And the error message disappears when I put debug = 0 again.

Tammo


Tammo ter Hark at Respondage
For Limesurvey education and customized themes
respondage.nl
The topic has been locked.
More
2 years 11 months ago #157959 by tammo
So with debug = 0, I can login again, but still the KCFinder does not work...


Tammo ter Hark at Respondage
For Limesurvey education and customized themes
respondage.nl
The topic has been locked.
More
2 years 11 months ago #157966 by DenisChenu
You have a survey without survey_language.

I think we already fix it ???? But seems not in 2.6lts : github.com/SondagesPro/LimeSurvey-Sondag...mmon_helper.php#L203

You can fix it finding the broken survey in DB … (or adding something like if(empty($result->attributes) || empty($result->defaultlanguage->attributes){ tracevar($result) } else {//current code (line broken) } )

About session cookies information : Firefox F12

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.
Attachments:
The topic has been locked.

Start now!

Just create your account and start using Limesurvey today.

Register now