User tests: Successful: Unsuccessful:
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:
Joomla\Filesystem \File: write: Argument #2 ($buffer) could not be passed by reference
autoload_psr4.php
in the cache folderPlease 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
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
I have tested this item succesfully.
Tested with php8.4. After implementing the changes specified in the patch, the error no longer exists.
Thanks to SniperSister.
Regrards,
Dirk
Yes, I forgot to click.
Sorry, but I don't do that very often.
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
bug
PR-5.2-dev
|
RTC
Labels |
Added:
RTC
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-01-31 17:14:06 |
Closed_By | ⇒ | Hackwar |
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?
When will this fix be available in Joomla public distributions?
5.2.4
shows planned Release date 18 February 2025Here'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.
I have tested this item ✅ successfully on 7d5943a
Hint for other testers: It needs to set PHP error_reporting to maximum and to enable "Debug System" (or have display_errors = On in PHP settings) for reproducing the error.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44789.