Page MenuHomePhabricator

Math extension causing web updater to fail
Closed, DuplicatePublic

Description

Hi I am re creating my wiki including creating all the tables again as if I am new to mediawiki.

Steps to reproduce

  • Install the mediawiki files on your wiki.
  • Install the vector skin and install the vendor folder.
  • I am using mediawiki 1.27 wmf 4.
  • I am using math straight off master branch.

Actual results

  • The math extension causes the whole wiki to fail the web updater with this error

<br />
<b>Warning</b>: array_map() [<a href='function.array-map'>function.array-map</a>]: Argument #2 should be an array in <b>/home/paladox1/public_html/extensions/Math/MathRenderer.php</b> on line <b>652</b><br />
<!DOCTYPE html>
<html><head><title>Internal error - MediaWiki</title><style>body { font-family: sans-serif; margin: 0; padding: 0.5em 2em; }</style></head><body>
<p>[a3f1c49e] /mw-config/?page=Upgrade MWException from line 220 of /home/paladox1/public_html/includes/Hooks.php: Detected bug in an extension! Hook MathHooks::onLoadExtensionSchemaUpdates has invalid call signature; in_array() expects parameter 2 to be array, null given</p><p>Backtrace:</p><p>#0 /home/paladox1/public_html/includes/installer/DatabaseUpdater.php(118): Hooks::run(string, array)<br />
#1 /home/paladox1/public_html/includes/installer/DatabaseUpdater.php(183): DatabaseUpdater-&gt;__construct(DatabaseMysqli, boolean, NULL)<br />
#2 /home/paladox1/public_html/includes/installer/DatabaseInstaller.php(305): DatabaseUpdater::newForDB(DatabaseMysqli)<br />
#3 /home/paladox1/public_html/includes/installer/WebInstallerPage.php(647): DatabaseInstaller-&gt;doUpgrade()<br />
#4 /home/paladox1/public_html/includes/installer/WebInstaller.php(279): WebInstallerUpgrade-&gt;execute()<br />
#5 /home/paladox1/public_html/mw-config/index.php(77): WebInstaller-&gt;execute(array)<br />
#6 /home/paladox1/public_html/mw-config/index.php(36): wfInstallerMain()<br />
#7 {main}</p>
</body></html>

Expected results

  • I expect the web updater to pass.
  • It fails with <p>[a3f1c49e] /mw-config/?page=Upgrade MWException from line 220 of /home/paladox1/public_html/includes/Hooks.php: Detected bug in an extension! Hook MathHooks::onLoadExtensionSchemaUpdates has invalid call signature; in_array() expects parameter 2 to be array, null

Related Objects

Event Timeline

Paladox raised the priority of this task from to Needs Triage.
Paladox updated the task description. (Show Details)
Paladox added a subscriber: Paladox.
Paladox set Security to None.
Paladox added a subscriber: Physikerwelt.

@Physikerwelt can I add you to the task please.

Disabling the math extension during the web updater fixes it. But math extension needs fixing. Probaly remove the in_array it is causing problems.

This comment was removed by Paladox.