Removing the CheckAuthentication() function from the new version of config.php causes CKFinder to disable itself "for security reasons."

Adding it back in causes a PHP error:

PHP Fatal error: Cannot redeclare CheckAuthentication() (previously declared ...

CommentFileSizeAuthor
#3 config.txt9.92 KBt-readyroc

Comments

dczepierga’s picture

Status: Active » Postponed (maintainer needs more info)

As error say: u have somewhere redeclaration of CheckAuthentication() function... u have line there where u have this redeclaration, so u must find function before that line...

I check this and it works without problem for me...

Greetings

mkesicki’s picture

@t-readyroc ,
please check if you follow all steps described here to install CKFinder with CKEditor module :
http://docs.cksource.com/CKEditor_for_Drupal/Open_Source/Drupal_7/CKFinder

t-readyroc’s picture

StatusFileSize
new9.92 KB

Sorry all, I debated on posting my issue before running out the door from work yesterday, but decided to go through with it to hopefully get some traffic on it. As a result, however, I was not as clear as I should have been, so my apologies on that end.

@michal - yes, I did follow the instructions. This was a previously functional ckeditor/ckfinder/D7 installation that was updated from ckfinder 2.1.1 to 2.2.1 yesterday.

@dczepierga - correct. As stated above, the (previously functional) installation no longer works when configured according to the installation instructions referenced by michal above. The exact error message is:

The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.

When I saw that message, I checked to see if there was anything different in the new ckfinder config.php, & couldn't find anything, so I added the CheckAuthentication() function back in, which produced the redeclaration you noted above (declared in config.php, then declared later when including filemanager.config.php).

I've attached my config.php, which does not throw any errors in error_log. Un-commenting the PHP error reporting section unfortunately didn't give me any clues, either. Any help would be greatly appreciated.

t-readyroc’s picture

Priority: Major » Minor
Status: Postponed (maintainer needs more info) » Closed (fixed)

Gah. It was settings.php. Absolutely no idea how that was changed...

Sorry for the needless confusion.