Zen Cart Logo
Forums / Basic Configuration / CKEditor stopped working?

CKEditor stopped working?

Views: 8,854

Results 1 to 20 of 22
5 May 2020, 3:49 AM
#1
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

CKEditor stopped working?

What happened to CKEditor? As of tonight? It was still working last night. With CKEditor enabled there is no more editing menu . Only text mode ??

https://www.cvtreasures.com

5 May 2020, 6:02 AM
#2
pinwheel avatar

pinwheel

New Zenner

Join Date:
Feb 2020
Location:
USA
Posts:
9
Plugin Contributions:
0

Re: CKEditor stopped working?

My clients just stopped working today too. Worked yesterday. I even reinstalled the CKeditor. Nothing. Here is one of the errors in the browser:

Uncaught ReferenceError: $ is not defined
at categories.php?cPath…on=edit_category:23
(anonymous) @ categories.php?cPath…on=edit_category:23

another error:

Uncaught TypeError: Cannot read property 'regional' of undefined
at HTMLDocument.<anonymous> (jquery-ui-i18n.min.js:9)
at n (jquery.min.js:2)
at Object.fireWith (jquery.min.js:2)
at Function.ready (jquery.min.js:2)
at HTMLDocument.B (jquery.min.js:2)

5 May 2020, 11:40 PM
#3
drbyte avatar

drbyte

Sensei

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

Re: CKEditor stopped working?

pinwheel:

Uncaught ReferenceError: $ is not defined
Normally when jQuery loads it defines $ as itself.

Do you have any javascript scripts on your site that are loading from an external source, which might be breaking normal operation?

The particularly curious thing about this is: since with a default install of Zen Cart, you self-host both jQuery and the CKEditor files, whatever causes it to stop working should be self-contained to your own store.

5 May 2020, 11:41 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: CKEditor stopped working?

Here's a new version that loads CKEditor from their own CDN, instead of being self-hosted. It also relies on a much newer jQuery version:
https://www.zen-cart.com/downloads.php?do=file&id=1098

6 May 2020, 3:05 AM
#5
pinwheel avatar

pinwheel

New Zenner

Join Date:
Feb 2020
Location:
USA
Posts:
9
Plugin Contributions:
0

Re: CKEditor stopped working?

DrByte:

Here's a new version that loads CKEditor from their own CDN, instead of being self-hosted. It also relies on a much newer jQuery version:
https://www.zen-cart.com/downloads.php?do=file&id=1098

Brilliant :) I just installed the new editor and that works well. So happy and the client is too. Thank you for the fix. :smile:

13 May 2020, 11:35 PM
#6
jarmilka avatar

jarmilka

New Zenner

Join Date:
Jun 2011
Posts:
20
Plugin Contributions:
0

Re: CKEditor stopped working?

The CKEditor stopped working for me too. I upgraded to the newest version but I am still not having any luck. :-( I am running version 1.5.4.

14 May 2020, 7:50 AM
#7
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: CKEditor stopped working?

Mine just stopped working today... it has been years no one disturb this ckeditor... suddenly today for no known reason it just stopped working

14 May 2020, 7:55 AM
#8
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: CKEditor stopped working?

I tried The HTML Area Editor, an error box appered that says:

Mozilla <1.3 Beta Not Supported!
I'll try, though but it might not work.

But I am on chrome though... i tried firefox, IE, safari... all the same...

I am checking with the host server if they changed anything recently...

14 May 2020, 8:30 AM
#9
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: CKEditor stopped working?

jarmilka:

The CKEditor stopped working for me too. I upgraded to the newest version but I am still not having any luck. :-( I am running version 1.5.4.

oh ya i tried to update also no difference...

14 May 2020, 9:10 AM
#10
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: CKEditor stopped working?

https://www.zen-cart.com/downloads.php?do=file&id=166

I tried to download tinymce... it also doesnt work, same as the CKeditor.

When using the Old 2015 HTML editor... that error appear that says Mozilla <1.3 not supported, if you press ok, it actually loads the editor which works fine...

Seems like this error affects CKeditor and TinyMCE?

14 May 2020, 9:47 AM
#11
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: CKEditor stopped working?

XxDrAg0nxX:

https://www.zen-cart.com/downloads.php?do=file&id=166

I tried to download tinymce... it also doesnt work, same as the CKeditor.

When using the Old 2015 HTML editor... that error appear that says Mozilla <1.3 not supported, if you press ok, it actually loads the editor which works fine...

Seems like this error affects CKeditor and TinyMCE?

Sorry the old editor in my system it shows as editor_htmlarea, i tried searching for an updated version but dont seem to have

I just tried this: https://www.zen-cart.com/downloads.php?do=file&id=1184

Also does not load, same plain text editor

14 May 2020, 10:01 AM
#12
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: CKEditor stopped working?

my guess is the editors are not loading at all, and its showing the default plain text mode.

Only the old HTMLAREA editor can load for some reason

14 May 2020, 6:24 PM
#13
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: CKEditor stopped working?

new version released to fix compatibilty with older versions of ZC

14 May 2020, 7:09 PM
#14
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: CKEditor stopped working?

It's Google's fault!

The CKEditor problem (and likely the others) is caused by loading modules with the jsapi loader being deprecated by Google, thus leaving the editor missing a required jQuery library.

That said, we've found it only affects ZC versions prior to 155 so it's not entirely Google's fault - you can't blame them if you're running relatively ancient software.

Uploading the newer CK Editor is unlikely to fix the problem on ZC154 so if you're not going to upgrade the site, you can fix the old module (v3.7e )

admin/includes/ckeditor.php

Replace lines 20/21 with

<?php /* 
******  commented out as jsapi loader has been deprecated by Google  ******
<script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'ttps:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script>
<script type="text/javascript">if (typeof jQuery == 'undefined') google.load("jquery", "1");</script>
*/ ?>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

15 May 2020, 1:50 AM
#15
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: CKEditor stopped working?

Gee, the NEWEST with 1.5.5 an older change for the loading of CKeditor works great... Troubleshot it with the good doctor today.

15 May 2020, 7:31 AM
#16
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: CKEditor stopped working?

Just to be clear - our fix above was for ZC154 using CKEditor 3.7e ...but you really should upgrade!

18 May 2020, 6:00 AM
#17
xxdrag0nxx avatar

xxdrag0nxx

New Zenner

Join Date:
May 2008
Posts:
98
Plugin Contributions:
0

Re: CKEditor stopped working?

Ryk:

It's Google's fault!

The CKEditor problem (and likely the others) is caused by loading modules with the jsapi loader being deprecated by Google, thus leaving the editor missing a required jQuery library.

That said, we've found it only affects ZC versions prior to 155 so it's not entirely Google's fault - you can't blame them if you're running relatively ancient software.

Uploading the newer CK Editor is unlikely to fix the problem on ZC154 so if you're not going to upgrade the site, you can fix the old module (v3.7e )

admin/includes/ckeditor.php

Replace lines 20/21 with

<?php /* ****** commented out as jsapi loader has been deprecated by Google ****** <script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'ttps:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script> <script type="text/javascript">if (typeof jQuery == 'undefined') google.load("jquery", "1");</script>

*/ ?>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
> 
> 
> 


Yup this works, thanks :)

For us we did too much mods here and there until we forgot what we modified, updating to that latest version will be too tedious and would undo a lot of our mods :p
20 May 2020, 5:13 PM
#18
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: CKEditor stopped working?

Thanks. I will try this today.

I know what you mean by a hesitation to upgrade Zen all the time. I always get that same response , "Upgrade", "1.54 is ancient". Well, for those of us running a business on Zen, we know Upgrading is a Nightmare. About two weeks of working out the bugs and all the Mods that no longer work, etc. I dread the Zen upgrades and only do as a Last resort as it disrupts my business.

22 May 2020, 3:04 AM
#19
kevinmc3 avatar

kevinmc3

Totally Zenned

Join Date:
Jun 2006
Posts:
786
Plugin Contributions:
0

Re: CKEditor stopped working?

Ryk:

It's Google's fault!

The CKEditor problem (and likely the others) is caused by loading modules with the jsapi loader being deprecated by Google, thus leaving the editor missing a required jQuery library.

That said, we've found it only affects ZC versions prior to 155 so it's not entirely Google's fault - you can't blame them if you're running relatively ancient software.

Uploading the newer CK Editor is unlikely to fix the problem on ZC154 so if you're not going to upgrade the site, you can fix the old module (v3.7e )

admin/includes/ckeditor.php

Replace lines 20/21 with

<?php /* ****** commented out as jsapi loader has been deprecated by Google ****** <script type="text/javascript" src="<?php echo (strstr(HTTP_SERVER, 'ttps:') ? 'https' : 'http'); ?>://www.google.com/jsapi"></script> <script type="text/javascript">if (typeof jQuery == 'undefined') google.load("jquery", "1");</script>

*/ ?>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
> 
> 
> 

I'm not a coder so the code in black , "<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>", I assume you use to replace the code in orange ?

If so there are no "Script type" lines in the Ckeditor.php file for v 1.54 and earlier ??
15 Jun 2020, 11:52 PM
#20
anthonyh avatar

anthonyh

New Zenner

Join Date:
Jun 2013
Location:
Melbourne, Australia
Posts:
12
Plugin Contributions:
0

Re: CKEditor stopped working?

Thanks for posting this fix. Much appreciated.