Closed (won't fix)
Project:
Search API Solr
Version:
7.x-1.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Feb 2012 at 10:38 UTC
Updated:
13 Sep 2013 at 10:39 UTC
Jump to comment: Most recent file
Comments
Comment #1
herve commentedA tiny patch attached to this post.
Comment #2
mgiffordThis messes up other help modules. It's tiny, but it breaks other help pages so I'm moving this up to critical.
Comment #3
drunken monkeyWhich module calls this function with
NULLas a second parameter?From the
hook_help()documentation:So I'm pretty sure that the caller is in the wrong here, not this module. I'm just taking the coding standards more seriously than others (including parts of core).
Comment #4
drunken monkeyComment #5
jgalletta commentedRubik theme is one of the culprits, I submitted an issue and a patch: http://drupal.org/node/1996474
Comment #6
fluxsauce commentedI just encountered this bug. Yes, it's now fixed in rubik #1996474: module_invoke for hook help is generating a fatal error for some modules (not in the full release), but for anyone who isn't using that beta release that came out a week ago (which is most people) will still encounter this avoidable fatal error. The official API documentation which you linked to reads:
function hook_help($path, $arg) {You're not wrong about $arg containing arrays, but some points aren't worth making. Your implementation deviates from the official API and it's causing avoidable problems.
Please reconsider.
Comment #7
drunken monkeyNow it makes less sense than ever. It is actually fixed in Rubik and there's a new release, so either people can just update Rubik – or we can commit this workaround, people can wait for our next release and then update this module instead of Rubik. Why would this have any advantage?
I agree my position is disputable, but I just think it's important to adhere to the coding standards, and I don't like to compromise there just because of errors in other modules. (That's also why I hate working with Views.)
For fixing fatal errors, especially since it apparently took over a year to solve them otherwise, it might have been the better option (even though it would have meant that the Rubik error probably wouldn't have been fixed at all), but it doesn't really make any sense anymore, as explained above.
Comment #8
kenorb commentedUpgrade of Rubik helped. Thanks.