Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

KCFinder Image Browse Server not working

More
7 years 5 months ago #155866 by pdaubresse
Replied by pdaubresse on topic KCFinder Image Browse Server not working
Thanks a lot for sharing your solution. I spent much time on this problem.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 3 months ago #157953 by tammo
Replied by tammo on topic KCFinder Image Browse Server not working
I wrote a bug report, because in the current 2.06LTS the error still seems to exist.


bugs.limesurvey.org/view.php?id=12629


How did you solve it?

@DenisChenu: browse resources/reload did not work here.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 3 months ago #157954 by DenisChenu
Replied by DenisChenu on topic KCFinder Image Browse Server not working
1st : activate debug mode
2nd : look at your session cookies if the domain name are OK (this can happen with specific version, but think it was fixed in last 2.6lts)
3rd : it work good since a lot of time on all my instance

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 3 months ago #157957 by tammo
Replied by tammo on topic KCFinder Image Browse Server not working
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 reporting, education and customized themes
respondage.nl
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 3 months ago #157958 by tammo
Replied by tammo on topic KCFinder Image Browse Server not working
And the error message disappears when I put debug = 0 again.

Tammo


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • tammo
  • tammo's Avatar
  • Offline
  • Official LimeSurvey Partner
  • Official LimeSurvey Partner
More
7 years 3 months ago #157959 by tammo
Replied by tammo on topic KCFinder Image Browse Server not working
So with debug = 0, I can login again, but still the KCFinder does not work...


Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 years 3 months ago #157966 by DenisChenu
Replied by DenisChenu on topic KCFinder Image Browse Server not working
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 support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose