# WebP Plugin von Friends of Shopware kommt Fehler

**URL:** https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067
**Category:** Plugins
**Created:** [23. April 2022 um 23:39 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067 "2022-04-23T23:39:04Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Topsat24](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Topsat24](https://forum.shopware.com/u/Topsat24)
#### Post date: [23. April 2022 um 23:39 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/1 "2022-04-23T23:39:04Z")

</div>

Hallo,  
ich habe das Webp Plugin Friends of Shopware installiert.  
wenn ich  
Alle Thumbnails neu generieren (./bin/console sw:thumbnail:generate -f)  
eingebe  
kommt dieses Fehlermeldung

root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs# ./bin/console sw:thumbnail:generate -f  
Generating Thumbnails for Album Blog (ID: -11)  
0 [\>---------------------------]  
Generating Thumbnails for Album Einkaufswelten (ID: -3)  
0/1 [\>---------------------------] 0%PHP Fatal error: Uncaught Error: Call to undefined function FroshWebP\Components\Thumbnail\Generator\imagecreatefromstring() in /var/www/vhosts/topsat24.de/httpdocs/custom/plugins/FroshWebP/Components/Thumbnail/Generator/WebPGenerator.php:141  
Stack trace:  
#0 /var/www/vhosts/topsat24.de/httpdocs/custom/plugins/FroshWebP/Components/Thumbnail/Generator/WebPGenerator.php(69): FroshWebP\Components\Thumbnail\Generator\WebPGenerator-\>createImageResource()  
#1 /var/www/vhosts/topsat24.de/httpdocs/engine/Shopware/Components/Thumbnail/Manager.php(146): FroshWebP\Components\Thumbnail\Generator\WebPGenerator-\>createThumbnail()  
#2 /var/www/vhosts/topsat24.de/httpdocs/engine/Shopware/Commands/ThumbnailGenerateCommand.php(240): Shopware\Components\Thumbnail\Manager-\>createMediaThumbnail()  
#3 /var/www/vhosts/topsat24.de/httpdocs/engine/Shopware/Commands/ThumbnailGenerateCommand.php(209): Shopware\Commands\ThumbnailGenerateCommand-\>createMediaThumbnails()  
#4 /var/www/vhosts/topsat24.de/httpdocs/engine/Shopware/Commands/ThumbnailGenerateCommand in /var/www/vhosts/topsat24.de/httpdocs/custom/plugins/FroshWebP/Components/Thumbnail/Generator/WebPGenerator.php on line 141  
root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs#

Kann mir bitte jemand helfen?  
Danke und MfG

---

<div class="post-metadata">

### Author: ![Topsat24](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Topsat24](https://forum.shopware.com/u/Topsat24)
#### Post date: [24. April 2022 um 00:08 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/2 "2022-04-24T00:08:46Z")

</div>

Hallo;  
es hat geklappt!

root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs# ./bin/console sw:thum bnail:generate -f  
Generating Thumbnails for Album Blog (ID: -11)  
0 [\>---------------------------]  
Generating Thumbnails for Album Einkaufswelten (ID: -3)  
1/1 [============================] 100%  
Generating Thumbnails for Album Banner (ID: -2)  
0 [\>---------------------------]  
Generating Thumbnails for Album Artikel (ID: -1)  
196/196 [============================] 100%  
Thumbnail generation finished successfully

Aber wenn ich

danach

./bin/console frosh:webp:generate

eingebe passiert nix

root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs# ./bin/console frosh:webp:generate  
STACK: 276  
OFFSET: 0  
0 [-\>--------------------------]root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs#  
root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs#

was fehlt?  
Gruss

---

<div class="post-metadata">

### Author: ![phil](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/phil/32/13661_2.png) [@phil](https://forum.shopware.com/u/phil)
#### Post date: [24. April 2022 um 16:29 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/3 "2022-04-24T16:29:56Z")

</div>

Meldet frosh:webp:status „WebP is available“? Bzw. werden im Backend unter Systeminfo \> WebP-Support mindestens ein Encoder als verfügbar gemeldet?

Dann im Backend noch unter Grundeinstellungen \> Weitere Einstellungen \> WebP Unterstützung die Anzeige von WebP im Frontend aktivieren.

Das frosh:webp:generate Kommando ist ein wenig spartanisch mit Ausgaben, evtl. waren bereits schon alle Images erzeugt worden. Du kannst es mit -f aufrufen, um die Erzeugung nochmals zu erzwingen.

Die Doku ist ebenfalls ein wenig spartanisch, aber nach meinem Verständnis werden die WebP-Thumbnails erzeugt, wenn SW Thumbnails generiert. Und für die Originalbilder ruft man einmalig frosh:webp:generate auf. Bilder, die man danach über den Medienmanager hochlädt, werden wohl automatisch konvertiert.

Danach noch Cache löschen und Theme neu kompilieren, dann sollten im Frontend bei den Bildern in den (meisten) picture tags auch die WebP mit ausgeliefert werden.

LG Phil

---

<div class="post-metadata">

### Author: ![Topsat24](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Topsat24](https://forum.shopware.com/u/Topsat24)
#### Post date: [24. April 2022 um 23:15 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/4 "2022-04-24T23:15:20Z")

</div>

Hallo Phil,  
danke für deine Antwort!

Bei  
root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs# ./bin/console frosh:webp:status

Kommt

[OK] Webp is available

root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs#

Bei  
Systeminfo \> WebP-Support

google cwebp ist ein rote X  
und PHP GD ein grüne hacken

bei  
frosh:webp:generate -f

kommt das gleiche  
root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs# ./bin/console frosh:webp:generate -f  
STACK: 276  
OFFSET: 0  
0 [-\>--------------------------]root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs#  
root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs#

Dann im Backend noch unter Grundeinstellungen \> Weitere Einstellungen \> WebP Unterstützung die Anzeige von WebP im Frontend aktivieren.

ist schon aktiviert!

was kann ich noch prüfen?  
also wenn ich auf die bilder im schop gehe, sind sie noch als jpeg vorhanden.

Gruss

---

<div class="post-metadata">

### Author: ![Topsat24](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Topsat24](https://forum.shopware.com/u/Topsat24)
#### Post date: [24. April 2022 um 23:20 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/5 "2022-04-24T23:20:19Z")

</div>

hat sich erledigt

die bilder sind doch in webp vorhanden nur bei gross ansicht sind sie jpeg.  
das heisst die bilder werden doch normal ansicht in webp bereit gestellt.  
danke

---

<div class="post-metadata">

### Author: ![phil](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/phil/32/13661_2.png) [@phil](https://forum.shopware.com/u/phil)
#### Post date: [26. April 2022 um 00:41 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/6 "2022-04-26T00:41:16Z")

</div>

Die grossen Bilder sollten eigentlich auch webp sein. Versuch mal, noch zusätzlich die Google Binaries zu installieren (via frosh:webp:download-google-binaries) und danach nochmals frosh:webp:generate -f.

LG Phil

---

<div class="post-metadata">

### Author: ![Topsat24](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Topsat24](https://forum.shopware.com/u/Topsat24)
#### Post date: [26. April 2022 um 13:41 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/7 "2022-04-26T13:41:07Z")

</div>

Hallo Phill,  
wenn ich ausführe:  
root@naughty-noether:/var/www/vhosts/topsat24.de/httpdocs# ./bin/console frosh:webp:download-google-binaries

[OK] Successfully installed cwebp to  
/var/www/vhosts/topsat24.de/httpdocs/var/libwebp/bin/cwebp

aber Bei Shopware Einstellungen/Systeminfo/websupport  
ist bei google cwebp immer noch ein rote X vorhanden.

ich denke da liegt der fehler!  
frosh:webp:generate -f  
ist das gleiche antwort wie  
frosh:webp:generate

Was kann ich machen?  
danke

---

<div class="post-metadata">

### Author: ![phil](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/phil/32/13661_2.png) [@phil](https://forum.shopware.com/u/phil)
#### Post date: [26. April 2022 um 19:43 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/8 "2022-04-26T19:43:05Z")

</div>

Das rote X bedeutet entweder, dass die Encoder-Datei nicht gefunden wurde, oder dass sie nicht ausgeführt werden kann. Vgl. [FroshWebP/GoogleBinary.php at master · FriendsOfShopware/FroshWebP · GitHub](https://github.com/FriendsOfShopware/FroshWebP/blob/master/Services/WebpEncoders/GoogleBinary.php) - Funktion isRunnable

LG Phil

---

<div class="post-metadata">

### Author: ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)
#### Post date: [26. April 2022 um 20:40 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/9 "2022-04-26T20:40:50Z")

</div>

Hallo,

offenbar verwendest Du Plesk. Falls Du einen eigenen vServer/Server hast und kein einfaches Shared Hosting, unter „FTP Zugang“ bei Deinem Hauptbenutzer beim Shell Zugriff von „/bin/bash (chrooted)“ auf „/bin/bash“ und unter „PHP Einstellungen“ bei open\_basedir NONE einstellen.

Viele Grüße

---

<div class="post-metadata">

### Author: ![Topsat24](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@Topsat24](https://forum.shopware.com/u/Topsat24)
#### Post date: [27. April 2022 um 13:28 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/10 "2022-04-27T13:28:47Z")

</div>

Hallo  
phil was muss ich mit dem code machen?

scoopex ich hab die einstellungen geändert, es ist immer noch ein rote x

eine frage noch ich nutze jtl connector.  
ich hab jetzt gemekt mit dem webp plugin funktioniet der abgleich mit wawi nicht.  
kann man was dagegen machen?

danke

---

<div class="post-metadata">

### Author: ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)
#### Post date: [27. April 2022 um 17:37 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/11 "2022-04-27T17:37:50Z")

</div>

Hi,

die cwebp Binary muss unter /usr/bin/cwebp liegen, sonst „sieht“ das Plugin diese evtl. nicht.

Zum JTL Thema siehe

> **[Neu - Vorschlag: WEBP Unterstützung](https://forum.jtl-software.de/threads/vorschlag-webp-unterstuetzung.144262/)**
>
> Hallo auch!
> 
> Ich hätte einen Vorschlag: JTL sollte das freie Google Bildformat WEBP unterstützen!
> 
> Wir schießen unsere Bilder mit einer Spiegelreflexkamera die bereits optimiert, sagen wir, 3,6 MB haben. Dann optimieren wir sie mit IrfanView...

Viele Grüße

---

<div class="post-metadata">

### Author: ![StSchulz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/stschulz/32/18072_2.png) [@StSchulz](https://forum.shopware.com/u/StSchulz)
#### Post date: [29. August 2022 um 19:15 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/12 "2022-08-29T19:15:23Z")

</div>

Hallo, ich habe das Problem, dass auf der Startseite einige Bilder nicht dargestellt werden, wenn die WebP Unterstützung mit diesem PlugIn aktiv ist. Also habe ich, wie beschrieben über die Konsole die Thumbnails generiert, lief soweit auch glatt, bis die Startseite dran war. Da kam ein SQL Fehler.

> Blockzitat An exception occurred while executing ‚SELECT coreConfigElements.name, core  
> ConfigValues.value FROM s\_core\_config\_values coreConfigValues INNER JOIN s\_  
> core\_config\_elements coreConfigElements ON coreConfigValues.element\_id = co  
> reConfigElements.id INNER JOIN s\_core\_config\_forms coreConfigForms ON coreC  
> onfigElements.form\_id = coreConfigForms.id INNER JOIN s\_core\_plugins corePl  
> ugins ON coreConfigForms.plugin\_id = corePlugins.id WHERE (corePlugins.name  
> = ?) AND (coreConfigValues.shop\_id = ?)‘ with params [„SwagSecurity“, 1]:

Soweit verstehe ich das Problem, doch warum gibt er in der WHERE Klausel 2x ein ? aus und wie kann ich das berichtigen. Ich muss dazu sagen, dass ich jetzt nicht der Crack in Shopware bin und erst langsam reinwachse.

Viele Grüße  
Stephan

---

<div class="post-metadata">

### Author: ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)
#### Post date: [29. August 2022 um 19:28 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/13 "2022-08-29T19:28:29Z")

</div>

Hallo,

Du kannst mal versuchen, das Shopware Security Plugin zu deaktivieren und es dann erneut zu versuchen.

Viele Grüße

---

<div class="post-metadata">

### Author: ![StSchulz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/stschulz/32/18072_2.png) [@StSchulz](https://forum.shopware.com/u/StSchulz)
#### Post date: [30. August 2022 um 11:04 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/14 "2022-08-30T11:04:03Z")

</div>

Vielen Dak für die Antwort. Das habe ich getestet und bekam nun zwar eine kürzere SQL Abfrage aber dennoch mit ? als AlbumID.

> An exception occurred while executing ‚SELECT count(DISTINCT s0\_.id) AS sclr\_0 FROM s\_media s0\_ WHERE s0\_.albumID = ?‘ with params [5]:
> 
> SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

---

<div class="post-metadata">

### Author: ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)
#### Post date: [30. August 2022 um 11:12 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/15 "2022-08-30T11:12:53Z")

</div>

Schau mal hier

> [@webP Plugin](https://forum.shopware.com/t/webp-plugin/72158):
>
> @Shyim‍ Bei der Generierung der webP Dateien schmiert mir bei einem Shop der Konsolen-Befehl ab mit folgender Fehlermeldung - eine Idee ? 10950/10950 [============================] 100% Generating Thumbnails for Album CustomProducts (ID: 3) In DBALException.php line 179: An exception occurred while executing ‚SELECT count(DISTINCT s0\_.id) AS sclr\_0 FROM s\_media s0\_ WHERE s0\_.albumID = ?‘ with params [3]: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away In Connection.php lin…

Viele Grüße

---

<div class="post-metadata">

### Author: ![StSchulz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/stschulz/32/18072_2.png) [@StSchulz](https://forum.shopware.com/u/StSchulz)
#### Post date: [30. August 2022 um 11:57 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/16 "2022-08-30T11:57:32Z")

</div>

Ah ok… danke für den Hinweis. Wo sollte den das Timeout stehen? Das müsste man ja über ne phpinfo auslesen können.

---

<div class="post-metadata">

### Author: ![StSchulz](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/stschulz/32/18072_2.png) [@StSchulz](https://forum.shopware.com/u/StSchulz)
#### Post date: [30. August 2022 um 12:00 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/17 "2022-08-30T12:00:38Z")

</div>

Oder man anders gefragt, welches Timeout ist da gemeint? „Wait Timeout“ ?

Kann man einzelne Alben manuell anstoßen ohne nun die Artikel davor alle zu generieren?

---

<div class="post-metadata">

### Author: ![SCOOPEX](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/scoopex/32/18328_2.png) [@SCOOPEX](https://forum.shopware.com/u/SCOOPEX)
#### Post date: [30. August 2022 um 12:18 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/18 "2022-08-30T12:18:04Z")

</div>

Der Wait Timeout wird in der Datenbankserver-Konfiguration (my.cnf) gesetzt - Anleitung:

[https://docs.rackspace.com/support/how-to/how-to-change-the-mysql-timeout-on-a-server/](https://docs.rackspace.com/support/how-to/how-to-change-the-mysql-timeout-on-a-server/)

---

<div class="post-metadata">

### Author: ![Deton8](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@Deton8](https://forum.shopware.com/u/Deton8)
#### Post date: [16. Juni 2023 um 10:03 UTC](https://forum.shopware.com/t/webp-plugin-von-friends-of-shopware-kommt-fehler/94067/19 "2023-06-16T10:03:17Z")

</div>

Hallo  
Ich habe das webp Plugin installiert und die Thumbnails generiert, aber sie werden im Frontend nicht ausgegeben. Ich habe versuchshalber auch das Theme mal auf responsive gestellt, aber es werden weiterhin nur die jpg bilder angezeigt. Irgendwie kommen die webp links nicht ins srcset…  
Jemand eine Idee?
