Topic on Project:Support desk

PHP Catchable fatal error on new installation : Argument 1 passed to ScopedCallback::__construct() must be an instance of Closure

2
Ttasovac (talkcontribs)

Hi,

I am getting this on a new installation of Mediawiki on Centos 5 with PHP 5.4.20. After a successful install, and upload of LocalSettings, I get the following error when I try to access the site:

PHP Catchable fatal error: Argument 1 passed to ScopedCallback::__construct() must be an instance of Closure, unknown given, called in /var/www/html/mediawiki.prepis.org/includes/cache/MessageCache.php on line 344 and defined in /var/www/html/mediawiki.prepis.org/includes/ScopedCallback.php on line 33

Any tips would be greatly appreciated.

MarkAHershberger (talkcontribs)

Looks like the bit you ran into was backed out after release. I'll see if we can backport the fix. Try this patch. The drupal documentation for applying a patch may help here.

Reply to "PHP Catchable fatal error on new installation : Argument 1 passed to ScopedCallback::__construct() must be an instance of Closure"