Difference between revisions of "CentOS 7.x Mediawiki Debug internal error"

From Notes_Wiki
(Created page with "<yambe:breadcrumb self="Debug internal error">CentOS 7.x Mediawiki|Mediawiki</yambe:breadcrumb> =CentOS 7.x Mediawiki Debug internal error= If mediawiki is crashing with Inte...")
 
m
 
Line 1: Line 1:
<yambe:breadcrumb self="Debug internal error">CentOS 7.x Mediawiki|Mediawiki</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Mediawiki|Mediawiki]] > [[CentOS 7.x Mediawiki Debug internal error]]
=CentOS 7.x Mediawiki Debug internal error=


If mediawiki is crashing with Internal error, often due to issue with an extension, then add following to LocalSettings.php file:
If mediawiki is crashing with Internal error, often due to issue with an extension, then add following to LocalSettings.php file:
Line 10: Line 9:


For example if [[Configuring yambe breadcrumbs extension for mediawiki]] is used and instead of self="Title" we accidentally type self"Title" without equal to "=", leading to malformed XML, the yambe extension crashes the mediawiki.  To figure out that this is due to certain input we can print various values near the function which has crashed and recognize that we missed typing equal to(=) sign.
For example if [[Configuring yambe breadcrumbs extension for mediawiki]] is used and instead of self="Title" we accidentally type self"Title" without equal to "=", leading to malformed XML, the yambe extension crashes the mediawiki.  To figure out that this is due to certain input we can print various values near the function which has crashed and recognize that we missed typing equal to(=) sign.
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Mediawiki|Mediawiki]] > [[CentOS 7.x Mediawiki Debug internal error]]

Latest revision as of 09:18, 25 August 2022

Home > CentOS > CentOS 7.x > Web Based Tools > Mediawiki > CentOS 7.x Mediawiki Debug internal error

If mediawiki is crashing with Internal error, often due to issue with an extension, then add following to LocalSettings.php file:

$wgShowExceptionDetails = true;

After this perform the action again to get stack trace. Once you know where the issue is, you can debug by adding echo / die statements in php code to get more details. Often there is issue with the input to extension which extension does not expects or is unable to parse and hence crashes. If we print various variable values related to function where crash is happening, we can determine which input is leading to such crashes.

For example if Configuring yambe breadcrumbs extension for mediawiki is used and instead of self="Title" we accidentally type self"Title" without equal to "=", leading to malformed XML, the yambe extension crashes the mediawiki. To figure out that this is due to certain input we can print various values near the function which has crashed and recognize that we missed typing equal to(=) sign.



Home > CentOS > CentOS 7.x > Web Based Tools > Mediawiki > CentOS 7.x Mediawiki Debug internal error