Closed VetSoftKeith closed 1 year ago
@VetSoftKeith Thanks for bringing this to my attention. I looked into it and cannot promise a quick fix. Will know more in a few days.
Seeing the same issue with MW 1.81.1 and PHP 8.1.2 and wondered if there is any solution for this. On my little wiki it accounts for a 12 GB php-fpm log every few days.
Also refs: https://phabricator.wikimedia.org/T273261
Seeing the same issue with MW 1.81.1 and PHP 8.1.2 and wondered if there is any solution for this. On my little wiki it accounts for a 12 GB php-fpm log every few days.
On a short term, to avoid filling logs with repetitive not-really-usefull messages, you can comment in includes/MediaWikiServices.php
the two calls to wfDeprecatedMsg( 'Premature access to service container', … );
.
Hello Seb35, thank you - I have achieved the same by using the following in my LocalSettings.php, which doesn't require changes on Updates:
Setup and configuration
Issue
Logs are spammed with page specific version of the below error message. Relevant Phabricator discussion here.
NOTE: The deprecation messages below were originally a single line. I added line breaks to improve readability.
Was previously fixed for MW 1.35 in #23.
Steps to reproduce the observation (recommendation is to use the sandbox):