Fatal error: Unsupported operand types in ...

Fragment of a discussion from Talk:Maps
Jump to: navigation, search

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'
       ) );
Jeroen - LQT is failing when I login05:26, November 9, 2010

LQT test

213.224.29.16220:24, November 9, 2010

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

84.147.11.4623:33, November 15, 2010
 

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

Error in line 17423:35, November 15, 2010

Can you do the following?

  1. Add this code just before the code in question: var_dump($wgExtraNamespaces);exit;
  2. Hit your wiki (which should not show)
  3. View page source, copy what's there and post it here
  4. Remove the above code (so your wiki is usable again)

That'll give me a better idea of what's going wrong.

Jeroen - LQT is failing when I login11:22, November 17, 2010

hello Jeroen That's the same for me on two wiki

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)

Jeffdelonge15:20, November 28, 2010

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.

213.224.29.16223:49, November 28, 2010

source page is only NULL

if this can help --Jeffdelonge 03:13, November 29, 2010 (EST)

Jeffdelonge08:13, November 29, 2010

Aha. It should be fixed now on svn trunk. I'll release Maps 0.7.3, which will include this fix, in a not to distant future.

Jeroen De Dauw20:03, November 29, 2010

LQT test

78.22.179.11620:05, November 29, 2010
 

LQT test 2

78.22.179.11620:29, November 29, 2010
 
 
 
 
 
 
 
 
Personal tools
Namespaces
Variants
Views
Actions
Navigation
Manuals
Useful lists
More awesomeness
Toolbox