Page 1 of 1

FCKeditorX patch for server error 500

Posted: Wed Jan 11, 2006 7:25 pm
by dam
Hello,
I had some error in FCKeditorX with the file manager : XML server error 500 or something like that.

I just wanted to tell you that I solved this serious problem by adding the following lines at the end of modules/FCKeditorX/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php :

Code: Select all

$Config['UserFilesAbsolutePath'] = $config['uploads_path'];

$logger->log("UserFilesAbsolutePath : ".$Config['UserFilesAbsolutePath']);

$Config['UserFilesAbsolutePath'] = substr($Config['UserFilesAbsolutePath'], strpos($Config['UserFilesAbsolutePath'], "/"));

$logger->log("UserFilesAbsolutePath : ".$Config['UserFilesAbsolutePath']);



$Config['UserFilesAbsolutePath'] = $Config['UserFilesAbsolutePath']."/" ;

$logger->log("UserFilesAbsolutePath : ".$Config['UserFilesAbsolutePath']);
Perhaps it can be useful for someone...

Re: FCKeditorX patch for server error 500

Posted: Thu Jan 12, 2006 12:20 am
by megabob3
dam wrote: Hello,
I had some error in FCKeditorX with the file manager : XML server error 500 or something like that.

I just wanted to tell you that I solved this serious problem by adding the following lines at the end of modules/FCKeditorX/FCKeditor/editor/filemanager/browser/default/connectors/php/config.php :

Code: Select all

$Config['UserFilesAbsolutePath'] = $config['uploads_path'];

$logger->log("UserFilesAbsolutePath : ".$Config['UserFilesAbsolutePath']);

$Config['UserFilesAbsolutePath'] = substr($Config['UserFilesAbsolutePath'], strpos($Config['UserFilesAbsolutePath'], "/"));

$logger->log("UserFilesAbsolutePath : ".$Config['UserFilesAbsolutePath']);



$Config['UserFilesAbsolutePath'] = $Config['UserFilesAbsolutePath']."/" ;

$logger->log("UserFilesAbsolutePath : ".$Config['UserFilesAbsolutePath']);
Perhaps it can be useful for someone...
Thx i will look.

Re: FCKeditorX patch for server error 500

Posted: Thu Jan 12, 2006 10:30 pm
by megabob3
Surely you are right thx.

But it's enough insert this 2 line code:

$Config['UserFilesAbsolutePath'] = $config['uploads_path'];
$logger->log("UserFilesAbsolutePath : ".$Config['UserFilesAbsolutePath']);



Thx alot Dam