Compare commits

..

1 commit

Author SHA1 Message Date
505af64019 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.
2021-09-25 04:17:02 +02:00
2 changed files with 4 additions and 1 deletions

View file

@ -1,7 +1,6 @@
{ {
"require": { "require": {
"mediawiki/semantic-bundle": "~5.0", "mediawiki/semantic-bundle": "~5.0",
"mediawiki/semantic-mediawiki": "3.x-dev",
"mediawiki/semantic-scribunto": "~2.1", "mediawiki/semantic-scribunto": "~2.1",
"wikimedia/css-sanitizer": "3.0.2" "wikimedia/css-sanitizer": "3.0.2"

View file

@ -156,11 +156,15 @@ enableSemantics( getenv("SEMANTIC_URL") );
# Set Subpages on # Set Subpages on
$wgNamespacesWithSubpages[NS_MAIN] = 1; $wgNamespacesWithSubpages[NS_MAIN] = 1;
ini_set('display_errors', '0');
ini_set('display_startup_errors', '0');
# Enable long error messages # Enable long error messages
if (getenv("DEBUG")) { if (getenv("DEBUG")) {
$wgShowExceptionDetails = true; $wgShowExceptionDetails = true;
$wgShowDBErrorBacktrace = true; $wgShowDBErrorBacktrace = true;
$wgShowSQLErrors = true; $wgShowSQLErrors = true;
ini_set("display_errors", 1);
ini_set('display_startup_errors', '1');
} }
# Local configuration for MediaWiki # Local configuration for MediaWiki