Help us to help you!

Our aim is to offer you the best service possible, to do this we need to know: (1.) Joomla! version (2.) Server type (3.) Editor version (4.) Browsers type & Version and any (5.) Error messages you may have, for help in finding this information please - click here…We would also invite you to read our form rules before posting - read more…

Welcome, Guest
Please Login or Register.    Lost Password?

The file browser is disabled for security reasons. why?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: The file browser is disabled for security reasons. why?
#780
The file browser is disabled for security reasons. why? 1 Year, 5 Months ago Karma: 0
Joomla : 1.5.20
JCKeditor : 3.3.1
XAMP (Windows): 1.7.3
Apache : 2.2.14 (Win32)
PHP : 5.3.1
Browser : Not Applicable
Errors : The file browser is disabled for security reasons. ...

I've just recently installed Joomla and JCKeditor and have been having trouble getting the file browser to work, it keeps telling me that it's disabled.

Digging around in the code led me to '\plugins\jfilebrowser\config.php' and the 'CheckAuthentication' function, if I modify this to simply return true, the browser works, otherwise it doesn't.

digging further brought me to '\includes\ckeditor\session\session.php' and 'getSessionInstance' and the lines:
Code:


//$client = JRequest::getInt('client',1); conflict when using Joomla JRequest
//Lets client directly from $_GET variable
$client = $_GET['client'];
$client =   (isset($client) && $client == 1 ? 'administrator' : 'site' );



Doing a print_r on $_GET shows that $_GET['client'] is 'undefined' meaning that 'client' is being set to 'site'. This being the case I tryed logging into the front end and low and behold the browser worked, both in the front end and the back end, logging out f the front end rendered the browser in-operable again. Is there something wrong with my configuration or is this a bug in JCKeditor?
T.Wii
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/08/31 17:41 By T.Wii.
The administrator has disabled public write access.
 
#856
Re: The file browser is disabled for security reasons. why? 1 Year, 5 Months ago Karma: 0
Before doing this try this first, what it fixes may fix the same root cause:
http://www.joomlackeditor.com/forum/7-file-manager/410-i-cant-see-files-in-filebrowser?limit=10&starhttp://www.joomlackeditor.com/forum/7-file-manager/410-i-cant-see-files-in-filebrowser?limit=10&start=20#863

O.K, I fixed it:
I simply removed the & (by reference) from the $params variable from the afterLoad function in the following files:
JOOMLA_PATH\plugins\editors\jckeditor\includes\ckeditor\plugins\editor\client.php
JOOMLA_PATH\plugins\editors\jckeditor\includes\ckeditor\plugins\editor\sigparameters.php
JOOMLA_PATH\plugins\editors\jckeditor\includes\ckeditor\plugins\editor\parameters.php
JOOMLA_PATH\plugins\editors\jckeditor\includes\ckeditor\plugins\editor\allvideosparameters.php
T.Wii
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/09/10 14:38 By T.Wii.Reason: Fixed url
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Paul.F