Re: "Premature access" deprecation warnings upgrading from 1.35.2 to 1.36.0
Jeffrey Walton <[email protected]>
| Newsgroups | gmane.org.wikimedia.mediawiki |
|---|---|
| Message-ID | <CAH8yC8=2WKYmMNL5eJL1yyzqexNaxePAjOsm7CtqvPPuZVzbTA@mail.gmail.com> |
On Sat, May 29, 2021 at 10:10 AM Jeffrey T. Darlington <[email protected]> wrote: > > Just an FYI for any devs on the list: > > I just upgraded my 1.35.2 MW to 1.36.0 via a tarball release and received several "premature access" deprecation warnings from PHP in the process. No fatal errors were thrown, so the upgrade completed successfully. Still, this might be something to look into. > > OS Fedora 34 > Apache 2.4.46 > PHP 7.4.19 (fpm-fcgi) > MariaDB 10.5.10 > > The following warnings we thrown at the start of running "php update.php": > > PHP Deprecated: Premature access to service container [Called from Maintenance::finalSetup in /var/www/gpf/mediawiki-1.36.0/maintenance/includes/Maintenance.php at line 1221] in /var/www/gpf/mediawiki-1.36.0/includes/debug/MWDebug.php on line 376 > PHP Deprecated: Premature access to service 'HookContainer' [Called from MediaWiki\MediaWikiServices::getInstance in /var/www/gpf/mediawiki-1.36.0/includes/MediaWikiServices.php at line 252] in /var/www/gpf/mediawiki-1.36.0/includes/debug/MWDebug.php on line 376 > PHP Deprecated: Premature access to service 'ObjectFactory' [Called from Wikimedia\Services\ServiceContainer::{closure} in /var/www/gpf/mediawiki-1.36.0/includes/ServiceWiring.php at line 535] in /var/www/gpf/mediawiki-1.36.0/includes/debug/MWDebug.php on line 376 We are experiencing the issue, too. It is present when we run maintenance/ rebuildFileCache.php and maintenance/rebuildtextindex.php. Our platform is Ubuntu 20.04.2 LTS, x86_64, fully patched. PHP version is 7.4.3. All dependencies are up to date via Composer. Jeff _______________________________________________ MediaWiki-l mailing list -- [email protected] List information: https://lists.wikimedia.org/postorius/lists/mediawiki-l.lists.wikimedia.org/