Topic on Project:Support desk

Fatal error: Uncaught RuntimeException

13
DreadHeadJoee (talkcontribs)

Greetings I was upgrading our MediaWiki to add Blue Spice (Free) and ran into a Fatal error that I cant seem to fix, any suggestions... (i'm new to PHP, Apache etc.)  

OS: Ubuntu-18.04.1

PHP 7.2

MySQL DB

Error Details:

Fatal error: Uncaught RuntimeException: The configuration setting 'wgUserMergeProtectedGroups' was already set by MediaWiki core or another extension, and cannot be set again by BlueSpiceUserMergeConnector. in /var/www/html/includes/registration/ExtensionProcessor.php:511 Stack trace: #0 /var/www/html/includes/registration/ExtensionProcessor.php(469): ExtensionProcessor->addConfigGlobal('wgUserMergeProt...', Array, 'BlueSpiceUserMe...') #1 /var/www/html/includes/registration/ExtensionProcessor.php(219): ExtensionProcessor->extractConfig1(Array) #2 /var/www/html/includes/registration/ExtensionRegistry.php(264): ExtensionProcessor->extractInfo('/var/www/html/e...', Array, 1) #3 /var/www/html/includes/registration/ExtensionRegistry.php(158): ExtensionRegistry->readFromQueue(Array) #4 /var/www/html/includes/Setup.php(116): ExtensionRegistry->loadFromQueue() #5 /var/www/html/includes/WebStart.php(88): require_once('/var/www/html/i...') #6 /var/www/html/index.php(39): require('/var/www/html/i...') #7 {main} thrown in /var/www/html/includes/registration/ExtensionProcessor.php on line 511

86.111.34.9 (talkcontribs)

Hello, i has the same Problem.

I doesn't find a Solution.

Ciencia Al Poder (talkcontribs)

If you have the UserMerge extension installed outside of BlueSpice, remove it

86.111.34.9 (talkcontribs)

When i remove the Folder "UserMerge" from ".../mediaWiki/extensions/ i show me this

C:\xampp\htdocs\mediaWIKI>c:\xampp\php\php.exe maintenance\update.php

PHP Fatal error:  Uncaught Exception: C:\xampp\htdocs\mediaWIKI/extensions/UserM

erge/extension.json does not exist! in C:\xampp\htdocs\mediaWIKI\includes\regist

ration\ExtensionRegistry.php:107

Stack trace:

#0 C:\xampp\htdocs\mediaWIKI\includes\GlobalFunctions.php(50): ExtensionRegistry

->queue('C:\\xampp\\htdocs...')

#1 C:\xampp\htdocs\mediaWIKI\settings.d\001-BlueSpiceDistribution.php(15): wfLoa

dExtension('UserMerge')

#2 C:\xampp\htdocs\mediaWIKI\LocalSettings.BlueSpice.php(34): require_once('C:\\

xampp\\htdocs...')

#3 C:\xampp\htdocs\mediaWIKI\LocalSettings.php(142): require_once('C:\\xampp\\ht

docs...')

#4 C:\xampp\htdocs\mediaWIKI\includes\Setup.php(94): require_once('C:\\xampp\\ht

docs...')

#5 C:\xampp\htdocs\mediaWIKI\maintenance\doMaintenance.php(81): require_once('C:

\\xampp\\htdocs...')

#6 C:\xampp\htdocs\mediaWIKI\maintenance\update.php(245): require_once('C:\\xamp

p\\htdocs...')

#7 {main}

  thrown in C:\xampp\htdocs\mediaWIKI\includes\registration\ExtensionRegistry.ph

p on line 107

AhmadF.Cheema (talkcontribs)
86.111.34.9 (talkcontribs)

There is no Entry "Extension:UserMerge" in my LocalSettings.php

Ciencia Al Poder (talkcontribs)

Is there an entry "UserMerge" without Extension: ?

2001:16B8:10D3:E900:B850:C0D3:775:F031 (talkcontribs)

Ciencia, from his stacktrace, this is the relevant line:

> C:\xampp\htdocs\mediaWIKI\settings.d\001-BlueSpiceDistribution.php(15): wfLoa

dExtension('UserMerge')

BlueSpice is loading the extension in C:\xampp\htdocs\mediaWIKI\settings.d\001-BlueSpiceDistribution.php on line 15.

So, if he is using BlueSpice, shouldn't then the extension be available (and not be removed)? Or is BlueSpice integrating extensions from another place? Maybe only a cache problem?

86.111.34.9 (talkcontribs)

In my LocalSettings.php is no Entry like "UserMerge".

I clear the Cache, but it's not better.

The entry in the 001-BlueSpiceDistribution.php at line 15 exists,

When i remove this entry i get this report:

C:\xampp\htdocs\mediaWIKI>c:\xampp\php\php.exe maintenance\update.php

Set $wgShowExceptionDetails = true; at the bottom of LocalSettings.php to show d

etailed debugging information.

When i make this i get the next error:

C:\xampp\htdocs\mediaWIKI>c:\xampp\php\php.exe maintenance\update.php

[bc0272bd87294ab0a30d020e] [no req]   Error from line 329 of C:\xampp\htdocs\med

iaWIKI\extensions\BlueSpiceFoundation\includes\Core.class.php: Call to undefined

function wfProfileIn()

Backtrace:

#0 C:\xampp\htdocs\mediaWIKI\includes\Setup.php(940): BsCore::doInitialise()

#1 C:\xampp\htdocs\mediaWIKI\maintenance\doMaintenance.php(81): require_once(str

ing)

#2 C:\xampp\htdocs\mediaWIKI\maintenance\update.php(245): require_once(string)

#3 {main}

Thank you for your Support

Ciencia Al Poder (talkcontribs)

The wfProfileIn() function has been removed in MediaWiki 1.31.0.

Please be sure you downloaded the BlueSpice extension bundle corresponding to MediaWiki 1.31. Otherwise, BlueSpice may still not be compatible with MediaWiki 1.31 and you may need to keep your wiki to MediaWiki 1.30 at most until this is resolved by BlueSpice.

86.111.34.9 (talkcontribs)

is there a way to downgrad from 1.31 to 1.27 ?

2001:16B8:105F:2200:2939:3A7F:4B73:5097 (talkcontribs)

You can use an older MediaWiki core with your installation, but beware:

  • This is not supported. There is no supported downgrade path.
  • Doing a downgrade might break future upgrades. With other words: If you do a downgrade, you might be screwed.

For BlueSpice, you might try a newer version of the BlueSpice extension.

I looked it up in the BlueSpice repository and the wfProfileIn -Out calls were removed here: https://github.com/wikimedia/mediawiki-extensions-BlueSpiceFoundation/commit/f31d1e3c176edf11a2488b14d3985bc3fbd8063a#diff-332f8b76b86bf46260d82c8e9b77fc22

This fix is included in version 3.0.0-beta2 and 3.0.0-beta - as well as in the master branch.

Maybe you want to try master!

86.111.34.9 (talkcontribs)

I change the MediaWiki-Version to 1.27.

Now the BlueSpice run

Thank you for your support