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->__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->doUpgrade()<br />
#4 /home/paladox1/public_html/includes/installer/WebInstaller.php(279): WebInstallerUpgrade->execute()<br />
#5 /home/paladox1/public_html/mw-config/index.php(77): WebInstaller->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