Skip to content

Conversation

@MacJoom
Copy link
Contributor

@MacJoom MacJoom commented Oct 20, 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

@MacJoom MacJoom changed the title Fix condition to check request format in MenusHelper - deprecation warning [5.4] Fix condition to check request format in MenusHelper - deprecation warning Oct 20, 2025
@brianteeman
Copy link
Contributor

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.

@MacJoom
Copy link
Contributor Author

MacJoom commented Oct 21, 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

@brianteeman
Copy link
Contributor

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

@MacJoom
Copy link
Contributor Author

MacJoom commented Oct 24, 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants