# Probleme mit PHP 8 + Textbausteinen in Ext JS / Backend

**URL:** <https://forum.shopware.com/t/probleme-mit-php-8-textbausteinen-in-ext-js-backend/95396>\
**Category:** Shopware 5\
**Created:** [21. Juli 2022 um 09:59 UTC](https://forum.shopware.com/t/probleme-mit-php-8-textbausteinen-in-ext-js-backend/95396 "2022-07-21T09:59:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mac](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mac/32/7855_2.png) [@mac](https://forum.shopware.com/u/mac)\
**Post date:** [21. Juli 2022 um 09:59 UTC](https://forum.shopware.com/t/probleme-mit-php-8-textbausteinen-in-ext-js-backend/95396/1 "2022-07-21T09:59:19Z")

</div>

Hallo Community,

bei der Umstellung zu PHP 8 gibt es bei manchen Plugins und Shops Probleme mit den Snippets. Kann mir jemand erklären, warum der Fehler geworfen wird und wie ich das Problem beheben kann?

**Fehlermeldung im Backend**

```auto
 snippets:{
         columns: {
             number: '<br />
 <b>Fatal error</b>: Uncaught TypeError: Unsupported operand types: string / string in /home/xxxx/var/cache/production_202201031510/templates/backend_de_DE_c8132/be/9d/72/be9d72edb2bfc3f245962266b224290689a4d822.snippet.list.js.php:819

```

**Code in der list.js**

```auto
    snippets:{
        columns: {
            number: '{s name=column/number}Order number{/s}',
            invoiceAmount: '{s name=column/amount}Amount{/s}',

```

Im Textbaustein steht „Bestellnummer“ ohne Leerzeichen.  
Warum wird hier ein Fehler geworfen?

Gruß  
Marco

---

<div class="post-metadata">

**Author:** ![abdullah](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@abdullah](https://forum.shopware.com/u/abdullah)\
**Post date:** [21. Juli 2022 um 10:01 UTC](https://forum.shopware.com/t/probleme-mit-php-8-textbausteinen-in-ext-js-backend/95396/2 "2022-07-21T10:01:47Z")

</div>

Setz Mal den name Attribute,den Wert, in Anführungszeichen. Das sollte helfen.

---

<div class="post-metadata">

**Author:** ![mac](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mac/32/7855_2.png) [@mac](https://forum.shopware.com/u/mac)\
**Post date:** [21. Juli 2022 um 10:14 UTC](https://forum.shopware.com/t/probleme-mit-php-8-textbausteinen-in-ext-js-backend/95396/3 "2022-07-21T10:14:22Z")

</div>

Yeah, es funktioniert. Es hat an den Anführungszeichen gelegen.  
Vielen Dank.

Gruß  
Marco

---

<div class="post-metadata">

**Author:** ![Michael\_Telgmann](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/michael_telgmann/32/20289_2.png) [@Michael\_Telgmann](https://forum.shopware.com/u/Michael_Telgmann)\
**Post date:** [21. Juli 2022 um 11:46 UTC](https://forum.shopware.com/t/probleme-mit-php-8-textbausteinen-in-ext-js-backend/95396/4 "2022-07-21T11:46:43Z")

</div>

Hallo Marco,

siehe dazu auch unseren Upgrade-Guide zu 5.7 [Shopware 5 upgrade guide](https://developers.shopware.com/developers-guide/shopware-5-upgrade-guide-for-developers/#snippets)

Viele Grüße aus Schöppingen  
Michael Telgmann
