Reputation: 726
I have the following error appearing on every page on my Wiki. Normally, I would disable error display, but since I'm still developing the site, I don't want to do this, I'd rather fix the error.
Warning: array_merge_recursive(): Argument #1 is not an array in /var/www/html/includes/registration/ExtensionProcessor.php on line 294
I'm running the latest version of MW - 1.25.1 and have the following extensions installed:
How can I resolve this? I'm not sure where to begin troubleshooting.
Upvotes: 0
Views: 264
Reputation: 11
For me, the error appeared after I loaded HitCounter and TopTenPages, but I believe it would happen any time you load 2 or more extensions with the wfLoadExtension hook in Mediawiki 1.25.1.
I was able to fix this error by adding 'manifest_version',
after line 83 ('AutoloadClasses',
) in mediawiki/includes/registration/ExtensionProcessor.php.
This was based on change 218787.
Upvotes: 1
Reputation: 121
Found some related cause of the problem.
It appears the Array will fail if you have more than 5 skins loaded in LocalSettings.php
for example if you have specified:
wfLoadSkin( 'CologneBlue' );
wfLoadSkin( 'Modern' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Vector' );
wfLoadSkin( 'Gamepress' );
then you will not get the error message, but the momment you add the 6th or more skin, then you'll see that error message
wfLoadSkin( 'CologneBlue' );
wfLoadSkin( 'Modern' );
wfLoadSkin( 'MonoBook' );
wfLoadSkin( 'Vector' );
wfLoadSkin( 'Gamepress' );
wfLoadSkin( 'Bouquet' );
wfLoadSkin( 'DuskToDawn' );
wfLoadSkin( 'WPtouch' );
wfLoadSkin( 'Dusk' );
Also, some skins will still cause the problem, when loaded along with other skins like
wfLoadSkin( 'WPtouch' );
wfLoadSkin( 'Dusk' );
Works okay when loaded by itself, but the error still shows up, while included with default skins and Gamepress or Bouquet.
At the moment it's a mix and match if you want to use different skins for mobile and PC.
Upvotes: 1