You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#111979 Joomla 4 content not loaded and saved

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Wednesday, 26 October 2022 16:44 BST

yann112
Hi,

I migrating a Joomla 3 to 4.
Last version isntalled -> Joomla 4.23 / JCE 2.9.30

Problem 1 :
When I edit an article, the editor is empty but if I click on the button "code" I see all article content.
If I click agin on the button "code" to switch to editor mode, the content is display.

Problem 2 :
I the editor mode is enable, the new content is no saved. (normal confirmation message but no change stored in db)

I have the problem only with JCE, by example TinyMce work fine.

How Can I fix that ? Maybe a problem with the configuration of JCE with Joomla 4 ?

Thanks in advance for your help
Yann

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

yann112
I'm in localhost to prepare the migration... so sorry I can not provide you a login.
Do you want screenshots ?

Ryan
Do you want screenshots ?


Yes, that might help.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

yann112
I have attached four screenshot.






For informations :
The content is not loaded on step 2 in the editor mode.
If I save on step 3 (code source display) the content is saved correcly.
If I save on step 4 (editor mode) the content is not save.

Thanks in advance for your help

Attachments

Ryan
What is the icon in the top right corner of the editor content area?

Is you browser reporting any javascript errors in the browser console when you load the editor?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

yann112
The icon is "scriben", a spell checker (plugin bowser).
I have desactivate to be sure, same behavior.

For the console, I checked and I see an error (see attachment)

Attachments

Ryan
Have you added and Custom Styles in Editor Profiles -> Plugin Parameters -> Style Select?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

yann112
from memory it seems to me that not but when I wanted to verify, I have an error 500 (see attachment)
Link : /administrator/index.php?option=com_jce&view=profile&layout=edit&id=1

Apache Log : Fatal error: Maximum execution time of 30+2 seconds exceeded (terminated) in /website_path/libraries/vendor/joomla/database/src/DatabaseAwareTrait.php on line 43

PHP 8.0.8
Joomla 4.2.3



Attachments

Ryan
Please select the Default profile and click the Export button, and save the profile to your computer.

Select all the profiles and click the Delete button.

Go to System -> Manage Extensions and uninstall the JCE Pro Package.

Re-install JCE Pro 2.9.30 - https://www.joomlacontenteditor.net/downloads/editor/pro/latest

Does the editor load now?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

yann112
For information, before I used JCE (normal) latest version 2.9.30.

I have delete all profiles and extension as requested. (see attachements -> error on deleting -> maybe because all items selected in one time)
After I have re-installer JCE (Pro) latest version 2.9.30.

-> Now the editor works fine thank you (no JS error). The content is loaded correctly (editor mode and/or source code) and save the changes in all cases.
-> But I have always the internal error 500 when I click on default profile. (the "default" profile is this one installed by JCE, I don't have imported the old profile -> I don't need to import but I would like solve the error 500 if I want edit the default profile in the futur)







Attachments

Ryan
What is the PHP memory limit value on your server?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

yann112
Actually I'm on localhost to prepare the migration -> memory_limit = 512M

Ryan
I'm not able to reproduce this error in my tests, and it's impossible to troubleshoot if I don't have access to the site with the error.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

yann112
For the moment I don't have the time mount a server special for you and clean confidential content, I must continue my migration.
I have debuged the profile view in adminitration (administrator/components/com_jce/views/profile/view.html.php), the line that generate the error 500 is the 58 : parent::display($tpl);
var_dump($tpl) => null

For information, the website is a J3 migrated to J4 -> problem.
And I also tried to a new installation J4 -> no problem.

I have noted that stay J3 code (by exemple JFactory:: instead of Factory:: or the structure of component), can you confirm that JCE is completly compatible with J4 ?

Thanks in advance

Attachments

Ryan
For the moment I don't have the time mount a server special for you and clean confidential content, I must continue my migration.


I will wait until you have completed your migration before commenting further, if you are still experiencing the issue on your site site.

I have noted that stay J3 code (by exemple JFactory:: instead of Factory:: or the structure of component), can you confirm that JCE is completly compatible with J4


Yes.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

yann112
Migration done, problem still only on dev environement (local server MAMP Pro with PHP 8.0.8) if you want try to reproduce it.

Ryan
problem still only on dev environement (local server MAMP Pro with PHP 8.0.8) if you want try to reproduce it.


I use MAMP Pro with PHP 8.0.14 and I am unable to reproduce this issue.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.