Fatal error: Unsupported operand types in ...
That's odd... PHP 5.2.9 should support += for arrays. Anyway, this code is synonymous, so will probably get rid of the issue for you:
$wgExtraNamespaces = array_merge( $wgExtraNamespaces, array(
Maps_NS_LAYER => 'Layer',
Maps_NS_LAYER_TALK => 'Layer talk'
) );
LQT test
Hey everyone,
I also get the message "Fatal error: Unsupported operand types in /home/me/public_html/extensions/Maps/Maps.php on line 174 " like KBurns.
When I change the Code to:
$wgExtraNamespaces = array_merge( $wgExtraNamespaces, array(
Maps_NS_LAYER => 'Layer',
Maps_NS_LAYER_TALK => 'Layer talk'
) );
Then I get a new error:
Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /www/htdocs/***/***/extensions/Maps/Maps.php on line 174
PartyLexy.net
Hey everyone,
I also get the message "Fatal error: Unsupported operand types in /home/me/public_html/extensions/Maps/Maps.php on line 174 " like KBurns.
When I change the Code to:
$wgExtraNamespaces = array_merge( $wgExtraNamespaces, array(
Maps_NS_LAYER => 'Layer',
Maps_NS_LAYER_TALK => 'Layer talk'
) );
Then I get a new error:
Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in /www/htdocs/***/***/extensions/Maps/Maps.php on line 174
PartyLexy.net
Can you do the following?
- Add this code just before the code in question:
var_dump($wgExtraNamespaces);exit; - Hit your wiki (which should not show)
- View page source, copy what's there and post it here
- Remove the above code (so your wiki is usable again)
That'll give me a better idea of what's going wrong.
hello Jeroen That's the same for me on two wiki
- http://www.museum-gray.org/mediawiki/index.php/Sp%C3%A9cial:Version
- http://wiki-grenoble.tmp02.haisoft.net/index.php/Sp%C3%A9cial:Version
when i try to install 0.7.2 maps extension i get "Fatal error: Unsupported operand types in... on Line 174"
and the same error "Warning: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in ..." when i change the code
did you inderstood why and fixed it ?
thanks--Jeffdelonge 10:20, November 28, 2010 (EST)
Can you do what I wrote in my previous post? I'm not able to reproduce this issue locally, so need to know what's going wrong in order to fix it.
source page is only NULL
if this can help --Jeffdelonge 03:13, November 29, 2010 (EST)
