On multiple locations, ResourceLoader.php has a call for $e->logException() where $e is of type Exception.
The logException() function is *NOT* a method for Exception class. It is a method for MWException class. Whenever an exception happens, the user will get the following error message:
Call to undefined method Exception::logException() in /var/www/wiki/includes/resourceloader/ResourceLoader.php on line 835
All these references have to be fixed.