Page MenuHomePhabricator

rebuildFileCache.php and rebuildtextindex.php and deprecated warnings for Mediawiki 1.36.1
Open, Needs TriagePublic

Description

Hi Everyone.

We run Mediawiki 1.36.1 at https://www.cryptopp.com/wiki. We are proactive and often run maintenance scripts. We noticed when running rebuildFileCache.php and rebuildtextindex.php produces some noise due to deprecated warnings.

It is not a big deal to us since it is a maintenance script run each week. But it may be worth reporting so it does not fall off the radar.

rebuildtextindex.php:

Running rebuildtextindex.php
PHP Deprecated:  Premature access to service container [Called from Maintenance::finalSetup in /var/www/html/w/maintenance/includes/Maintenance.php at line 1221] in /var/www/html/w/includes/debug/MWDebug.php on line 376

Deprecated: Premature access to service container [Called from Maintenance::finalSetup in /var/www/html/w/maintenance/includes/Maintenance.php at line 1221] 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

rebuildFileCache.php:

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.