Hello,
I've recently decided to update the system which had a MediaWiki running on it, and after the update I cannot figure out what could recover the wiki in a working state.
I have MediaWiki version 1.16.0.0 running on Ubuntu 16.04 with PHP7.0.
Opening a wiki web page leads to a blank page. After enabling the error messages' display I see there:
'''Fatal error''': Uncaught TypeError: Argument 1 passed to wfReportException() must be an instance of Exception, instance of Error given, called in /raid/var/www/wiki/includes/Exception.php on line 348 and defined in /raid/var/www/wiki/includes/Exception.php:285 Stack trace: #0 /raid/var/www/wiki/includes/Exception.php(348): wfReportException(Object(Error)) #1 [internal function]: wfExceptionHandler(Object(Error)) #2 {main} thrown in '''/raid/var/www/wiki/includes/Exception.php''' on line '''285'''
Additionally, I tried to run the
update.php
and
rebuildall.php
scripts, which both ended up in this error:
DB connection error: MySQL functions missing, have you compiled PHP with the --with-mysql option?
However, I did verify that MySQL extension is installed and enabled in PHP7.0 (a few other modules connect to MySQL through PHP just fine).
My supposition is that the MediaWiki version might be way too old for the PHP7.0.
I cannot figure out where the error in
Exception.cpp
leads to and would appreciate any help or advice.