Upgrade From J5.4 To J6 -- Class "JText" Not Found ? - Question | JoomShaper

Upgrade From J5.4 To J6 -- Class "JText" Not Found ?

SW

Sophia Wolf

Template 5 days ago

Hi guys,

We have a J5.4.6 running with Joomshaper template Salon (latest d/l, should be version 2.0.2?) and we finally tckle the upgrade to Joomla 6.

The conditions are all met (php, db, etc) but there is the backwards-compat plugin. We have activated both, the generic one (Behaviour - Backward Compatibility) and the J6 one ((Behaviour - Backward Compatibility 6).

The Upgrade manual says, we need to disable the generic one, and the j6 one will be enabled with the upgrade process anyway.

Now the problem seems to be the generic one. When i disable this, opening the homepage (just the domain URL) gets

0 Class "JText" not found

and thats indepenend of how the j6 plugin is enabled or diabled.

We have extremely few extensions installed: Akeeba Backup 10.3.3 and SP Page Builder 6.6 (both the latest) and given the nature of the error, it can't really be related to those. I cannot help but to think the the incompatibility must lie within the Salon template ?

The question is, what would be the best approach to go on. /html/layouts/joomla/content/readmore.php

tia Mi

ps. There is one thing flagged in the dashboard, is about a single overide for

/html/layouts/joomla/content/readmore.php

which i did NOT approve yet, because it strikes me a little weird that the original core file has a lot of php code but the new version only these 2 lines:

defined ('JPATH_BASE') or die(); require HelixUltimate\Framework\Platform\HTMLOverride::loadTemplate();

but i think given the name (readmore) it can't be essential for the functionality of the template, and the word JText does not even occur in either file version, and i would guess the code of the core file just had gotten obsolete ?

0
2 Answers
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 4 days ago #224935

Hi there,

I apologize for the inconvenience.

Yes, there is an issue, but it can be worked around. The error is not coming from the readmore.php override file you mentioned. It is actually being triggered by an override within an SP Page Builder addon that still relies on the legacy JText class.

You can proceed by disabling the Behaviour - Backward Compatibility plugin and then performing the Joomla 6 upgrade. After the upgrade, enable Behaviour - Backward Compatibility 6, which should resolve the JText error and restore compatibility with the legacy code.

Before proceeding, please make sure to create a full backup of your website, including both files and the database, so that you can restore the site if needed.

Please let us know if you encounter any issues during the upgrade process, and we'll be happy to assist further.

Best regards

0
SW
Sophia Wolf
Accepted Answer
4 days ago #224980

Thank you Atick. I've been hoping for such an easy solution :D

0