Topic on Project:Support desk

PHP Fatal error: Unsupported operand types

11
Cophead567 (talkcontribs)

I'm trying to get a new install up and running on a local server. I'm seeing this in the apache error logs.

"PHP Fatal error:  Unsupported operand types in /var/www/html/wiki/includes/registration/ExtensionRegistry.php on line 272"

I can't seem to find anything about this or what might be the issue. I'm running the latest MW (1.26.0) with PHP 5.5.30 on a CentOS 6 server.

Ciencia Al Poder (talkcontribs)

Maybe one of your extensions is incompatible or has a bug. Try disabling all extensions and enable one by one until you find which one causes the issue.

2601:285:0:1000:99A6:B3F2:B7B0:696F (talkcontribs)

I'm also getting this and I have no extensions enabled...

2601:285:0:1000:99A6:B3F2:B7B0:696F (talkcontribs)

It appears that this is the problem line in ExtensionsRegistry.php

$this->loaded += $info['credits'];

2601:285:0:1000:99A6:B3F2:B7B0:696F (talkcontribs)

This error occurs on PHP 5.5 and PHP 5.6

It does not occur on PHP 5.4

88.130.119.246 (talkcontribs)

If this happens also, when no extensions are installed, then this is a bug, which should be fixed (wrong or missing variable initialization, missing type check?). Please open a bugreport!

14.202.215.195 (talkcontribs)

I also have this same issue with no extensions . I hope someone is following up the bugreport. Mine is on line 122.

AKlapper (WMF) (talkcontribs)

Please link to the bug report here.

Ciencia Al Poder (talkcontribs)

This was task T120267 and was backported to 1.26.1 so this shouldn't happen if you're using the most recent 1.26 release

5.237.183.179 (talkcontribs)

Fatal error: Uncaught Error: Unsupported operand types in F:\PHP\PHP-install\xampp\htdocs\tamrin16\submit.php:8 Stack trace: #0 {main} thrown in F:\PHP\PHP-install\xampp\htdocs\tamrin16\submit.php on line 8

TiltedCerebellum (talkcontribs)

See Ciencia Al Poder’s reply above. Use the most recent release. I’m curious why you are using such an old version of mediawiki whose support has ended?