Topic on Project:Support desk

Jump to navigation Jump to search

Math extension cause a fatal exception of type "Wikimedia\Rdbms\DBQueryError"

Gdwikimeca (talkcontribs)


I have install the math extension but when i try to add a <math> balise in a page, i have this screen :


MediaWiki internal error.

Original exception: [W-I969TjGCIAAAU3aBUAAAAe] 2018-11-19 04:37:00: 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.


When i try to add $wgShowExceptionDetails = true and $wgShowDBErrorBacktrace = true; at the bottom of LocalSettings.php, i have a blank page at the same place.

What ca i do ?

URL of my wiki :

Here is my installation specifications :

2 Logiciels installés

Produit Version
MediaWiki 1.31.1
PHP 7.2.11 (cgi-fcgi)
MySQL 5.5.60-0+deb7u1-log
ICU 52.1

3 URL des points d'entrée

Point d'entrée URL
Chemin d’article /wikimeca_1_31/index.php?title=$1
Chemin de script /wikimeca_1_31
index.php /wikimeca_1_31/index.php
api.php /wikimeca_1_31/api.php
load.php /wikimeca_1_31/load.php

Habillages installés

Habillage Version Licence Description Auteurs
Monobook GPL-2.0-or-later L’habillage classique de MediaWiki depuis 2004, nommé d’après la photo en noir et blanc d’un livre dans l’arrière-plan de la page Gabriel Wicke et autres
Timeless 0.8.1 GPL-2.0-or-later Un habillage intemporel conçu d’après le prototype Winter par Brandon Harris, et divers styles de la Fondation Wikimédia Isarra Yos
Vector GPL-2.0-or-later Version moderne de MonoBook avec un aspect rajeuni et beaucoup d’améliorations ergonomiques Trevor Parscal, Roan Kattouw et autres

Extensions installées

Greffons de l'analyseur syntaxique
Extension Version Licence Description Auteurs
Math 3.0.0 (a1263db)17 avril 2018 à 00:54 GPL-2.0-or-later Restitue les formules mathématiques entre les balises <math> ... </math> Tomasz Wegrzanowski, Brion Vibber, Moritz Schubotz et Derk-Jan Hartman
星耀晨曦 (talkcontribs)


$wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true;

You missing ; at the line end.

Gdwikimeca (talkcontribs)

Thanks but i don't think so. Here is the end of my localsettings.php file :

# Add more configuration options below.

$wgShowExceptionDetails = true;

$wgShowDBErrorBacktrace = true;

$wgShowSQLErrors = true;

And i style have a blank page...

星耀晨曦 (talkcontribs)

May also add

error_reporting( -1 );
ini_set( 'display_errors', 1 );
Ciencia Al Poder (talkcontribs)

If you see a blank page, adding the above won't work. You introduced a syntax error somehow when you edited the LocalSettings.php file. Try commenting-out all modified lines to find what's the problem, or look at the webserver error logs.

Gdwikimeca (talkcontribs)

Thanks for this posts.

My LocalSettings.php file is almost the original one generated during installation. I just add the lines below.

I try to creat a errorlog file by adding :

$wgDebugLogFile = "$wgScriptPath/errorlog.txt";

but the file is empty.

I add the lines :

error_reporting( -1 );
ini_set( 'display_errors', 1 );

too, but nothing new.

Ciencia Al Poder (talkcontribs)

A blank page generally means PHP crashes before it can execute a line of code. It can't write a log file.

星耀晨曦 (talkcontribs)

You can check the web server error log.

Deregulates (talkcontribs)

Gdwikimeca: were you able to solve this? I am running into the exact same issue.

Deregulates (talkcontribs)