Last modified: 2011-08-01 16:06:27 UTC
I believe the error message (see http://www.keytonature.eu/wiki/Test ) depends on the google maps extension only, so I suspect the root cause is in the extension, although the error reports to a core module. Version is trunk (http://www.keytonature.eu/wiki/Special:Version).
I think that this error has nothing to do with the extension. PHP Warning: in_array() expects parameter 2 to be array, boolean given in /htdocs/includes/parser/ParserOptions.php on line 297 Seems like there is a wrong in_array call in the ParserOptions.php on line 297, 302 and 317
Looks like my last comment was total crap. But I have the same problem with the DynamicPageList extension. http://www.mediawiki.org/wiki/Extension:DynamicPageList_(third-party)
I maintain DPL and I think the problem lies in ParserOutput.php, line 339. function getUsedOptions returns "false" if no options exist, but later in ParserCache.php, line 186 the result is passed to ParserOptions.php, function optionsHash(..); This function is not aware of the fact that its argument might not be an array. I suggest the following BUGFIX: /** * Returns the options from its ParserOptions which have been taken * into account to produce this output or false if not available. * @return mixed Array/false */ public function getUsedOptions() { if ( !isset( $this->mAccessedOptions ) ) { return array(); // BUGFIX: return empty array !! return false; } return array_keys( $this->mAccessedOptions ); } This bugxif works with DPL and I am pretty sure it will also avoid the same error with any other extension ....
*** Bug 29605 has been marked as a duplicate of this bug. ***
Gero's solution fixed my wiki's problems, any chance of this being included in 1.18 so we don't have to keep patching it?
Created attachment 8850 [details] Gero's fix
r93627 & 93626