WebsiteBaker Community Forum

WebsiteBaker Support (2.12.x) => General Help & Support => Topic started by: svsanchez on January 23, 2021, 12:50:16 AM

Title: Upgrade error: Uncatched exception Class in modules/ckeditor/include.php
Post by: svsanchez on January 23, 2021, 12:50:16 AM
Hello!

I am still in the process of upgrading several WB sites from 2.8.3 to 2.12.2, and every now and then one of them gives me problems, like www.codraco.com which is showing the following error message when I want to edit a page in the backend:

There was an uncatched exception
Class 'CKEditorPlus' not found
in line (80) of (/modules/ckeditor/include.php):

Additionally, the frontend also shows an error message on the home page:

There was an uncatched exception
malformed document created
in line (67) of (/modules/output_filter/filters/filterCssToHead.php):

I **THINK** the first problem is due to the WYSIWYG modules using the wrong ckeditor version? I checked the settings on this site and it only says:

WYSIWYG editor: CKEditor

While on another site that I already upgraded, it says: CKEditor v4.11.1.2

1) IF the problem is the CKEditor version, how do I update it (and why didn't update with the upgrade from 2.8.2. to 2.12.2?

2) As for the second error message, I have no idea...
Title: Re: Upgrade error: Uncatched exception Class in modules/ckeditor/include.php
Post by: svsanchez on January 23, 2021, 03:37:34 AM
1. Regarding the CKEditor version problem, I copied the CKeditor folder from another, working WB site and replaced the one on my site. It works now!

2. Regarding the second error message, the upgraded messed up the content of one of my wysiwyg blocks which contained an iframe to a Juicer Instagram feed. The code is gone for some reason  :|
Title: Re: Upgrade error: Uncatched exception Class in modules/ckeditor/include.php
Post by: svsanchez on January 23, 2021, 04:53:52 AM
Ok, regarding number 2, for some reason WB removes the following line from the WYSIWYG:

Code: [Select]
<script src="https://assets.juicer.io/embed.js" type="text/javascript"></script>
I noticed there is a droplet for inserting code, but there isn't an option for inserting HTML code and the ones I tried didn't work.

The CODE section also doesn't work.

How can I add that code in the content?

For the time being, I had to create an iframe and call an external file with the code to appear inside the iframe...
Title: Re: Upgrade error: Uncatched exception Class in modules/ckeditor/include.php
Post by: dbs on January 23, 2021, 09:20:06 AM
Hi, first question is how do you update/upload. With WB zip file + unzip.php or upload file by file?
Have you checked if the file CKEditorPlus.php is in modules/ckeditor/ckeditor/  ?
You can upload from the original WB zip  the whole ckeditor folder again.

For me it looks like not uploaded all WB files. You can do that again and again and also upgrade WB again via i-Button.
Or you use the recommanded procedure with WB zip and unzip.php.
Title: Re: Upgrade error: Uncatched exception Class in modules/ckeditor/include.php
Post by: svsanchez on January 26, 2021, 08:07:35 PM
Hello dbd, I upload the 2.12.2 zip and the unzip.php file and unzip from there, so all the files should have been there. Anyways, I copied the whole folder from another working site and it fixed the problem.

What I wasn't able to do is to insert the following code, which is removed from the wysiwyg / code sections:

Code: [Select]
<script src="https://assets.juicer.io/embed.js" type="text/javascript"></script>
Do you know how I can place that code on a page via the admin?
Title: Re: Upgrade error: Uncatched exception Class in modules/ckeditor/include.php
Post by: dbs on January 26, 2021, 08:20:00 PM
Hi, CKeditor himself filters the content and remove <script... stuff for security reasons.
What i do in this case is using the Module code2 on such page. You have the choise what do you want, JS,PHP,HTML code is possible via dropdown.
Title: Re: Upgrade error: Uncatched exception Class in modules/ckeditor/include.php
Post by: svsanchez on January 26, 2021, 10:35:27 PM
Wow, what a great module that Code2, thank you dbs! It worked!
Title: Re: Upgrade error: Uncatched exception Class in modules/ckeditor/include.php
Post by: dbs on January 26, 2021, 11:31:06 PM
That's right. I'm glad you know the module now.  8)