Welcome, Guest
Username: Password: Remember me

TOPIC: KCFinder Image Browse Server not working

KCFinder Image Browse Server not working 4 months 2 weeks ago #110016

In the Survey editor, after I clicked on the Image > Browse Server, the KCFinder editor pops up but when click on any of the buttons (Upload, Refresh, Settings etc), nothing will happen, as seen in Chrome.

In Firefox, page became 'The address wasn't understood. Firefox doesn't know how to open this address, because the protocol (kcact) isn't associated with any program. You might need to install other software to open this address.'

At the backend, the upload directory already has the permission to auto-create the folder of the survey id, since images folder already created.

We are using Version 2.05+ Build 140502. But the problem is that it works fine in our Dev server but not in the Prod server.

Appreciate any help.


browse.png



upload.png
The administrator has disabled public write access.

KCFinder Image Browse Server not working 4 months 6 days ago #110330

Found the root cause.
There is a variable 'cookieDomain' in kcfinder/config.php that is set to blank.
However at tpl_javascript.php, _.kuki.domain is set based on the cookieDomain, which now populated based on the servername, which is not correct for our case because our site appears under the reverse proxy URL.

Once I set cookieDomain to our reverse proxy domain, it fixed the problem. However, I am not sure how to retain this, when we do LimeSurvey version upgrade later.

Appreciate if LS team can set the cookieDomain value based on application/config -> components -> request -> hostInfo.

Thank you
The administrator has disabled public write access.

KCFinder Image Browse Server not working 4 months 5 days ago #110393

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6472
  • Thank you received: 855
  • Karma: 254
Hi,

Can you report a bug or a feature request.

I think not components -> request -> hostInfo but
components -> session -> cookieParams -> domain (and path).
The administrator has disabled public write access.

KCFinder Image Browse Server not working 4 months 5 days ago #110396

According to this documentation,
manual.limesurvey.org/Tokens

I only set components -> request -> hostInfo.
Not aware of the other one.

Thanks.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.101 seconds
Donation Image