Topic on Project:Support desk

Error upgrading from 1.21.1 to 1.23.2 [Solved]

5
Jbsquires (talkcontribs)

When I attempted to update my mediawiki from 1.21.2 to 1.23.2 I got the following error: <!DOCTYPE html> <html><head><title>Internal error - MediaWiki</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>

[eaf17141] /w/mw-config/?page=Upgrade Exception from line 182 of /home/wrlimgzl/public_html/w/includes/Hooks.php: Invalid callback in hooks for LoadExtensionSchemaUpdates

Backtrace:

#0 /home/wrlimgzl/public_html/w/includes/GlobalFunctions.php(4004): Hooks::run(string, array, NULL)

  1. 1 /home/wrlimgzl/public_html/w/includes/installer/DatabaseUpdater.php(116): wfRunHooks(string, array)
  2. 2 /home/wrlimgzl/public_html/w/includes/installer/DatabaseUpdater.php(170): DatabaseUpdater->__construct(DatabaseMysqli, boolean, NULL)
  3. 3 /home/wrlimgzl/public_html/w/includes/installer/DatabaseInstaller.php(278): DatabaseUpdater::newForDB(DatabaseMysqli)
  4. 4 /home/wrlimgzl/public_html/w/includes/installer/WebInstallerPage.php(646): DatabaseInstaller->doUpgrade()
  5. 5 /home/wrlimgzl/public_html/w/includes/installer/WebInstaller.php(283): WebInstaller_Upgrade->execute()
  6. 6 /home/wrlimgzl/public_html/w/mw-config/index.php(63): WebInstaller->execute(array)
  7. 7 /home/wrlimgzl/public_html/w/mw-config/index.php(31): wfInstallerMain()
  8. 8 {main}

</body></html> Any suggestions?

88.130.88.26 (talkcontribs)

Hi!

You are using at least one extension, which calls the hook LoadExtensionSchemaUpdates. This extension does not work correctly with the new version of MediaWiki as it does not provide a valid callback.

The solution is to identify the failing extension and to update it before you run the update script. Most likely an extension update will already solve the issue.

Jbsquires (talkcontribs)

Well I couldn't find the extension that was causing the problem so I just commented out all the extensions I have added and the upgrade went soomthly, then just uncommented all my added extension and all seem good.

Florianschmidtwelzow (talkcontribs)

But this isn't the right/correct way ;) I think there is a reason, that the developer of the extension wants to run some schema updates for his extension. So i would suggest, that you find out, what extension was the problem and maybe update and/or contact the developer for help :)

Jbsquires (talkcontribs)

Well I couldn't find the extension that was causing the problem so I just commented out all the extensions I have added and the upgrade went soomthly, then just uncommented all my added extension and all seem good.

Reply to "Error upgrading from 1.21.1 to 1.23.2 [Solved]"