Pending

User tests: Successful: Unsuccessful:

avatar MacJoom
MacJoom
20 Oct 2025

Pull Request for Issue #45707

Summary of Changes

Check for index.php? instead of index.php before entering parse_url

Testing Instructions

As in described in the issue:

1/ Create a menu item "URL" type - enter just index.php
2/ Set errors report to maximum in global config
3/ A warning shows up in the menu item (backend)

Actual result BEFORE applying this Pull Request

Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/clients/client2/web46/web/administrator/components/com_menus/src/Helper/MenusHelper.php on line 76

Expected result AFTER applying this Pull Request

No warning

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

avatar MacJoom MacJoom - open - 20 Oct 2025
avatar MacJoom MacJoom - change - 20 Oct 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Oct 2025
Category Administration com_menus
avatar MacJoom MacJoom - change - 20 Oct 2025
Title
Fix condition to check request format in MenusHelper - deprecation warning
[5.4] Fix condition to check request format in MenusHelper - deprecation warning
avatar MacJoom MacJoom - edited - 20 Oct 2025
avatar brianteeman brianteeman - test_item - 21 Oct 2025 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 21 Oct 2025

I have tested this item 🔴 unsuccessfully on f8d1efd

This does remove the notices but the link does not work
Any url in the format index.php/link will not work (make sure you test from a page that is not the home page


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46341.
avatar MacJoom
MacJoom - comment - 21 Oct 2025

I have tested this item 🔴 unsuccessfully on f8d1efdThis does remove the notices but the link does not work Any url in the format index.php/link will not work (make sure you test from a page that is not the home page

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46341.

Yes i see - but this is yet another bug - happens without the patch as well - only happens if you do use things like index.php/team works if you use only /team
We could just replace index.php/xxx with /xxx

avatar brianteeman
brianteeman - comment - 21 Oct 2025

urls in the format index.php/xxx are created when you enabled SEF urls (the default) and do not enable URL rewriting (the default)

avatar MacJoom
MacJoom - comment - 24 Oct 2025

Can we just pass this PR that fixes the original issue and open a new issue for the index.php/ bug. Needs to be fixed somewhere else. In the router i guess

Add a Comment

Login with GitHub to post a comment