Hello,
so I installed a demo of CKFinder and connected it with CKEditor.
Hmm, it wasn't working! No thumbnails were uploaded and I wasn't able to browse my files, thought they were uploaded successfully...
So I started to dig a little deeper into the code and found out this:
ckfinder/core/connector/php/php5/Utils/Misc.php (line 225):
There was a hidden error that "only variables should be passed by reference", so I changed this piece of code a little bit to:
I know it's a little hack, but everything's working for me fine now.
I'm using LAMP (Php 5.3.X), so for everybody, if CKFinder isn't working for you just the way it wasn't for me, try this litlle hack.
I'm sorry, if this topic isn't appropriate, if it isn't, please remove it.
Thanks,
Ping
so I installed a demo of CKFinder and connected it with CKEditor.
Hmm, it wasn't working! No thumbnails were uploaded and I wasn't able to browse my files, thought they were uploaded successfully...
So I started to dig a little deeper into the code and found out this:
ckfinder/core/connector/php/php5/Utils/Misc.php (line 225):
return end(explode('/', str_replace("\\", "/", $file)));
There was a hidden error that "only variables should be passed by reference", so I changed this piece of code a little bit to:
$explode = explode('/', str_replace("\\", "/", $file)); return end($explode);
I know it's a little hack, but everything's working for me fine now.
I'm using LAMP (Php 5.3.X), so for everybody, if CKFinder isn't working for you just the way it wasn't for me, try this litlle hack.
I'm sorry, if this topic isn't appropriate, if it isn't, please remove it.
Thanks,
Ping
Re: CkFinder not working (a little hack)
Thanks for your comment, you're totally right, this code will be corrected.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+