Zen Cart Logo
Forums / All Other Contributions/Addons / CKEditor - renaming 'editors' folder problem

CKEditor - renaming 'editors' folder problem

Views: 1,810

Results 1 to 11 of 11
31 Jan 2013, 6:03 PM
#1
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

CKEditor - renaming 'editors' folder problem

Hi!

I just installed CKEditor (found HERE).

After uploading everything, I tried to do step 5:
(Optional) You can change the folder in which the editor files live, by renaming the folder and adding the following line to your admin/includes/configure.php file:
define('DIR_WS_EDITORS', 'the new name of your folder');

So, I renamed the folder to 'editors_yomomma', then added a line in the correct configure.php:
define('DIR_WS_EDITORS', 'editors_yomomma/');

Then I went back to step 4, which is:
(Recommended) You can also set your default editor choice via Admin->Configuration->My Store->HTML Editor (note: this may not take effect until you log in the next time)

I got the following error message with yellow background on top of the admin panel:

You have an HTML editor selected in 'My Store' but the '/editors/' folder cannot be located. Please disable your selection or move your editor files into the '/editors/' folder.

I searched the forum, found that others have this same problem. But I cannot find where anyone posted a solution.

Is there a way to correct this?

Or does the native zc151 htaccess file prevent the security issue?

Or should I add something to the htaccess in the editors folder? If so, what?

Thanks,
Mike

31 Jan 2013, 6:19 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: CKEditor - renaming 'editors' folder problem

I just took a brand new install of v1.5.1 and installed CKEditor onto it. Tested it by making sure it shows in the My Store choices and the products/categories page pulldown, and activates when editing a product.
Verified by switching back to Plain Text, and back again to CKEditor.

Then I added this to the bottom of my admin configure.php (this is a direct copy+paste):```
// EOF
[B]define('DIR_WS_EDITORS', 'editors_yomamma/');[/B]


Then I renamed my /editors/ folder to /editors_yomamma/

Then I went back to my admin page and refreshed it, and CKEditor shows up fine. I tested by turning it back to Plain Text, which behaved as expected. Then chose CKEditor again, and the editor showed up in the product-edit page again as expected.

It appears the instructions are correct as far as I can tell.

Nothing to do with Zen Cart native .htaccess


NOTE: Remember, the configure.php file is probably read-only, so you'll need to make it writable before you can save your changes to it.
31 Jan 2013, 6:36 PM
#3
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: CKEditor - renaming 'editors' folder problem

I'm using CeonURI... I wonder if that is interfering with it?

I'll revert and try again, though it is working just fine now (with the default folder name, not the obfuscated one).

btw, I didn't think the native htaccess was a problem, I was just hoping that it would automatically prevent any dangers... thus maybe there was no need to rename the folder for better security.

31 Jan 2013, 6:37 PM
#4
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: CKEditor - renaming 'editors' folder problem

btw... wow, thanks for that big effort to duplicate my issue!!!

31 Jan 2013, 6:41 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: CKEditor - renaming 'editors' folder problem

I've also just uploaded an updated version of the plugin, which includes the Jan 2013 update to CKEditor.
It tested fine also.

The only reason to rename your editors folder is if you believe you've got something in your editors folder that might have security vulnerabilities. Those 3rd-party tools are outside the control of Zen Cart. All renaming does is obscure their existence to that anyone probing won't find them.

31 Jan 2013, 7:44 PM
#6
feznizzle avatar

feznizzle

Totally Zenned

Join Date:
Apr 2010
Posts:
900
Plugin Contributions:
0

Re: CKEditor - renaming 'editors' folder problem

I give up!

My best guess (for what that is worth) is that there is a conflict between Ceon and renaming that folder. If I wanted to waste some more time, I'd push the Ceon app to do another installation check.

You don't seem too concerned about the need to obfuscate that folder, so I will relax about it and just give it a rest.

Thanks for looking into it. :smile:

15 Mar 2013, 5:43 AM
#7
divaboutiques avatar

divaboutiques

Zen Follower

Join Date:
Feb 2007
Location:
Worldwide Web
Posts:
191
Plugin Contributions:
0

Re: CKEditor - renaming 'editors' folder problem

DrByte:

I just took a brand new install of v1.5.1 and installed CKEditor onto it. Tested it by making sure it shows in the My Store choices and the products/categories page pulldown, and activates when editing a product.
Verified by switching back to Plain Text, and back again to CKEditor.

Then I added this to the bottom of my admin configure.php (this is a direct copy+paste):```
// EOF
[B]define('DIR_WS_EDITORS', 'editors_yomamma/');[/B]

> 
> Then I renamed my /editors/ folder to /editors_yomamma/
> 
> Then I went back to my admin page and refreshed it, and CKEditor shows up fine. I tested by turning it back to Plain Text, which behaved as expected. Then chose CKEditor again, and the editor showed up in the product-edit page again as expected.

I followed the following instructions above to have the ckeditor show up and it worked (html editor showing in admin). buttttttttttttt when i did a error message showed in the admin

![](http://www.divaboutiques.com/zcadmin/images/icons/warning.gif) You have an HTML editor selected in 'My Store' but the '/editors/' folder cannot be located. Please disable your selection or move your editor files into the '/editors/' folder

 I went and changed my editor folder from "editors_myname" back to "editor" and the ckeditor disappeared from the admin and everywhere also. How I fix the error from showing in the top admin area?
24 Nov 2013, 3:54 PM
#8
kagaroo avatar

kagaroo

New Zenner

Join Date:
Nov 2013
Location:
New York
Posts:
30
Plugin Contributions:
0

Re: CKEditor - renaming 'editors' folder problem

I have the same problem to rename the editors/ folder following the instruction of CKEditor. Since added define statement was added when we installed the CKEditor, there must be somewhere has defined that statement. I used the developers tool kit and I did find a statement where may potentially affected. In zen-cart 1.51 only, /admin/includes/init_includes/init_html_editor.php ( zen-cart 1.39 or 1.50, this file may be in the override folder).

if (!defined('DIR_WS_EDITORS')) define('DIR_WS_EDITORS', 'editors/');

I try to comment out this statement or rename this folder name in this statement( although it is not good way to do for the security reason), I still get the same warning message in admin. I am looking forward to hearing your ideas where this might happen.

30 Dec 2013, 6:58 PM
#9
mikeymoto avatar

mikeymoto

New Zenner

Join Date:
Mar 2013
Location:
Seattle, WA, USA
Posts:
6
Plugin Contributions:
0

Re: CKEditor - renaming 'editors' folder problem

I got this error today after installing the current ckeditor on 1.5.1 and setting my default editor (Configuration -> My Store) by setting "HTML Editor" to ckeditor.

I had already defined DIR_WS_EDITORS in my configure.php

The false error is caused by admin/includes/header.php line 95:

if (HTML_EDITOR_PREFERENCE != 'NONE' && !is_dir(DIR_FS_CATALOG . 'editors')) {

I made my problem disappear by changing that code to:

if (HTML_EDITOR_PREFERENCE != 'NONE' && !is_dir(DIR_FS_CATALOG . DIR_WS_EDITORS)) {
16 Jan 2014, 9:17 PM
#10
kagaroo avatar

kagaroo

New Zenner

Join Date:
Nov 2013
Location:
New York
Posts:
30
Plugin Contributions:
0

Re: CKEditor - renaming 'editors' folder problem

Hi, Mikeymoto, thank you for sharing.

30 Aug 2017, 1:54 PM
#11
wolfderby avatar

wolfderby

Zen Follower

Join Date:
Dec 2008
Location:
Pittsburgh, PA
Posts:
241
Plugin Contributions:
0

Re: CKEditor - renaming 'editors' folder problem

So I think I ended up with this error because at first I renamed it and then had a define('DIR_WS_EDITORS', '/renamed/'); ...with that extra slash at the beginning. By the time I realized I should take the slash out, I got stuck clicking around, clearing cache, triple checking things... nothing fixing it, until I finally un-did the rename of the folder, clicked around (error went away) then re-renamed the folder.