Topic on Project:Support desk

[RESOLVED] Fatal error: Interface 'Psr\Log\LoggerInterface' not found

3
Benfell (talkcontribs)

Hello,

Update to the latest version of mediawiki failed when running update script and when displaying pages: Fatal error: Interface 'Psr\Log\LoggerInterface' not found in /var/www/parts-unknown/org/mediawiki/core/includes/debug/logger/Logger.php on line 46

This would be version 1.23.6, although I can't verify it with the Special:Version page, because I get the error above.

home% php --version
PHP 5.5.18 (cli) (built: Oct 28 2014 20:09:10) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies
home% mysql --version
mysql  Ver 15.1 Distrib 5.5.39-MariaDB, for FreeBSD10.1 (amd64) using readline 6.3
home%
Florianschmidtwelzow (talkcontribs)

Hello,

this seems to be NOT 1.23.6, \Psr\Log\LoggerInterface prerequirement was merged yesterday into master branch of MediaWiki core (currently 1.25alpha), so you maybe downloaded MediaWiki from git?

To fix this, you need to install the vendor directory for mediawiki. For this you can just run composer install if you have shell access and composer installed, or you clone the vendor git repository into your mediawiki root directory:

git clone https://gerrit.wikimedia.org/r/p/mediawiki/vendor.git

Benfell (talkcontribs)

Seems like magic, and I have no idea what it actually did, but it worked. My wikis are apparently back on line. Thanks!

Reply to "[RESOLVED] Fatal error: Interface 'Psr\Log\LoggerInterface' not found"