User tests: Successful: Unsuccessful:
Pull Request resolves # .
This pull request (PR) removes the compat6 backwards compatibility (b/c) plugin for Joomla 6 for new installation and updates, makes necessary adjustments of b/c plugin checks for the new major version 7 and finalises the addition of the compat7 b/c plugin for Joomla 7 which was made with PR #47420 but was not complete.
In detail, following changes are made:
installation/sql/<db type>/base.sql).plugins/behaviour/compat6/classes folder and subfolders. These are moved to the new compat7 plugin.libraries/src/Extension/ExtensionHelper.php), and the new compat7 plugin is added.administrator/language/en-GB/plg_behaviour_compat7.ini and administrator/language/en-GB/plg_behaviour_compat7.sys.ini for the new compat7 plugins are added,administrator/components/com_admin/src/Model/SysinfoModel.php) is changed to use the right plugin and not the old compat6. The change is made in a way so that it doesn't need a code change with every new major version, using Version::MAJOR_VERSION, similar to what was done for the pre-update checks in 6.2-dev and meanwhile been merged up into 7.0-dev.uninstallExtensions method in file administrator/components/com_admin/script.php is changed so that the compat6 plugin is removed when updating from 6.x to 7.0build/deleted_file_check.php the obsolete exclusions from 6.x are removed, and exclusions for the compat6 files are added so that they will not be reported to be added the deleted files list in script.php, which would cause them to be deleted on update before the uninstallExtensions method in file script.php is run.phpstan-baseline.neon file are adapted for the right plugin.ruleset.xml are adapted for the right plugin.tests/System/integration/install/Installation.cy.js) the right plugin is disabled.Code review.
Or if you want to make real tests:
On a new installation and after an update from 6.2 there are 2 backwards compatibility behaviour plugins compat6 and compat7.
The compat7 plugin is not complete, language files and the entry in the ExtensionHelper are missing.
System information shows the enabled status of the wrong plugin (compat6 instead of compat7).
On a new installation there is only the compat7 plugin but no compat6 plugin.
After an update from 6.2 the compat6 plugin has been deleted.
The compat7 plugin is working as expected.
System information shows the enabled status of the right plugin (compat7).
Phpstan and PHP code style checks are successful for this PR here.
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | Administration com_admin Language & Strings JavaScript Repository SQL Installation Postgresql Libraries Front End Plugins |
| Labels |
Added:
Language Change
bug
PR-7.0-dev
|
||
I have tested this item ✅ successfully on 36b1411
by code review
I have tested this item 🔴 unsuccessfully on 36b1411
I'n installed 6.2 and uploaded the package through upload. Then I enabled the plugin and got:
Joomla\Event\Dispatcher::addListener(): Argument #2 ($callback) must be of type callable, array given, called in /libraries/vendor/joomla/event/src/Dispatcher.php on line 396
I have tested this item 🔴 unsuccessfully on 36b1411
I'n installed 6.2 and uploaded the package through upload. Then I enabled the plugin and got:
Joomla\Event\Dispatcher::addListener(): Argument #2 ($callback) must be of type callable, array given, called in /libraries/vendor/joomla/event/src/Dispatcher.php on line 396
I have tested this item 🔴 unsuccessfully on 36b1411
I'v installed 6.2 and uploaded the package through upload. Then I enabled the plugin and got:
Joomla\Event\Dispatcher::addListener(): Argument #2 ($callback) must be of type callable, array given, called in /libraries/vendor/joomla/event/src/Dispatcher.php on line 396
Look like copy/paste error. The compat7 plugin does not have onAfterInitialiseDocument implemented, so just remove this line https://github.com/joomla/joomla-cms/blob/7.0-dev/plugins/behaviour/compat7/src/Extension/Compat7.php#L43 to make getSubscribedEvents return empty array would address the error above
I have tested this item ✅ successfully on 2c92907
I have tested this item ✅ successfully on 2c92907
@joomdonation Could you test again? I have added one more commit to add back the classes aliases option.
I have tested this item ✅ successfully on c6a23bb
Still works OK. This time, I tested upgrade from J6 to J7. Also tested behavior of parameters in the plugin, works well.
I have tested this item ✅ successfully on c6a23bb
Still works OK. This time, I tested upgrade from J6 to J7. Also tested behavior of parameters in the plugin, works well.
| Status | Pending | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-06-09 11:09:46 |
| Closed_By | ⇒ | laoneo |
Thanks!
I have tested this item ✅ successfully on 36b1411
by code review
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47915.