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 ??
Views: 8,854
Totally Zenned
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 ??
New Zenner
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)
Sensei
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.
Sensei
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
New Zenner
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:
New Zenner
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.
New Zenner
Mine just stopped working today... it has been years no one disturb this ckeditor... suddenly today for no known reason it just stopped working
New Zenner
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...
New Zenner
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...
New Zenner
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?
New Zenner
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
New Zenner
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
Totally Zenned
new version released to fix compatibilty with older versions of ZC
Totally Zenned
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>
Totally Zenned
Gee, the NEWEST with 1.5.5 an older change for the loading of CKeditor works great... Troubleshot it with the good doctor today.
Totally Zenned
Just to be clear - our fix above was for ZC154 using CKEditor 3.7e ...but you really should upgrade!
New Zenner
<?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>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
*/ ?>
<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
Totally Zenned
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.
Totally Zenned
<?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>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
*/ ?>
<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 ??
New Zenner
Thanks for posting this fix. Much appreciated.
Tell staff why this post should be reviewed.