# Für Blog-Widget in Einkaufswelt kommt "Call to a member function filter() on null"

**URL:** https://forum.shopware.com/t/fur-blog-widget-in-einkaufswelt-kommt-call-to-a-member-function-filter-on-null/59339
**Category:** Programmierung
**Tags:** shopping-worlds, widgets
**Created:** [2. Mai 2019 um 13:53 UTC](https://forum.shopware.com/t/fur-blog-widget-in-einkaufswelt-kommt-call-to-a-member-function-filter-on-null/59339 "2019-05-02T13:53:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cj\_modulbuero](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cj\_modulbuero](https://forum.shopware.com/u/cj_modulbuero)
#### Post date: [2. Mai 2019 um 13:53 UTC](https://forum.shopware.com/t/fur-blog-widget-in-einkaufswelt-kommt-call-to-a-member-function-filter-on-null/59339/1 "2019-05-02T13:53:15Z")

</div>

Hallo zusammen,

in einer Shopware 5.5.8-Umgebung, die wir gerade von 5.3 geupdated haben, funktionieren die Blog-Widgets nicht. Ich habe versucht, den Fehler zu finden, scheitere aber dabei.

Konkret ist es in Zeile 973&nbsp;der /engine/shopware/components/compatibility/legacystructconverter.php, die folgende Fehlermeldung auslöst:

> : &nbsp;Uncaught Error: Call to a member function filter() on null in /var/www/clients/client53/web314/web/\_livestage/engine/Shopware/Components/Compatibility/LegacyStructConverter.php:973  
> Stack trace:  
> #0 /var/www/clients/client53/web314/web/\_livestage/engine/Shopware/Bundle/EmotionBundle/Service/StructConverter.php(217): Shopware\Components\Compatibility\LegacyStructConverter-\>convertBlogStruct(Object(Shopware\Bundle\StoreFrontBundle\Struct\Blog\Blog))  
> #1 /var/www/clients/client53/web314/web/\_livestage/engine/Shopware/Controllers/Widgets/Emotion.php(275): Shopware\Bundle\EmotionBundle\Service\StructConverter-\>convertEmotionElement(Object(Shopware\Bundle\EmotionBundle\Struct\Element))  
> #2 [internal function]: Shopware\_Controllers\_Widgets\_Emotion-\>getLegacyEmotion(Object(Shopware\Bundle\EmotionBundle\Struct\Emotion))  
> #3 /var/www/clients/client53/web314/web/\_livestage/engine/Shopware/Controllers/Widgets/Emotion.php(68): array\_map(Array, Array)  
> #4 /var/www/clients/client53/web314/web/\_livestage/engine/Library/Enlight/Con in&nbsp;

Der Code dafür lautet in der besagten Zeile:

> &nbsp;return $this-\>eventManager-\>filter(‚Legacy\_Struct\_Converter\_Convert\_Blog‘, $data, [  
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ‚blog‘ =\> $blog,  
> &nbsp; &nbsp; &nbsp; &nbsp; ]);

Die verarbeiteten Werte sind $blog ([https://pastebin.com/TZqL8P5b](https://pastebin.com/TZqL8P5b)) und $data ([https://pastebin.com/6T8puTLn](https://pastebin.com/6T8puTLn)), beide erscheinen mir korrekt zu sein und eben nicht leer.

Hat jemand eine Idee?

Vielen Dank und viele Grüße,  
Christian

&nbsp;

---

<div class="post-metadata">

### Author: ![cj\_modulbuero](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cj\_modulbuero](https://forum.shopware.com/u/cj_modulbuero)
#### Post date: [24. Mai 2019 um 10:59 UTC](https://forum.shopware.com/t/fur-blog-widget-in-einkaufswelt-kommt-call-to-a-member-function-filter-on-null/59339/2 "2019-05-24T10:59:37Z")

</div>

Push…&nbsp;

---

<div class="post-metadata">

### Author: ![shyim](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/shyim/32/7681_2.png) [@shyim](https://forum.shopware.com/u/shyim)
#### Post date: [26. Mai 2019 um 08:13 UTC](https://forum.shopware.com/t/fur-blog-widget-in-einkaufswelt-kommt-call-to-a-member-function-filter-on-null/59339/3 "2019-05-26T08:13:21Z")

</div>

Sieht so, als hätte ein Plugin mit den&nbsp;LegacyStructConverter rumgespielt und kaputt gemacht. Mal alle Plugins ausgemacht? Ansonsten durch such mal alle Plugin Ordner nach&nbsp;LegacyStructConverter

---

<div class="post-metadata">

### Author: ![cj\_modulbuero](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cj\_modulbuero](https://forum.shopware.com/u/cj_modulbuero)
#### Post date: [27. Mai 2019 um 05:50 UTC](https://forum.shopware.com/t/fur-blog-widget-in-einkaufswelt-kommt-call-to-a-member-function-filter-on-null/59339/4 "2019-05-27T05:50:52Z")

</div>

@Shyim: ok, danke schon mal für den Tipp!
