After a migration to Mediawiki 1.36.4, running maintenance scripts produces a lot of noise. For example:
Running rebuildFileCache.php PHP Deprecated: Premature access to service container [Called from RebuildFileCache::finalSetup in /var/www/html/w/maintenance/rebuildFileCache.php at line 53] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service container [Called from RebuildFileCache::finalSetup in /var/www/html/w/maintenance/rebuildFileCache.php at line 53] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /var/www/html/w/includes/MediaWikiServices.php at line 252] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /var/www/html/w/includes/MediaWikiServices.php at line 252] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 535] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 535] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'ReadOnlyMode' [Called from RebuildFileCache::finalSetup in /var/www/html/w/maintenance/rebuildFileCache.php at line 53] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'ReadOnlyMode' [Called from RebuildFileCache::finalSetup in /var/www/html/w/maintenance/rebuildFileCache.php at line 53] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'ConfiguredReadOnlyMode' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 1121] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'ConfiguredReadOnlyMode' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 1121] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'MainConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 291] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'MainConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 291] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'ConfigFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 734] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'ConfigFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 734] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 277] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 277] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'DBLoadBalancer' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 1122] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'DBLoadBalancer' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 1122] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'DBLoadBalancerFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 383] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'DBLoadBalancerFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 383] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'StatsdDataFactory' [Called from ObjectCache::newFromParams in /var/www/html/w/includes/objectcache/ObjectCache.php at line 149] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'StatsdDataFactory' [Called from ObjectCache::newFromParams in /var/www/html/w/includes/objectcache/ObjectCache.php at line 149] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'LocalServerObjectCache' [Called from ObjectCache::getLocalServerInstance in /var/www/html/w/includes/objectcache/ObjectCache.php at line 255] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'LocalServerObjectCache' [Called from ObjectCache::getLocalServerInstance in /var/www/html/w/includes/objectcache/ObjectCache.php at line 255] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'MainWANObjectCache' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 406] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'MainWANObjectCache' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 406] in /var/www/html/w/includes/debug/MWDebug.php on line 376 Nothing to do -- $wgUseFileCache is disabled.
FWIW, you can add ~E_USER_DEPRECATED to error_reporting in /etc/php/$version/cli/php.ini to silence the noise.
Justin
-----Original Message----- From: Jeffrey Walton noloader@gmail.com Sent: Monday, April 4, 2022 9:30 AM To: MediaWiki announcements and site admin list mediawiki-l@lists.wikimedia.org Subject: [MediaWiki-l] Lots of PHP Deprecated in Mediawiki 1.36.4
After a migration to Mediawiki 1.36.4, running maintenance scripts produces a lot of noise. For example:
Running rebuildFileCache.php PHP Deprecated: Premature access to service container [Called from RebuildFileCache::finalSetup in /var/www/html/w/maintenance/rebuildFileCache.php at line 53] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service container [Called from RebuildFileCache::finalSetup in /var/www/html/w/maintenance/rebuildFileCache.php at line 53] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /var/www/html/w/includes/MediaWikiServices.php at line 252] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /var/www/html/w/includes/MediaWikiServices.php at line 252] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 535] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 535] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'ReadOnlyMode' [Called from RebuildFileCache::finalSetup in /var/www/html/w/maintenance/rebuildFileCache.php at line 53] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'ReadOnlyMode' [Called from RebuildFileCache::finalSetup in /var/www/html/w/maintenance/rebuildFileCache.php at line 53] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'ConfiguredReadOnlyMode' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 1121] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'ConfiguredReadOnlyMode' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 1121] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'MainConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 291] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'MainConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 291] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'ConfigFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 734] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'ConfigFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 734] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 277] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'BootstrapConfig' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 277] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'DBLoadBalancer' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 1122] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'DBLoadBalancer' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 1122] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'DBLoadBalancerFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 383] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'DBLoadBalancerFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 383] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'StatsdDataFactory' [Called from ObjectCache::newFromParams in /var/www/html/w/includes/objectcache/ObjectCache.php at line 149] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'StatsdDataFactory' [Called from ObjectCache::newFromParams in /var/www/html/w/includes/objectcache/ObjectCache.php at line 149] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'LocalServerObjectCache' [Called from ObjectCache::getLocalServerInstance in /var/www/html/w/includes/objectcache/ObjectCache.php at line 255] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'LocalServerObjectCache' [Called from ObjectCache::getLocalServerInstance in /var/www/html/w/includes/objectcache/ObjectCache.php at line 255] in /var/www/html/w/includes/debug/MWDebug.php on line 376 PHP Deprecated: Premature access to service 'MainWANObjectCache' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 406] in /var/www/html/w/includes/debug/MWDebug.php on line 376
Deprecated: Premature access to service 'MainWANObjectCache' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/html/w/includes/ServiceWiring.php at line 406] in /var/www/html/w/includes/debug/MWDebug.php on line 376 Nothing to do -- $wgUseFileCache is disabled. _______________________________________________ MediaWiki-l mailing list -- mediawiki-l@lists.wikimedia.org To unsubscribe send an email to mediawiki-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/
mediawiki-l@lists.wikimedia.org