This topic is locked

CKfinder disabled

8/19/2015 10:02:00 AM
PHPRunner General questions
G
gudon author

I am using PHP5.3/PHPRunner 8.0/ckeditor 3.6.6.1/ckfinder 2.4.1.
I wanted to upload images using ckfinder and have followed the instructions here:
https://asprunner.com/phprunner/docs/rich_text_editor_plugins.htm
When I tested my applications, I get the error when trying to upload:

The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.
I found this is related to the CheckAuthentication() function in the config.php of ckfinder. More specifically, it seems that ckfinder does not receive the session variables from PHPRunner. I do have a login page and when I have print_r ($_SESSION) added in the event, I do see my $_SESSION["UserID"] is there.
I did further test, and when the function looks like this:

if (!$_SESSION["UserID"])
return true;


The ckfinder uploading works.
When it is:

if ($_SESSION["UserID"])
return true;


ckfinder does not work and the "security" error will show up.
Could anyone help? Thank you.

Sergey Kornilov admin 8/19/2015

Not really sure how we can help based on this info. Needs to see the whole project.