# CrossSelling Elemente Shopware 6.3.5.4 zu 6.4

**URL:** https://forum.shopware.com/t/crossselling-elemente-shopware-6-3-5-4-zu-6-4/87578
**Category:** Programmierung
**Created:** [11. Mai 2021 um 05:39 UTC](https://forum.shopware.com/t/crossselling-elemente-shopware-6-3-5-4-zu-6-4/87578 "2021-05-11T05:39:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![php\_schmiede](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/php_schmiede/32/13458_2.png) [@php\_schmiede](https://forum.shopware.com/u/php_schmiede)
#### Post date: [11. Mai 2021 um 05:39 UTC](https://forum.shopware.com/t/crossselling-elemente-shopware-6-3-5-4-zu-6-4/87578/1 "2021-05-11T05:39:52Z")

</div>

Moin,

ich musste in einigen meiner Plugins die Kompatibilität für Shopware 6.4 herstellen.

Dabei habe ich nun das Problem, dass es beim hinzufügen von CrossSelling Elementen unter Shopware 6.3.5.4 folgenden Fehler gibt:

Expected collection element of type Shopware\Storefront\Page\Product\CrossSelling\CrossSellingElement got Shopware\Core\Content\Product\SalesChannel\CrossSelling\CrossSellingElement

Die Klassen erwarten, laut Code aber das korrekte Objekt, also das  
„Shopware\Core\Content\Product\SalesChannel\CrossSelling\CrossSellingElement“.

Kann mir evtl. jemand sagen wo der Fehler ist?
