From 505af64019cdd545d116f67488bbfe13c424bf61 Mon Sep 17 00:00:00 2001 From: paul Date: Sat, 25 Sep 2021 03:24:51 +0200 Subject: [PATCH] Disable error output on website rendering semantic-mediawiki is compatible with mediawiki 1.36, but outputs a lot of deprecation warnings. This was fixed in https://github.com/SemanticMediaWiki/SemanticMediaWiki/pull/4195 but no release has been made as of now. This change will be in release 3.2.4 or 4.0.0, at which point these lines can be removed. --- conf/LocalSettings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/LocalSettings.php b/conf/LocalSettings.php index f6a0646..0b0c42d 100644 --- a/conf/LocalSettings.php +++ b/conf/LocalSettings.php @@ -156,11 +156,15 @@ enableSemantics( getenv("SEMANTIC_URL") ); # Set Subpages on $wgNamespacesWithSubpages[NS_MAIN] = 1; +ini_set('display_errors', '0'); +ini_set('display_startup_errors', '0'); # Enable long error messages if (getenv("DEBUG")) { $wgShowExceptionDetails = true; $wgShowDBErrorBacktrace = true; $wgShowSQLErrors = true; + ini_set("display_errors", 1); + ini_set('display_startup_errors', '1'); } # Local configuration for MediaWiki