-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
[4.4] Add Joomla 5 compat plugin to 4.4.0 to fix class "JPlugin" not found error on update to 5 #41738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
HLeithner
merged 6 commits into
joomla:4.4-dev
from
richard67:4.4-dev-add-j5-compat-plugin
Sep 13, 2023
Merged
[4.4] Add Joomla 5 compat plugin to 4.4.0 to fix class "JPlugin" not found error on update to 5 #41738
HLeithner
merged 6 commits into
joomla:4.4-dev
from
richard67:4.4-dev-add-j5-compat-plugin
Sep 13, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 tasks
Member
|
Is this needed only for the class JPlugin or all J* classes? |
Member
|
For all J* classes. Any system plugin still may use one of J* class in constructor or in other system events. |
brianteeman
reviewed
Sep 13, 2023
Co-authored-by: Brian Teeman <[email protected]>
Member
Author
|
To be honest, I am not very happy with my solution, but it seems there is no other way to fix the issue, or any other way would be worse. |
Member
|
thanks |
HLeithner
added a commit
that referenced
this pull request
Sep 19, 2023
* [4.4] Upmerge (#41733) * [4.3] fix localised cli installation (#41706) * [4.3] Work around a successful upgrade with silent errors (#41367) * Log all * Capture errors * Log messages * Error collector * Error collector * More error collecting * More error collecting * Show errors * Cli command check errors * phpcs * phpcs * Back button and better text * phpcs * logs * Make sure logging is working before continue * Apply suggestions from code review --------- Co-authored-by: Richard Fath <[email protected]> Co-authored-by: Harald Leithner <[email protected]> * cs --------- Co-authored-by: heelc29 <[email protected]> Co-authored-by: Fedir Zinchuk <[email protected]> Co-authored-by: Richard Fath <[email protected]> * [4.3] Fix untranslated constants in script.php (#41734) * restrict choicesjs input on container (#41478) * [4.4] Add Joomla 5 compat plugin to 4.4.0 to fix class "JPlugin" not found error on update to 5 (#41738) * Add J5 compat plugin to 4.4.0 * Adapt provider.php to latest changes in 5.0-dev * Add to ExtensionsHelper * Use protected = 0 * Better XML description. * Use correct creationDate in XML file Co-authored-by: Brian Teeman <[email protected]> --------- Co-authored-by: Brian Teeman <[email protected]> * [4.4] Smart Search: Limiting highlighting of tokens (#41463) * Smart Search: Limiting highlighting of tokens * Update components/com_finder/tmpl/search/default_results.php Co-authored-by: Quy <[email protected]> * Adding inline help text --------- Co-authored-by: Quy <[email protected]> Co-authored-by: Olivier Buisard <[email protected]> Co-authored-by: Allon Moritz <[email protected]> Co-authored-by: Martin Carl Kopp <[email protected]> * No longer a code owner build.xml is part of the testing team stuff and the rest I’m removing myself from * Fields is maintained by everybody now * Invalid import from upmerge * Set the configuration options through a command (#41787) * Set the configuration options through a command * cs * PHP 8.2 Creation of dynamic property (#41554) * Fix deprecated message in categories (#41587) * [4.3] fix finder common words (#41468) * [4.3] Fix missing filter for subject (#41726) * Fixed database upmerge conflicts * Update installation/sql/mysql/base.sql Co-authored-by: Richard Fath <[email protected]> --------- Co-authored-by: heelc29 <[email protected]> Co-authored-by: Fedir Zinchuk <[email protected]> Co-authored-by: Richard Fath <[email protected]> Co-authored-by: Magnus Singer <[email protected]> Co-authored-by: Brian Teeman <[email protected]> Co-authored-by: Hannes Papenberg <[email protected]> Co-authored-by: Quy <[email protected]> Co-authored-by: Olivier Buisard <[email protected]> Co-authored-by: Allon Moritz <[email protected]> Co-authored-by: Martin Carl Kopp <[email protected]> Co-authored-by: George Wilson <[email protected]> Co-authored-by: Denitz <[email protected]> Co-authored-by: Christiane Maier-Stadtherr <[email protected]>
Kostelano
added a commit
to JPathRu/localisation
that referenced
this pull request
Oct 19, 2023
joomla/joomla-cms#41733 + joomla/joomla-cms#41738 + joomla/joomla-cms#41463 + joomla/joomla-cms#41757 + joomla/joomla-cms#41947 + joomla/joomla-cms#42047 - (только для en-GB, в ru-RU отсутствует)
This was referenced Apr 23, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue # .
Summary of Changes
This pull request (PR) adds the compatibility plugin from 5.0 to 4.4 so that it's available when updating to 5.0.
The plugin as such is more or less empty so it doesn't do anything on 4.4.
It needs to be there when updating to 5.0 before the database updates run, otherwise you get an exception when having a system plugin installed and enabled which descends from JPlugin.
Testing Instructions
Test 1: Reproduce the issue
On a clean 4.4-dev or latest 4.4 nightly build or 4.4-alpha4 installation, install the following plugin and enable it after installation: https://test5.richard-fath.de/ttest2.zip
Update to the latest 5.0 nightly build or an update package build from the current 5.0-dev branch.
Result: See section "Actual result BEFORE applying this Pull Request" below.
Test 2: Test the fix from this PR with a new 4.4 installation with the fix
On a clean 4.4-dev or latest 4.4 nightly build or 4.4-alpha4, apply the patch of this PR.
Make a new installation.
Install the following plugin and enable it after installation: https://test5.richard-fath.de/ttest2.zip
Update to the patched package or custom update URL created by Drone for PR [5.0] Handle compat plugin already existing in 4.4.0 when updating to 5 #41739 .
Result: See section "Expected result AFTER applying this Pull Request" below.
Test 3: Test the fix from this PR with a 4.4 previously updated to the 4.4 with the fix
On a clean 4.4-dev or latest 4.4 nightly build or 4.4-alpha4 installation without the patch of this PR applied, update to the patched package or custom update URL created by Drone for this PR here.
Install the following plugin and enable it after installation: https://test5.richard-fath.de/ttest2.zip
Update to the patched package or custom update URL created by drone for PR [5.0] Handle compat plugin already existing in 4.4.0 when updating to 5 #41739 .
Result: See section "Expected result AFTER applying this Pull Request" below.
Actual result BEFORE applying this Pull Request
Depending on your global configuration settings for "Error Reporting" and "Debug System", you get the following results:
ERROR Class "JPlugin" not found. The latter error is the reason why the finalization step of the update is not started and the database updates have not run.Expected result AFTER applying this Pull Request
The update succeeds.
Link to documentations
Please select:
No documentation changes for docs.joomla.org needed
No documentation changes for manual.joomla.org needed