- Issue created by @FrankieD3
- πΊπΈUnited States FrankieD3
Yes, I've cleared cache multiple times, both through Drush and the web UI. To note, this has happened on all three installs on this box using Twig Tweak.
- π·πΊRussia Chi
You might need to clear opcache or restart your server.
- πΊπΈUnited States FrankieD3
I am unable to restart the server as it's a production environment, though I could potentially clear the opcache.
Would you per chance know how to go about doing this in a WHM environment utilizing EasyApache?
- π·πΊRussia Chi
I don't know. By some reason your services container is not rebuilding. You need to figure it out.
- Status changed to Fixed
10 months ago 1:37pm 27 February 2024 - πΊπΈUnited States FrankieD3
It seems to have taken a full module reinstallation to clear this up. No amount of cache invalidation seemed to allow for Drupal to recognize the new
@image.factory
argument for thetwig_tweak.image_view_builder
service.I have run into this issue in the past with my own module development, and I've yet to find a solution that doesn't take a reinstallation. Adding new keys to existing services in the YAML shouldn't introduce issues like this, yet I've run into this again and time again.
I'll go ahead and mark this as fixed, although I'm curious to see if any others run into this. Thanks for your time.
Automatically closed - issue fixed for 2 weeks with no activity.