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.

#111501 Getting this message only when using JCE as editor

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 JohnJuhl on Thursday, 28 July 2022 15:30 BST

JohnJuhl
Hi guys - I'm new to JCE :)

Have JCE Editor PRO but get this message when using the editor Doesn't happen with TINYmce):

Warning: Trying to access array offset on value of type null in /home/customer/www/mysite.com/public_html/libraries/src/Language/Language.php on line 1083

Furthermore the "loading" of the editor sometimes takes several seconds until the editor "takes action"

Is this a settings problem or ...?

Joomla 4.1.5
Template: Helix Ultimate
PHP: 8.x.x

Thanks,

John :)

Attachments

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.

Ryan
This is not actually an editor issue, but an error caused by the default language (or lack thereof) on your site.

JCE requests the language direction from the Joomla API using JLanguage::isRTL() method, which returns true/false, but this is generating the error you have reported because for some reason, no language on your site was assigned as the default language.

Set the English (United Kingdom) as the default language for Administrator and Site in System -> Manage -> Languages, has resolved the issue.

Furthermore the "loading" of the editor sometimes takes several seconds until the editor "takes action"


Does this happen with all articles or just some? I'm seeing a delay with some longer more complex articles on your site, but not all articles.

Ryan Demmer

Lead Developer / CEO / CTO

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

JohnJuhl
Oh, thanks a lot Ryan :)

Re. the delay: I don't know really, since I've only have used JCE in native article so far. But I made a duplicate of one of the complex/longer articles to see how much I would have to remove before it behaves normal (or at least as fast as Tiny) - it turned out that I had to remove all page-breaks + appr. 75% of the code/content for it to become no too slow - but still not fast.

Do you think it will be smarter to work with "ArticlesAnywhere" (which I intend to use anyway) for longer pages - splitting the page into smaller pages ?

kr.

J-)

Ryan
Re. the delay: I don't know really, since I've only have used JCE in native article so far. But I made a duplicate of one of the complex/longer articles to see how much I would have to remove before it behaves normal (or at least as fast as Tiny) - it turned out that I had to remove all page-breaks + appr. 75% of the code/content for it to become no too slow - but still not fast.


I've found the cause of the problem and I am working on a fix. I'll keep you posted.

Ryan Demmer

Lead Developer / CEO / CTO

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

Ryan
This appears to be fixed no on your site with an install of JCE Pro 2.9.29 Beta - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

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

JohnJuhl
Fanf...ingtastic !!! Great man, thanks.:D