# tiny\_mce.js - Cannot read property 'body' of undefined

**URL:** <https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321>\
**Category:** Administration\
**Created:** [28. Februar 2019 um 12:30 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321 "2019-02-28T12:30:47Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_MikeB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/_mikeb/32/7856_2.png) [@\_MikeB](https://forum.shopware.com/u/_MikeB)\
**Post date:** [28. Februar 2019 um 12:30 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321/1 "2019-02-28T12:30:47Z")

</div>

Hallo.

Wir bekommen den Fehler beim Aufruf eines Artikels im Backend. In beiden Fällen Shopware Version 5.5.7. Bei einer anderen 5.5.7 Instanz besteht dieser Fehler nicht. Woran könnte das liegen? Sollte laut dem hier schon längst behoben sein:&nbsp;[https://issues.shopware.com/issues/SW-20306](https://issues.shopware.com/issues/SW-20306)&nbsp;

```
Uncaught TypeError: Cannot read property 'body' of undefined
    at Editor.getBody (tiny_mce.js?201901211535:1)
    at Editor.setContent (tiny_mce.js?201901211535:1)
    at base?file=bootstrap&loggedIn=1551346080:10461
    at i.replacePlaceholderWithImage (base?file=bootstrap&loggedIn=1551346080:10355)
    at i.setValue (base?file=bootstrap&loggedIn=1551346080:10456)
    at Object.e (ext-all.js?201901211535:21)
    at Object.each (ext-all.js?201901211535:21)
    at Object.iterate (ext-all.js?201901211535:21)
    at i.setValues (ext-all.js?201901211535:21)
    at i.loadRecord (base?file=bootstrap&loggedIn=1551346080:4104)
getBody @ tiny_mce.js?201901211535:1
setContent @ tiny_mce.js?201901211535:1
(anonymous) @ base?file=bootstrap&loggedIn=1551346080:10461
replacePlaceholderWithImage @ base?file=bootstrap&loggedIn=1551346080:10355
setValue @ base?file=bootstrap&loggedIn=1551346080:10456
e @ ext-all.js?201901211535:21
each @ ext-all.js?201901211535:21
iterate @ ext-all.js?201901211535:21
setValues @ ext-all.js?201901211535:21
loadRecord @ base?file=bootstrap&loggedIn=1551346080:4104
loadRecord @ ext-all.js?201901211535:21
(anonymous) @ /backend/Article/load/?f=m/Batch|m/PriceGroup|m/PropertyGroup|m/PropertyOption|m/Template|m/Category|m/Media|m/SeoCategory|m/Unit|m/Similar|m/Accessory|m/Article|m/Price|m/Detail|m/Link|m/Download|m/Esd|m/EsdFile|m/Statistic|m/Serial|m/Configurator|m/ConfiguratorGroup|m/ConfiguratorSet|m/ConfiguratorOption|m/ConfiguratorTemplate|m/Dependency|m/PriceVariation|m/Field|m/Stream|m/MediaMapping|m/MediaMappingRule|m/Property|v/detail/Toolbar|v/detail/Window|v/detail/Settings|v/detail/Properties|v/detail/Prices|v/detail/Base|v/category/Tree|v/category/Seo|v/category/List|v/category/DropZone|v/image/List|v/image/Info|v/image/DropZone|v/image/DataView|v/image/Mapping|v/image/NewRule|v/image/Progress|v/variant/List|v/variant/Configurator|v/variant/Detail|v/variant/NumberProgress|v/variant/Progress|v/variant/ImageRelationProcess|v/variant/configurator/Dependency|v/variant/configurator/Sets|v/variant/configurator/GroupEdit|v/variant/configurator/OptionEdit|v/variant/configurator/Mapping|v/variant/configurator/Template|v/variant/configurator/PriceVariation|v/variant/configurator/PriceVariationRule|v/esd/List|v/esd/Detail|v/esd/Serials|v/statistics/List|v/statistics/Chart|v/crossselling/Tab|v/crossselling/Base|v/crossselling/ProductStreams|v/resources/Links|v/resources/Downloads|store/Batch|store/Detail|store/CategoryPath|store/CategoryTree|store/Variant|store/Group|store/Option|store/Esd|store/EsdFile|store/Statistic|store/Serial|store/Variation|store/Dependency|store/ConfiguratorSet|store/MediaMapping|store/Property|c/Main|c/Detail|c/Category|c/Media|c/Variant|c/PriceVariation|c/Esd|c/Statistic|c/Crossselling&no-cache=1551346080+1+1:1360

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![\_MikeB](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/_mikeb/32/7856_2.png) [@\_MikeB](https://forum.shopware.com/u/_MikeB)\
**Post date:** [7. März 2019 um 06:53 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321/2 "2019-03-07T06:53:17Z")

</div>

Keiner eine Idee zu diesem Thema?

---

<div class="post-metadata">

**Author:** ![magnolia4](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@magnolia4](https://forum.shopware.com/u/magnolia4)\
**Post date:** [10. Mai 2019 um 09:27 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321/3 "2019-05-10T09:27:43Z")

</div>

Der Fehler tritt bei uns ebenfalls auf.  
Beim erneuten Aufruf des Artikels klappt es dann auf einmal.

Durchh den JS-Fehler werden die Stammdaten des Artikels nicht zuende geladen.  
So fehlen z.B. die Daten für Artikelnummer, MwSt., Template etc.

---

<div class="post-metadata">

**Author:** ![magnolia4](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@magnolia4](https://forum.shopware.com/u/magnolia4)\
**Post date:** [10. Mai 2019 um 09:33 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321/4 "2019-05-10T09:33:23Z")

</div>

Hier eine weitere Meldung aus einem identischen Beitrag:  
[https://forum.shopware.com/discussion/59888/shopware-backend-uncaught-typeerror-body-von-tiny-mce-js](https://forum.shopware.com/discussion/59888/shopware-backend-uncaught-typeerror-body-von-tiny-mce-js)  
[https://forum.shopware.com/discussion/57018/artikel-editieren-felder-werden-geleert](https://forum.shopware.com/discussion/57018/artikel-editieren-felder-werden-geleert)

Der Fehler tritt anscheinend nur im Chrome auf und wenn viele Attributte vorhanden sind.

---

<div class="post-metadata">

**Author:** ![Lennart2](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@Lennart2](https://forum.shopware.com/u/Lennart2)\
**Post date:** [14. Mai 2019 um 14:08 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321/5 "2019-05-14T14:08:50Z")

</div>

Schließe mich an. Habe genau den gleichen Fehler. Nutze Shopware 5.5.8 und die aktuellste Chrome Version&nbsp;74.0.3729.131.

---

<div class="post-metadata">

**Author:** ![hec](https://avatars.discourse-cdn.com/v4/letter/h/e274bd/32.png) [@hec](https://forum.shopware.com/u/hec)\
**Post date:** [25. Juni 2019 um 13:54 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321/6 "2019-06-25T13:54:41Z")

</div>

Bei uns hat es geholfen, diesen Timeout von 10 auf 1000 zu erhöhen:

> <https://github.com/shopware/shopware/blob/5.4/themes/Backend/ExtJs/backend/article/controller/main.js#L367>

Shopware 5.4.5  
Chrome 75.0.3770.90

---

<div class="post-metadata">

**Author:** ![Lennart2](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@Lennart2](https://forum.shopware.com/u/Lennart2)\
**Post date:** [25. Juni 2019 um 15:30 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321/7 "2019-06-25T15:30:13Z")

</div>

> [@hec schrieb:](https://forum.shopware.com/profile/18201/hec "hec")
> 
> Bei uns hat es geholfen, diesen Timeout von 10 auf 1000 zu erhöhen:
> 
> [https://github.com/shopware/shopware/blob/5.4/themes/Backend/ExtJs/backend/article/controller/main.js#L367](https://github.com/shopware/shopware/blob/5.4/themes/Backend/ExtJs/backend/article/controller/main.js#L367)
> 
> Shopware 5.4.5  
> Chrome 75.0.3770.90

Danke für den Tipp. Werde ich gleich mal ausprobieren.

Das ist aber nicht updatesicher oder?

---

<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:** [25. Juni 2019 um 15:36 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321/8 "2019-06-25T15:36:15Z")

</div>

Das problem ist mit der allerneuesten version behoben

---

<div class="post-metadata">

**Author:** ![Lennart2](https://avatars.discourse-cdn.com/v4/letter/l/a6a055/32.png) [@Lennart2](https://forum.shopware.com/u/Lennart2)\
**Post date:** [25. Juni 2019 um 15:49 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321/9 "2019-06-25T15:49:58Z")

</div>

> [@Lennart2 schrieb:](https://forum.shopware.com/profile/31142/Lennart2 "Lennart2")
> 
> > [@hec schrieb:](https://forum.shopware.com/profile/18201/hec "hec")
> > 
> > Bei uns hat es geholfen, diesen Timeout von 10 auf 1000 zu erhöhen:
> > 
> > [https://github.com/shopware/shopware/blob/5.4/themes/Backend/ExtJs/backend/article/controller/main.js#L367](https://github.com/shopware/shopware/blob/5.4/themes/Backend/ExtJs/backend/article/controller/main.js#L367)
> > 
> > Shopware 5.4.5  
> > Chrome 75.0.3770.90
> 
> Danke für den Tipp. Werde ich gleich mal ausprobieren.
> 
> Das ist aber nicht updatesicher oder?

Hat bei uns funktiniert.

Kann leider derzeit noch nicht updaten da nicht alle Plugins kompatibel.&nbsp;

---

<div class="post-metadata">

**Author:** ![GabrielBV](https://avatars.discourse-cdn.com/v4/letter/g/dc4da7/32.png) [@GabrielBV](https://forum.shopware.com/u/GabrielBV)\
**Post date:** [17. September 2019 um 05:58 UTC](https://forum.shopware.com/t/tiny-mce-js-cannot-read-property-body-of-undefined/58321/10 "2019-09-17T05:58:35Z")

</div>

Hallo, gab es hierzu von Shopware mal eine Info? Wir haben ein Problem in Version 5.5.4 “TypeError: this.getDoc(…) is undefined” vom TinyMCE. Das führt dazu, dass im Backend die Stammdaten nicht korrekt geladen werden und dann beim Speichern verloren gehen - hier haben wir inzwischen nicht ganz abzuschätzenden Datenverlust.
