Something for the todo list. Been getting this error on 7.2.x-dev
"Notice: Undefined index: name in _update_process_info_list() (line 205 of C:\sites\d7twig\modules\update\update.compare.inc)."
I traced it to the bad.info file in code_sniffer/Tests where name is intentionally omitted. This appears whenever I run admin/reports, when running admin/rmodules I get the above message followed by
"Notice: Undefined index: name in system_sort_modules_by_info_name() (line 949 of C:\sites\d7twig\modules\system\system.admin.inc)."
for each module found, then
"Warning: uasort(): Array was modified by the user comparison function in system_modules() (line 800 of C:\sites\d7twig\modules\system\system.admin.inc).
Notice: Undefined index: name in _system_modules_build_row() (line 982 of C:\sites\d7twig\modules\system\system.admin.inc)."
Eliminating the error is easy by including "name" in bad.info but not sure how this would effect tests. Also why is the tests directory in code_sniffer Camelcased "Tests" when all the others are lowercase.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | coder-silence_notice_from_bad_module-1828330-4.patch | 730 bytes | arnested |
Comments
Comment #1
douggreen commentedI'm hoping we decide to remove these files and move to #1828864: Automated testing for coder_sniffer. Can we mark this a duplicate?
Comment #2
ctmattice1 commentedComment #3
alan d. commentedWith no patch in #1828864: Automated testing for coder_sniffer, should this remain open? This looks to me as a novice coding error with the resulting GIGO warnings seen. So not even sure why it has tests.
i.e. http://drupal.org/node/542202 These first 3 properties are clearly written as being required
Comment #4
arnested commentedThe attached patch will get around the warning be making the module hidden.
Comment #5
pcambraI think that this is quick and painless to fix and there might be followups but I don't see any reason not to apply #4 and make the bad boy to get a little more silent ;)
Comment #6
webchickMan, didn't see this, despite searching, and created a dupe. Let's try some other keywords to help the next person.
"modules page"
There we go. ;) Confirm the RTBC.
Comment #7
webchickPutting against the proper component, also re-titling to something I might've found. :)
Comment #8
klausiCommitted this workaround until we have proper tests, thanks.
Comment #10
Media Crumb commentedis there a solutoin for this? Still getting the error with a completely fresh install of D7