Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Failed to open Stream #10

Closed
tuami opened this issue Dec 11, 2018 · 5 comments
Closed

Failed to open Stream #10

tuami opened this issue Dec 11, 2018 · 5 comments

Comments

@tuami
Copy link

tuami commented Dec 11, 2018

Hi we get this error after thumbnail generation via ssh. How can we solve that? Thank you in advance!

xxx:/home/www/xxx/html/shopware534/__test > php bin/console shyim:webp:download-google-binaries
xxx:/home/www/xxx/html/shopware534/__test > php bin/console sw:thumbnail:generate -f
Generating Thumbnails for Album Blog (ID: -11)
0/19 [>---------------------------] 0%
Notice: Array to string conversion in /html/shopware534/__test/vendor/symfony/process/Process.php on line 281

Warning: file_get_contents(/tmp/cwebpOwqGQo-dst): failed to open stream: No such file or directory in /html/shopware534/__test/custom/plugins/ShyimWebP/Services/WebpEncoders/GoogleBinary.php on lin
e 44

@shyim
Copy link
Member

shyim commented Dec 12, 2018

Could you share some informations about your Setup?
Are you using a CDN or external storage like S3, Azure ?

@tuami
Copy link
Author

tuami commented Dec 13, 2018

No we´re not with a cdn provider. If we disable ShyimWebP thumbnail generation works normal.

@shyim
Copy link
Member

shyim commented Dec 14, 2018

I guess there is a execution error. Can you add here a debug
https://github.com/shyim/ShyimWebP/blob/master/Services/WebpEncoders/GoogleBinary.php#L43
with ->getOutput() to

@tuami
Copy link
Author

tuami commented Dec 14, 2018

The thumbnail generation in the console works (output), but eventually it breaks off. In the frontend the Webp images are not displayed, (Chrome of course)


Generating Thumbnails for Album 13 (ID: 258)
0/4 [>---------------------------] 0%
1/4 [=======>--------------------] 25%
2/4 [==============>-------------] 50%
3/4 [=====================>------] 75%
4/4 [============================] 100%
Generating Thumbnails for Album 14 (ID: 259)
0/4 [>---------------------------] 0%
1/4 [=======>--------------------] 25%
2/4 [==============>-------------] 50%
3/4 [=====================>------] 75%
4/4 [============================] 100%
Generating Thumbnails for Album 16 (ID: 261)
0/4 [>---------------------------] 0%
1/4 [=======>--------------------] 25%
2/4 [==============>-------------] 50%
3/4 [=====================>------] 75%
4/4 [============================] 100%
Generating Thumbnails for Album 17 (ID: 262)
0/4 [>---------------------------] 0%
1/4 [=======>--------------------] 25%
2/4 [==============>-------------] 50%
3/4 [=====================>------] 75%
4/4 [============================] 100%
Generating Thumbnails for Album static (ID: 263)
0/4 [>---------------------------] 0%
1/4 [=======>--------------------] 25%
2/4 [==============>-------------] 50%
3/4 [=====================>------] 75%
4/4 [============================] 100%
Thumbnail generation finished with errors
Process must be started before calling getOutput.


libwebp is active on our server (Mittwald Hoster)

@shyim
Copy link
Member

shyim commented Jan 6, 2019

Hey @tuami,
sorry for the late response. What happends if you dump getStatus?
Is proc_open allowed in php.ini?

@shyim shyim closed this as completed in 7bb7126 Mar 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants