Topic on Project:Support desk

Waanders (talkcontribs)

One of our templates seems corrupted. We can't edit the page, even not show (yes, it exists) and so on. All this results in a time-out. Now we try to import a back-up version but also Special:Import gives a time-out.

How do I fix this?

Malyacko (talkcontribs)

If your webserver software (not MediaWiki) shows a timeout, please check the logs of your webserver software for more information about the reasons. Also see How to debug.

Waanders (talkcontribs)

I think it's a MediaWiki problem.

I'v added this to LocalSettings.php:

error_reporting( -1 );

ini_set( 'display_errors', 1 );

$wgShowExceptionDetails = true;

$wgShowSQLErrors = true;

$wgShowDBErrorBacktrace = true;

$wgDebugComments = true;

$wgLogQueries = true;

$wgDebugDumpSql = true;

$wgDevelopmentWarnings  = true;

$wgDebugProfiling = true;

$wgDebugTimestamps = true;

$wgResourceLoaderDebug  = true;

Now MW gives this error: "Fatal error: Maximum execution time of 30 seconds exceeded in /home/hz01/mediawiki/core/includes/debug/MWDebug.php on line 369".

Malyacko (talkcontribs)

You could set the maximum execution time to a ridiculously high value to check if it ever finishes, or never. Which MediaWiki version is this about?

Waanders (talkcontribs)

1.27.1

Waanders (talkcontribs)

Thanks! But how do I change maximum execution time?

星耀晨曦 (talkcontribs)

Set max_execution_time in php.ini.

Waanders (talkcontribs)