User tests: Successful: Unsuccessful:
Pull Request resolves # .
This pull request (PR) fixes the check of the backwards compatibility plugins in the CLI Core Update command which is performed when updating to a new major version - here Joomla 7, so that
Version::MAJOR_VERSIONfor the current and Version::MAJOR_VERSION + 1 for the version-specific part of the plugin identifier (element) so that the code doesn't need to be adjusted with every new major version.It is basically the same as PR #47807 for the pre-update check in the backend, but here for the CLI without any need for a language string change.
This PR can only be tested when PHP CLI is available.
The numbered steps 1 to 6 below need to be done for each of these 2 tests:
Each of the tests has to start with a current 6.0-dev or latest 6.2 nightly build installation
https://update.joomla.org/core/nightlies/next_major_list.xml.php ./cli/joomla.php core:update
Updating Joomla
===============
Starting up ...
Running checks ...
Check Database Table Structure...
1/9 [===>------------------------] 11%
[INFO] 3 database changes were checked.
[INFO] 39 database changes did not alter table structure and were skipped.
Check pre-conditions for a major upgrade to version 7.0.0-alpha1-dev...
2/9 [======>---------------------] 22%
[ERROR] The 'Behaviour - Backward Compatibility 6' plugin is disabled.
9/9 [============================] 100%
[INFO] The pre-conditions for a major upgrade are not fulfilled.
This is wrong.
We are on Joomla 6, an update to 7 should work when the b/c plugin for the current major version 6 is disabled (as long as we do not have a b/c plugin yet for the next major version 7 which would need to be enabled).
The update is performed.
This is wrong.
We are on Joomla 6, an update to 7 should not work when the b/c plugin for the current major version 6 is enabled.
The update is performed.
This is right as long as we do not have a b/c plugin yet for the next major version 7 which would need to be enabled.
Updating Joomla
===============
Starting up ...
Running checks ...
Check Database Table Structure...
1/9 [===>------------------------] 11%
[INFO] 3 database changes were checked.
[INFO] 39 database changes did not alter table structure and were skipped.
Check pre-conditions for a major upgrade to version 7.0.0-alpha1-dev...
2/9 [======>---------------------] 22%
[ERROR] The 'Behaviour - Backward Compatibility 6' plugin is enabled.
9/9 [============================] 100%
[INFO] The pre-conditions for a major upgrade are not fulfilled.
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 | ⇒ | Libraries |
| Labels |
Added:
bug
PR-6.2-dev
|
||
| Title |
|
||||||
I have tested this item ✅ successfully on fd60314
I have tested this item ✅ successfully on fd60314
I have tested this item ✅ successfully on fd60314
| Status | Pending | ⇒ | Ready to Commit |
RTC
RTC
| Labels |
Added:
RTC
|
||
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-05-23 10:43:49 |
| Closed_By | ⇒ | MacJoom |
Thank you!
I have tested this item ✅ successfully on fd60314
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/47814.