Reviewed & tested by the community
Project:
ImageAPI Optimize WebP
Version:
2.1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Feb 2025 at 04:19 UTC
Updated:
24 Jun 2026 at 15:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gillesv commentedExperiencing the same issue. I'm guessing it's related to the deprecation of the "getResource" function?
https://www.drupal.org/node/3265963
Comment #3
gillesv commentedI changed "getResource" to "getImage" in WebP.php, and that seems to do the trick. Patch attached for v3.x.
Comment #4
lazysoundsystem commentedConfirming that v2.1.0 does not work with Drupal 11 due to this issue (see also https://api.drupal.org/api/drupal/core%21modules%21system%21src%21Plugin...)
v3.0.0-alpha2 does work with Drupal 11 but is still in alpha - would be nice to make a new release for v2.1 with this change (so that it really is compatible with D11) or make a stable v3 release. Or both!
Comment #7
phjouIt looks like a duplicate of #3448709: Automated Drupal 11 compatibility fixes for imageapi_optimize_webp
Comment #8
emixaam commentedPatch from #3 work well with Drupal 11.3. Tested on multiple environments.
Comment #9
jlj commentedSame issue, patch #3 work for me too. Thx.
Comment #10
michaellander commentedI've pushed up a beta for 3.x. I'd like to get people moved over to that but am more than willing to update 2.1 in the meantime. Can we get the patch moved into a fork/branch with an MR?