Topic on Extension talk:CSS

Spas.Z.Spasov (talkcontribs)

Hello, I'm just trying to upgrade a MW instance from rel 1.40 to rel 1.42 and facing a problem wit Extension:CSS. When I switch the version of the extension to 1.42 the wiki immediately stops working. The maintenance/update script throws the following error to the console:

PHP Fatal error:  Uncaught Wikimedia\Services\RecursiveServiceDependencyException: Recursive service instantiation: Circular dependency when creating service! HookContainer -> BootstrapConfig -> DBLoadBalancerFactory -> MainConfig -> ConfigFactory -> BootstrapConfig in /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php:435
Stack trace:
#0 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService()
#1 /var/www/mediawiki/includes/MediaWikiServices.php(356): Wikimedia\Services\ServiceContainer->getService()
#2 /var/www/mediawiki/includes/MediaWikiServices.php(851): MediaWiki\MediaWikiServices->getService()
#3 /var/www/mediawiki/includes/ServiceWiring.php(567): MediaWiki\MediaWikiServices->getBootstrapConfig()
#4 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}()
#5 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService()
#6 /var/www/mediawiki/includes/MediaWikiServices.php(356): Wikimedia\Services\ServiceContainer->getService()
#7 /var/www/mediawiki/includes/MediaWikiServices.php(928): MediaWiki\MediaWikiServices->getService()
#8 /var/www/mediawiki/includes/ServiceWiring.php(1214): MediaWiki\MediaWikiServices->getConfigFactory()
#9 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}()
#10 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService()
#11 /var/www/mediawiki/includes/MediaWikiServices.php(356): Wikimedia\Services\ServiceContainer->getService()
#12 /var/www/mediawiki/includes/MediaWikiServices.php(1387): MediaWiki\MediaWikiServices->getService()
#13 /var/www/mediawiki/includes/ServiceWiring.php(712): MediaWiki\MediaWikiServices->getMainConfig()
#14 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(447): Wikimedia\Services\ServiceContainer::{closure}()
#15 /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php(411): Wikimedia\Services\ServiceContainer->createService()
#16 /var/www/mediawiki/includes/MediaWikiServices.php(356): Wikimedia\Services\ServiceContainer->getService()
#17 /var/www/mediawiki/includes/MediaWikiServices.php(1066): MediaWiki\MediaWikiServices->getService()
#18 /var/www/mediawiki/includes/exception/MWExceptionHandler.php(167): MediaWiki\MediaWikiServices->getDBLoadBalancerFactory()
#19 /var/www/mediawiki/includes/exception/MWExceptionHandler.php(193): MWExceptionHandler::rollbackPrimaryChanges()
#20 /var/www/mediawiki/includes/exception/MWExceptionHandler.php(236): MWExceptionHandler::rollbackPrimaryChangesAndLog()
#21 /var/www/mediawiki/includes/exception/MWExceptionHandler.php(205): MWExceptionHandler::handleException()
#22 [internal function]: MWExceptionHandler::handleUncaughtException()
#23 {main}
  thrown in /var/www/mediawiki/vendor/wikimedia/services/src/ServiceContainer.php on line 435

I've downgraded the version of the extension to 1.41, and it works as it is expected with MW 1.42.

Reply to "Rel 1.42 doesn't work"