Hello, I apologise in advance for my low level of expertise in php and js.
I work for a charity and we have had a large funding cut, so we had to make savings where we could. As the Administrator, I volunteered to migrate our website from a managed Drupal-driven website to a hosted server with cPanel and Softaculous, which I have already done for another charity.
I got the site up and running failrly easily and installed the excellent CK editor and CK finder and loved them. The real problems began after I installed the WP Security plugin, which strongly advised changing the prefix of the wordpress databases... which broke our site.
A complete reinstall later, I had the site more or less working again, but , instead of teh WP installation being in root (which is where the hosting company had installed it at the time of purchase) Softaculous asks for a subdirectory to install to.
Now, while CK editor works fine, CK Finder does not appear to recognise my WP Administrator role (set in the CK Editor panel in WP as the only role authorised to use CK Finder), coming up with the message "The file browser is disabled for security reasons.... " etc.
I have been through your replies to other posts about this and tried everything suggested in them, Wictor, but I am afraid nothing you suggested worked and I simply don't know that I can try the 'cookies' workaround that WebDude discussed, back in 2008.
May I ask what I should enter where to make this section work?
function CheckAuthentication()
{
global $ckeditor_wordpress;
return $ckeditor_wordpress->file_browser == 'ckfinder' && current_user_can('ckeditor_ckfinder_access');
}
I really have tried everything, else I would not bother you.
Thank you so much for your time. I really appreciate your patience.
Best regards.
Toni
I work for a charity and we have had a large funding cut, so we had to make savings where we could. As the Administrator, I volunteered to migrate our website from a managed Drupal-driven website to a hosted server with cPanel and Softaculous, which I have already done for another charity.
I got the site up and running failrly easily and installed the excellent CK editor and CK finder and loved them. The real problems began after I installed the WP Security plugin, which strongly advised changing the prefix of the wordpress databases... which broke our site.
A complete reinstall later, I had the site more or less working again, but , instead of teh WP installation being in root (which is where the hosting company had installed it at the time of purchase) Softaculous asks for a subdirectory to install to.
Now, while CK editor works fine, CK Finder does not appear to recognise my WP Administrator role (set in the CK Editor panel in WP as the only role authorised to use CK Finder), coming up with the message "The file browser is disabled for security reasons.... " etc.
I have been through your replies to other posts about this and tried everything suggested in them, Wictor, but I am afraid nothing you suggested worked and I simply don't know that I can try the 'cookies' workaround that WebDude discussed, back in 2008.
May I ask what I should enter where to make this section work?
function CheckAuthentication()
{
global $ckeditor_wordpress;
return $ckeditor_wordpress->file_browser == 'ckfinder' && current_user_can('ckeditor_ckfinder_access');
}
I really have tried everything, else I would not bother you.
Thank you so much for your time. I really appreciate your patience.
Best regards.
Toni
Re: Lil' Old Newbie close to a nervous breakdown
Hi,
Do u do all steps from README file?
If yes and problem still exists try to set this vars in worpdress config file: (http://codex.wordpress.org/Editing_wp-config.php)
- COOKIE_DOMAIN
- WP_SITEURL
This error is occured when CKFinder have problem to save cookie in your domain…
If it doesn't help pls write - we will try to do sth with it in other way...
Greetings
Re: Lil' Old Newbie close to a nervous breakdown
First of all Damian, thank you so much for replying so quickly and for the invaluable link.
I will try to break my reply so it is easier to follow.
1) COOKIE-DOMAIN
There is no such setting in the wp-config.php, nor can I see it in wp-settings.php.
Our site does not use a separate subdomain server for static content (should it?)
I read and re-read the COOKIE-DOMAIN instructions in the same page of the Codex, but I am just a bit unsure... were you suggesting I should set-up a separate subdomain domain?
2) WP-SITEURL
I checked everything again, and followed the Codex instruction to re-define the WP-SITE_URL.
Because the installation was already in a separate subdirectory, I opted for the solution suggested in 'http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory'
and then defined WP_HOME, dynamically
define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'] . '/public_html/wpinstall');
(naturally I am using a dummy directory name here, for security)
3) WP database prefixes
During re-installation, Softaculous prompted for a database prefix, I specified a non-standard prefix, to increase security (as suggested by the WP Security plugin).
Could it be that it worked TOO well? Everything else seems to work fine but I just can't access files through CK Finder. Clearly this would be a very desirable feature, to protect the site from unauthorised access to files.
In looking for solutions and clues (until 6 this morning) I noticed that, while in the WP-config the prefix I gave tables is very clearly shown, at line 62:
$table_prefix = 'newprefix_'; (naturally this too is a dummy prefix)
when I looked in wp-settings I found that, at Line 76:
// Set the database table prefix and the format specifiers for database table columns.
wp_set_wpdb_vars();
And also in wp-db.php, at line 165
var $prefix = '';
It's made me wonder whether there may be two sets of tables running in parallel, one with the wp_ prefix and the other set with the newprefix_.
Could it be that CK finder is reading the wrong tables status for my login?
Should the above not show the newprefix_ ?
If so, may I ask what the correct syntax would be for setting these variables?
Should I also look elsewhere?
Or should that be set somewhere else altogether?
Thank you for your time Damian.
Be well, be loved, be happy!
Re: Lil' Old Newbie close to a nervous breakdown
We have one person with this same problem and this solution not help... I try to reproduce this but for me everything seems to work fine.
Could u PM me address to your site with login and password for admin account?
Then it will be easier to find bug and I could fix it quicker...
Greetings
Re: Lil' Old Newbie close to a nervous breakdown
Changes commited to SVN at revision: 374986 – u can download last DEV version where this problem is fixed now.
It will be released with new version of CKEditor plugin asap.
Greetings
Re: Lil' Old Newbie close to a nervous breakdown
Nice discussion is going on it proves
To be helpful for me and should be helpful for everyone,,,,
And I also really enjoyed it ….
Thanks,,,,,
Re: Lil' Old Newbie close to a nervous breakdown
As well as proving CK Source are a Company worth doing business with and who know more about customer care than Apple, IBM and Microsoft put together.
Yes, I thank Damian for that, a real gentleman!
Cheeryo!
Toni