Staff replied Templates Joomla 5 v2.0.5

Compatibility of the template with joomla 6.0.2: is it OK ?

Asked by Giuseppe 1 week ago Last activity 20 hours ago

I was trying to update my site to Joomla 6. It is requested to deactivate the plugin <behaviour - backward compatibility>.
Afetr doing this the site stopped to work

8 replies

Rashida Rahman Staff

Hi,

Thanks for reaching out.

Yes, Gazette v2.0.5 works on Joomla 6. I have tested it on Joomla 6.1.0 with PHP 8.4. However, some of the template's bundled modules still use legacy Joomla classes, so the template needs Joomla's backward compatibility plugin to be active. That is why your site stopped working as soon as you disabled it.

Could you please confirm your exact Joomla version (System > Information > System Information)? The steps below assume Joomla 5.4.x, which is the version required before updating to Joomla 6.

There are two plugins with similar names, and they behave differently:

  • Behaviour - Backward Compatibility (the Joomla 5 one): the Joomla 6 pre-update check asks you to disable this.
  • Behaviour - Backward Compatibility 6: this must stay enabled, before and after the update. It only becomes active once the site is on Joomla 6.

So while you are still on Joomla 5 with the first plugin disabled, the front end will show an error (Class "JHtml" not found). This is expected and temporary. Once the update to Joomla 6 completes, the "Backward Compatibility 6" plugin takes over and the site works again.

Please follow these steps:

  1. Take a full backup of your site (files and database).
  2. Make sure Gazette (2.0.5), Helix Ultimate and SP Page Builder are updated to their latest versions.
  3. Go to System > Manage > Plugins, search for "Backward", and confirm Behaviour - Backward Compatibility 6 is enabled. This plugin is included from Joomla 5.4 onwards, so if you don't see it, please update to the latest Joomla 5.4.x first.
  4. Disable Behaviour - Backward Compatibility, then immediately run the Joomla 6 update from System > Update > Joomla.
  5. After the update, clear the Joomla cache (System > Maintenance > Clear Cache) and check the site. Keep "Behaviour - Backward Compatibility 6" enabled.

If you want your current site back online first, simply re-enable Behaviour - Backward Compatibility from System > Manage > Plugins. If the administrator area is not reachable either, open the #__extensions table in phpMyAdmin (your table prefix replaces #__), find the row with folder behaviour and element compat, and set enabled to 1.

For more background, Joomla's official upgrade guide explains both plugins and the full process: https://guide.joomla.org/user-guide/migration/joomla-5-to-6-planning-and-upgrade-step-by-step

If the issue persists after the update, please share the exact error message along with your administrator access in the Hidden Content box, and we will check it directly.

Best regards

Giuseppe Asked this

Thank you for your hints.
by the last attempt once I disabled the "Behaviour - Backward Compatibility (the Joomla 5 one)" then also the administrator area stopped to work.
Should I try again ....?

Giuseppe Asked this

My version are : Joomla 5.4.10 / php 8.5, gazette 2.05 /SP 6.10.0/ Helix 2.2.11

Rashida Rahman Staff

Hi,

Sorry for your experience.

Let me check it deeply. I will get back to you soon.

Thanks for your patience.

Rashida Rahman Staff

Hi Giuseppe,

Thank you for trying again and for sending the screenshot. It shows the exact cause, and I'm sorry my earlier steps didn't cover it.

The screenshot shows two errors:

  1. The real problem is the second one at the bottom: Class "JPlugin" not found. A plugin on your site still uses an old Joomla class name that only "Behaviour - Backward Compatibility" provides on Joomla 5. Plugins run on every page, so when you disable that compatibility plugin, both the site and the administrator stop. I reproduced this on Joomla 5.4.10 with Gazette, and the plugin causing it is System - SP Author Archive Updater, which comes with Gazette.
  2. The first error (templates/shaper_gazette/error.php, line 70) comes from Gazette's error page failing while it tries to show the real error. I've reported it to our developers. It isn't what stops your site.

I can see from the screenshot that you're testing on a copy (FCLTEST2), so please follow these steps there:

  1. Restore the site: in phpMyAdmin, open the #__extensions table (your prefix replaces #__). Find the row where folder = behaviour and element = compat, and set enabled to 1. The site and administrator will work again.
  2. Switch PHP to 8.4 in your hosting panel. Joomla 6 recommends PHP 8.4, and we tested Gazette on it.
  3. Go to System > Manage > Plugins, search for "SP Author", and disable System - SP Author Archive Updater. It only checks for updates, so it's safe to disable.
  4. Search for "backward". Make sure Behaviour - Backward Compatibility 6 is enabled, then disable Behaviour - Backward Compatibility.
  5. Open the administrator Dashboard. It should now load. The front end will still show an error at this point; that's expected, so please continue straight away.
  6. Run the update from System > Update > Joomla.
  7. After the update, clear the cache (System > Maintenance > Clear Cache) and check the front end. Keep "Behaviour - Backward Compatibility 6" enabled, and you can enable the SP Author Archive Updater plugin again.

If the administrator still doesn't load in step 5, another plugin on your site is using the old class too. On that error page, click the + next to the second "Error" box (Class "JPlugin" not found). It shows the file path, for example /plugins/system/xxxx/..., and that tells us which extension it is. Please send us that path, then restore the site with step 1. If you prefer, you can share administrator and phpMyAdmin (or FTP) access for the test copy in the Hidden Content box, and we'll do the update for you.

Best regards

Giuseppe Asked this

Thank you Rashida,
your suggestion was successfull.

I will now watch the system for some days and report to you in case of problems.

Kind regards

Giuseppe Piffaretti

Rashida Rahman Staff

Hi,

Glad that I could help, and you are always welcome, Giuseppe :)

Have a nice day!

Log in to reply.