Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
other
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2020 at 14:39 UTC
Updated:
10 Jun 2022 at 09:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mar4ehk0 commentedHey! I had some issue. and I created for this issue patch.
Comment #3
vladimirausThanks for the commit. Applies and works!
Comment #4
john franklin commentedWhile it does work, it will also mask real issues. For example, if your have a module with an admin page at
admin/config/foo-module, and thefoo.infoincludesconfigure = config/foo-module, you'll get the notice when you load up the Modules page.A better patch would check
$configure_linkis valid and generate a watchdog log for the offending$module->info['configure']path.Comment #5
mcdruid commentedPatch taking the approach outlined in #4 plus a test, and a test-only patch to verify the fix.
One slight annoyance is that the test module cannot be hidden or the admin UI will not try to render the configure link.
We've already added a pair of non-hidden test modules in #3255068: [D7 PHP 8.1] system_modules(): Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated - they couldn't be hidden for similar reasons IIRC.
We may want to consider making the Testing fieldset collapsed by default on the modules page or something like that? That'd be a follow-up issue.
Comment #7
mcdruid commentedBased on #3281772: Hide the "Only For Testing" package by default on the modules admin page we might want to change the package to "Only For Testing" in the test module here.
Comment #8
fabianx commentedLet's indeed put that to "Only for Testing"
RTBC + 1, approved for Merge! Thanks all!
Comment #10
mcdruid commentedChanged the package to "Only For Testing" on commit.
Thank you everybody!