-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[4.2] Fix fatal error when update to Joomla 4.2 #37990
[4.2] Fix fatal error when update to Joomla 4.2 #37990
Conversation
@joomdonation
But now, Frontend and Backend are corrupted. |
@ChristineWk You can delete the file administrator/cache/autoload_psr4.php manually to get the site running again. However, to test the PR, you will need to setup another Joomla 4.1 website. The purpose is confirming upgrading to new package won't get fatal error anymore |
OK, Done. Thanks for the hint :-) |
From what I remember that cache file is supposed to be deleted and rebuiult during the update process |
found it #36094 |
@brianteeman That PR only solved the issue when new extensions are added during update process (like Schedule extension which we added in 4.1). For 4.2, we converted some plugins to new structure, so the namespace map must be re-generated earlier than that, otherwise, after the extraction process, we will get fatal error immediately and the upgrade could not be completed. |
I have tested this item ✅ successfully on 7aaebc4 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37990. |
I have tested this item ✅ successfully on 7aaebc4
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37990. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37990. |
Thanks everybody |
This comment was marked as abuse.
This comment was marked as abuse.
I have a related issue maybe? I have removed the file suggested above "@ChristineWk You can delete the file administrator/cache/autoload_psr4.php manually to get the site running again. However, to test the PR, you will need to setup another Joomla 4.1 website. The purpose is confirming upgrading to new package won't get fatal error anymore" But that has not solved my issue. Any suggestions : Live site is at this URL (I also stupidly did not do a backup!) Thanks This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37990. |
This comment was marked as abuse.
This comment was marked as abuse.
Thanks PhilETaylor. Where do I do that please? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37990. |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, I didn't know I was in the wrong place. I will do that as suggested and also look there. :-) This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37990. |
Dears, I have new problem, please help This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37990. |
@rkostanyan Try to delete the file administrator/cache/autoload_psr4.php from your site. That should address the issue. |
Problem is not resolved:( This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37990. |
@rkostanyan If so, I don't have any other idea. You might need to have a developer to look at your site to see what's actual reason and get it sorted. Without accessing to your site, it's hard to know the root reason of the error |
Pull Request for Issue # .
Summary of Changes
In Joomla 4.2, we convert some plugins to new structure, so the namespace map will need to be re-generated before avoid Joomla calls com_joomlaupdate to finalize upgrade process to avoid fatal error.
Testing Instructions
Joomla\Plugin\Actionlog\Joomla\Extension\Joomla
not found (something like that, I don't remember exactly the error message)Actual result BEFORE applying this Pull Request
Fatal error while upgrading to Joomla 4.2
Expected result AFTER applying this Pull Request
Upgrade to Joomla 4.2 works well.