-
-
Couldn't load subscription status.
- Fork 3.7k
[5.2] Fix namespace map creation on PHP 8.4 #44789
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
[5.2] Fix namespace map creation on PHP 8.4 #44789
Conversation
|
I have tested this item ✅ successfully on 7d5943a This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44789. |
|
I have tested this item succesfully. Regrards, This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44789. |
|
@WM-Loose It seems you have not selected the test result before submitting, so you have submitted "Not tested". |
|
Yes, I forgot to click. |
|
@WM-Loose Ok, I will mark the test result for you. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44789. |
|
Thank you for your contribution! 😀 |
|
If this blocks the creation of the file totally then this needs backporting to the 4.x branch |
|
When will this fix be available in Joomla public distributions? I have a server with PHP 8.4 and a mixture of Joomla 4 and Joomla 5 websites whose extensions I cannot update at all. Some are flat-out broken where the Admin side works but the front-end does not. Thoughts? This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44789. |
Milestone is 5.2.4 (Github)Click on
|
|
Here's hoping you finish sooner. I'm going to have to recreate my 10 Joomla 4 sites in Joomla 5 and hobble along with my Joomla 5 sites until then. I tell you this in case for any reason the Joomla developers forget that what you do impacts people's businesses big-time. Thank you. |
|
In emergency you can always apply the code change manually, especially this one as it is small. |
|
The date is fixed. We will not release earlier than that. If you need this fix now, you have to apply it manually. |
|
I am open to applying it manually. I do not dabble in the Joomla GitHub project; if there's a specific file to download and replace, I'd appreciate it if you'd point that out to me. Thank you. |
|
@tooliedotter You can go to "Changed files" in this pull request and see there is only one file and then download that file. For your convenience: libraries/namespacemap.php |
|
@richard67 you are a gentleman and I thank you very much. I've got the file; the question is, will it only work on Joomla 5 or can I apply this to my broken Joomla 4 sites? |
|
@tooliedotter For Joomla 4 you have to use the file from the PR #44811 for Joomla 4: libraries/namespacemap.php But you should not apply the files on any Joomla 4 and 5 version, it should be the latest version, i.e. 4.4.10 for the J4 file and 5.2.3 for the J5 file. |
|
P.S.: It also can be that the 2 files are identical, I haven't checked that. But better play safe and use the right one. |


Summary of Changes
The creation of the namespace map file fails on PHP 8.4 as the content is implicitly provided to File::write as reference, causing this message:
Testing Instructions
autoload_psr4.phpin the cache folderActual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed