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

[4.4]: Optimizing image tasks throws error: "fclose(): supplied resource is not a valid stream resource" #12878

Closed
RobinWithouck opened this issue Mar 13, 2023 · 5 comments
Assignees

Comments

@RobinWithouck
Copy link

What happened?

The Optimizing image tasks (from the ImageOptimize plugin) throws an error: "fclose(): supplied resource is not a valid stream resource".
Our file system is of type "Google Cloud Storage".
We think it started after the update to Craft 4.4. We changed the filesystem to local to test and this works.

We allready filled an bug report on the ImageOptimize plugin.

Craft CMS version

4.4.1

PHP version

8.1

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

  • ImageOptimize: 4.0.4
  • Google Cloud Storage: 2.0.0
@tomfischerNL
Copy link

Same issue here. Also with Google Cloud Storage. When updating from 4.3.11 to 4.4.0 or 4.4.1/4.4.2, this occurs.

@i-just
Copy link
Contributor

i-just commented Mar 15, 2023

Thanks both. Just wanted to say that we are aware of this and are working on a solution. I'll update again once I have more info.

@i-just
Copy link
Contributor

i-just commented Mar 16, 2023

Thanks for your patience. A PR to fix this has been submitted.

@brandonkelly
Copy link
Member

4.4.3 is out now with the fix for this!

@RobinWithouck
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants