Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cache remote images" option when updating asset indexes causes errors. #376

Open
turnstylerj opened this issue Apr 10, 2023 · 0 comments
Open
Labels

Comments

@turnstylerj
Copy link

Describe the bug

I'm not entirely sure this is an ImageOptimize bug/maybe just potential for ImageOptimize to throw a more helpful error message.

I had a couple of large asset volumes (2k-ish images with 5 ImageOptimize variants in their Optimized Images field) using Servd asset storage that weren't able to complete the larger "Optimizing images in x" queue task after updating volume settings. After some debugging, we noticed if we tried to update asset indexes for those volumes, we were getting browser alerts saying "undefined" with 500 errors logging in the browser console from process-indexing-session. ImageOptimize was logging "Resize operation failed."

Servd support suggested I disable the "Cache images remotely" option when reindexing on the hunch it was redundant with ImageOptimize, because it pulls the images separately, and after doing that, the reindex operation completed successfully and all ImageOptimize queue tasks are working.

Seems likely this is a combo of how Servd's Assets and Helpers plugin/asset storage works, but wanted to file an issue for your investigation/thoughts.

To reproduce

Steps to reproduce the behaviour:

  1. Configure an asset volume to use Servd Asset Storage
  2. Reindex assets

Expected behaviour

Assets reindex successfully and queue up relevant ImageOptimize tasks.

Versions

  • Plugin version: 4.0.4
  • Craft version: 4.4.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant