- Issue created by @kwfinken
- π©πͺGermany mkalkbrenner π©πͺ
This change is correct. Try to clear your caches.
- πΊπΈUnited States kwfinken Lansing, MI
It is when I clear caches (drush cr) that I get the error.
- π©πͺGermany mkalkbrenner π©πͺ
I don't know how you performed your update.
I just updated another installation and drush cr worked fine. The command helpers are services. It seems that you have overwritten the module's service definition.
- Status changed to Fixed
over 1 year ago 8:13am 5 July 2023 - π©πͺGermany mkalkbrenner π©πͺ
I can't reproduce the issue in any production environment I maintain. Maybe you use some custom code or third party module that needs to apply these constructor changes.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 12:35pm 10 August 2023 - π©π°Denmark ressa Copenhagen
It looks like it's a permission issue. I also got this error after updating. Everything worked fine in DDEV after the update, but after pushing the update to the server, I got the error after running
drush updatedb
,drush uli
anddrush cache:rebuild
.I also saw an odd error about assets:
$ drush updatedb [success] No pending updates. [warning] unlink(/var/www/html/website/public_html/web/sites/default/files/css/css_Dd8YCdHfaQEgt3dWdSVw94rP7EmTUdfBCOWw7Z_fzr8.css): Permission denied FileSystem.php:124 [error] Failed to unlink file 'assets://css/css_Dd8YCdHfaQEgt3dWdSVw94rP7EmTUdfBCOWw7Z_fzr8.css'. In FileSystem.php line 326: Failed to unlink file 'assets://css/css_Dd8YCdHfaQEgt3dWdSVw94rP7EmTUdfBCOWw7Z_fzr8.css'.
It looks like Drupal updated the permissions for
css
andjs
folders after the update, from the originalwebuser:www-data
towww-data:www-data
:$ ls /public_html/web/sites/default/files/ [...] drwxrwxr-x 2 www-data www-data 4,0K Aug 10 13:34 css drwxrwxr-x 2 www-data www-data 4,0K Aug 10 14:13 js drwxrwx--- 3 webuser www-data 4,0K Aug 10 12:46 php
I restored the permissions β , and all Drush commands now work again, without errors:
$ cd /public_html/web $ chown -R webuser:www-data .