Hello guys
Trying to use fckeditor as well ckfinder in a web app. I am using the zend framework, and have the following .htaccess located in my documentroot /www/.htaccess:
I have the fckeditor and ckfinder files in the /www/js directory:
/www/js/fckeditor/
/www/js/ckfinder/
each of these directories contains another simple htaccess file to turn off rewrites for files within those directories:
I have enabled the php connector in fckeditor, and set left the default upload path to /userfiles/, and commented out $config['UserFilesAbsolutePath']. The fckeditor config contains the correct paths to the ckfinder files, as instructed in the wiki.
The problem i am having is that when i click the browse server button on the image propertes pop-up, i get an error from zf:
For some strange reason (i must have changed something earlier...but what!?!) it was returning the same message but as an ie dialog full of xml data.
What or where do i need to change to get it to load the ckfinder app properly?
Trying to use fckeditor as well ckfinder in a web app. I am using the zend framework, and have the following .htaccess located in my documentroot /www/.htaccess:
Options +FollowSymlinks RewriteEngine On RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
I have the fckeditor and ckfinder files in the /www/js directory:
/www/js/fckeditor/
/www/js/ckfinder/
each of these directories contains another simple htaccess file to turn off rewrites for files within those directories:
RewriteEngine Off
I have enabled the php connector in fckeditor, and set left the default upload path to /userfiles/, and commented out $config['UserFilesAbsolutePath']. The fckeditor config contains the correct paths to the ckfinder files, as instructed in the wiki.
The problem i am having is that when i click the browse server button on the image propertes pop-up, i get an error from zf:
Fatal Error: Uncaught exception 'Zend_Controller_Dispatcher_Exxception' with message 'Invalid controller specified (ckfinder)'....
For some strange reason (i must have changed something earlier...but what!?!) it was returning the same message but as an ie dialog full of xml data.
What or where do i need to change to get it to load the ckfinder app properly?
Re: File uploads using Zend Framework - invalid controller speci
eg:
I'm not getting the invalid controller error anymore, but am getting the window displayed with the grey background mostly showing and just "Folders" written in the top-left hand corner?
Re: File uploads using Zend Framework - invalid controller speci
Here are my config files:
fckeditor filemanager php connector:
CKFinder Config file:
fckconfig.js file:
Re: File uploads using Zend Framework - invalid controller speci
/www/js/fckeditor
/www/js/fckeditor/ckfinder
...and updated all the config values to point to the correct path (mentioned in the post above). Now i'm getting the error again - "Invalid controller specified (js)" - but this time in xml format (as a dialog)! Going to put it back, so that ckfinder was in it's own directory.
Any advice would be appreciated.
Re: File uploads using Zend Framework - invalid controller speci
I hope you don't want me to learn all available PHP frameworks that are out there (ZF, Symfony, CakePHP, CodeIgniter just to mention some of them) and know any possible misconfiguration issues
If you're having problem with the framework configuration / apache rewrite rules, I suggest the following:
- use some kind of version control system to track all configuration changes that you have made so far (to avoid "i must have changed something earlier...but what!?!") - svn, cvs
- install CKFinder in a separate place, somewhere outside your ZF-based application and open the standalone.php example, it should work out of the box. At this stage, don't try try to configure FCKeditor with CKFinder, just focus on CKFinder. You should have a working CKFidner somewhere to see the differences between valid and your broken instalation.
- instal another CKFinder in your target directory (where you are encountering problems)
- use Firebug extension in Firefox to compare AJAX calls made by CKFinder, perhaps CKFinder is unable to connect to connector.php due to mod_rewrite rules redirecting all php requests to index.php (?)
- use "Tamper Data" extension in Firefox (or any other tool that you like) and check each file returned by your web server. Perhaps you'll see a HTTP 404 code somewhere.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: File uploads using Zend Framework - invalid controller speci
Thanks for the advice.
Started afresh, and used the samples, and was able to get it working. The problem had nothing to do with the paths, but with the code inside the CheckAuthentication method. I had the following:
Re: File uploads using Zend Framework - invalid controller speci
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+