Brion Vibber wrote: > That warning message may not be shown depending on PHP's error_log and > display_errors settings, leaving only MediaWiki's display of the > now-surprising exception about the hook function returning null.
Pretty much what was happening. It seems that the user had its logs going elsewhere. The behavior of call_user_func() returning the undocumented NULL was also a problem. This makes difficult to detect different types of bugs. I don't know if it is a good idea to improve the thrown exception message when call_user_func_array() returns null to note this possibility. Or perhaps use set_error_handler() around the call_user_func_array() to catch these types of errors and provide a better error message. > There could be several reasons it's failing: > > * something's trashing the $wgAutoloadClasses entries, causing the hooks > class to not be loaded (I suspect this is most likely; another extension > might be responsible) > * missing or damaged WikilogHooks.php file > * missing or damaged Wikilog.php file > * weird PHP breakage like a borked opcode cache I found it, it was a value<->reference incompatibility in the parameter list of the function. Thanks for the help! Best regards, Juliano. -- Juliano F. Ravasi ยทยท http://juliano.info/ 5105 46CC B2B7 F0CD 5F47 E740 72CA 54F4 DF37 9E96 "A candle loses nothing by lighting another candle." -- Erin Majors * NOTE: Don't try to reach me through this address, use "contact@" instead. _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
