Topic on Project:Support desk

Jump to navigation Jump to search

Unable to Install Math Extension

10
Summary by AhmadF.Cheema

Needed to run the Update.php script.

Zeynel1 (talkcontribs)

MediaWiki Version:1.31.1

Hi,

I tried to follow the manual install as explained here Extension:Math#Installation

But when I tried to upload the extension to the server some files gave an error "An unknown error occurred? Are you over quota?" I contacted the hosting company (A2 Hosting), they said I'm not over quota and that I should contact MediaWiki. Can you help?

I also I did not understand the installation explained here: https://lists.wikimedia.org/pipermail/mediawiki-l/2018-March/047266.html

I don't understand this: "

"For wikis connected to the internet: Simply download the latest versions for both of Mediawiki core [1] and the Math extension [2] and that's it."

MediaWiki is already downloaded and installed. I downloaded and extracted the Math extension, but that's in my computer. I don't get it.

Thanks for the help.

2001:16B8:1093:E500:FC68:97BC:1DEA:79CA (talkcontribs)

You need to download and extract the extension into the extensions/ folder in your MediaWiki installation.

Afterwards you should be able to activate it by adding it to LocalSettings.php as explained in Extension:Math#Installation. Afterwards, the extension must appear on the Special:Version page of your wiki.

AhmadF.Cheema (talkcontribs)

If A2 hosting is not allowing something to upload to their servers, the issue would be at their end. Are you trying to upload the extracted files of the extension instead of the compressed/archived file? If so, upload the extension archive and then extract it on the server, the A2 hosting file upload might have some issues with uploading multiple files.

Regarding your second question, I don't think I understand. MediaWiki core and extension are supposed to be in your account on the A2 hosting server, there is no need to have them on your computer?

Zeynel1 (talkcontribs)

Thanks. I was able to install the extension. I see it on the Special:Version page http://www.zeynel.a2hosted.com/index.php?title=%C3%96zel:S%C3%BCr%C3%BCm I ran the update script in the browser. I added wfLoadExtension( 'Math' ); to LocalSettings.php. But I get this error when I try to load a page with <math>...</math> markup:

MediaWiki internal error.

Original exception: [W@8G6fD124hne5zGvGezuwAAAEg] 2018-11-16 18:05:31: Fatal exception of type "Wikimedia\Rdbms\DBQueryError"

Exception caught inside exception handler.

Set $wgShowExceptionDetails = true; and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php to show detailed debugging information.

It looks like a database error but I don't know what I need to do. Thanks for the help.

AhmadF.Cheema (talkcontribs)

As the error says, set "$wgShowExceptionDetails = true; and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php to show detailed debugging information."

Zeynel1 (talkcontribs)

I added

"$wgShowExceptionDetails = true;

$wgShowDBErrorBacktrace = true;

at the end of LocalSettings.php

But now I get no errors at all, just a blank page. When I comment out those two lines I get the same error again.

AhmadF.Cheema (talkcontribs)

See Manual:How to debug for details. Include the following too:

$wgDevelopmentWarnings = true; error_reporting( -1 ); ini_set( 'display_errors', 1);

Zeynel1 (talkcontribs)

Hi. Now I have these at the end of LocalSettings.php:

$wgShowExceptionDetails = true;

$wgShowDBErrorBacktrace = true;

error_reporting( -1 );

ini_set( 'display_errors', 1 );

But I get no error reporting. Just a blank page.

So I have <math>...</math> tags in a page and when I try to save it I get a blank page.

Can I remove the extension and try to install it again?

Zeynel1 (talkcontribs)

I added $wgDevelopmentWarnings = true; too. Nothing changed.

I have this:

$wgShowExceptionDetails = true;

$wgShowDBErrorBacktrace = true;

$wgDevelopmentWarnings = true;

error_reporting( -1 );

ini_set( 'display_errors', 1 );

Zeynel1 (talkcontribs)

I ran the update script from the command line and it is working now. Thanks!