# Shopware 500 Internal Server Error

**URL:** <https://forum.shopware.com/t/shopware-500-internal-server-error/62544>\
**Category:** Allgemein\
**Created:** [22. Oktober 2019 um 09:28 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544 "2019-10-22T09:28:53Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![tensRoth](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tensRoth](https://forum.shopware.com/u/tensRoth)\
**Post date:** [22. Oktober 2019 um 09:28 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544/1 "2019-10-22T09:28:53Z")

</div>

Hallo liebe Community,

seit geraumer Zeit haben wir auf ständig unterschiedlichen Seiten einen 500er Server Error. Wir sind auf der aktuellsten Version&nbsp;5.6.2 und hosten auf einem performance starken&nbsp;Dedicated Server bei Hetzner. Wie kann das zustande kommen? Unser&nbsp;Agentur ist leider komplett ratlos und wir mittlerweile ebenso.

Ich habe dazu einen PHP-Errorlog erstellen lassen, habe aber keine Ahnung wie ich die Inhalte des Logs zu deuten habe. In der Liste gibt es zigtausende (fast 7000) PHP Fatal errors.

Kann mir hier jmd weiterhelfen?

Viele Grüße

Sascha

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [22. Oktober 2019 um 09:31 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544/2 "2019-10-22T09:31:20Z")

</div>

Vielleicht mal ein Teil dieser Log-Datei hier mittels der Code-Funktion im Forum posten.

---

<div class="post-metadata">

**Author:** ![tensRoth](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tensRoth](https://forum.shopware.com/u/tensRoth)\
**Post date:** [22. Oktober 2019 um 09:40 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544/3 "2019-10-22T09:40:47Z")

</div>

Korrektur: Mittlerweile sind 16.000 PHP Errors geloggt…

&nbsp;

Hier ein paar Beispiele:

[22-Oct-2019 11:22:23 Europe/Berlin] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php on line 907 [22-Oct-2019 11:19:38 Europe/Berlin] PHP Fatal error: Uncaught SmartyException: directory ‚/usr/www/users/axiona/www.axion.shop/releases/1.2.0/custom/plugins/TcinnTrustpilotRatings/Views/frontend/listing/product-box/box-basic.tpl‘ not allowed by security setting in /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Smarty/sysplugins/smarty\_security.php:381 Stack trace: #0 /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_resource\_file.php(33): Smarty\_Security-\>isTrustedResourceDir(’/usr/www/users/…’) #1 /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Smarty/sysplugins/smarty\_resource.php(303): Smarty\_Internal\_Resource\_File-\>populate(Object(Smarty\_Template\_Source), NULL) #2 /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_resource\_extends.php(41): Smarty\_Resource::source(NULL, Object(Enlight\_Template\_Manager), '/usr/www/users/. in /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Smarty/sysplugins/smarty\_security.php on line 381 [22-Oct-2019 11:13:48 Europe/Berlin] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 12288 bytes) in /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php on line 907 [22-Oct-2019 11:04:27 Europe/Berlin] PHP Fatal error: Uncaught SmartyException: Unable to load template file ‚widgets/error/generic\_error.tpl‘ in /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_templatebase.php:127 Stack trace: #0 /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Enlight/View/Default.php(295): Smarty\_Internal\_TemplateBase-\>fetch() #1 /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(212): Enlight\_View\_Default-\>render(Object(Enlight\_Template\_Default)) #2 /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(238): Enlight\_Controller\_Plugins\_ViewRenderer\_Bootstrap-\>renderTemplate(Object(Enlight\_Template\_Default)) #3 /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Enlight/Controller/Plugins/ViewRenderer/ in /usr/www/users/axiona/www.axion.shop/releases/1.2.0/vendor/shopware/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_templatebase.php on line 127

&nbsp;

---

<div class="post-metadata">

**Author:** ![AndreHerking](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/andreherking/32/7839_2.png) [@AndreHerking](https://forum.shopware.com/u/AndreHerking)\
**Post date:** [22. Oktober 2019 um 09:52 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544/4 "2019-10-22T09:52:15Z")

</div>

Erhöhe mal mit deinem Hoster das Memory Limit - 512MB ist der empfohlene Wert, da 256MB sich als Minimum auf eine Standard Umgebung ohne Plugins beziehen.

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [22. Oktober 2019 um 09:56 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544/5 "2019-10-22T09:56:32Z")

</div>

> PHP Fatal error: Allowed memory size of 268435456 bytes

Nun ja, da scheint der Arbeitspeicher nicht zu reichen. Vielleicht mal auf 512MB erhöhen.&nbsp;

&nbsp;

> plugins/TcinnTrustpilotRatings/Views/frontend/listing/product-box/box-basic.tpl’ not allowed by security setting

Ich weiß nicht was „TcinnTrustpilotRatings“ für ein Plugin ist, aber hier scheint etwas am Template nicht zu stimmen. Diese Fehlermeldung ggf. mal an den Plugin-Hersteller senden.

&nbsp;

> Unable to load template file 'widgets/error/generic\_error.tpl

Da scheint ein Template zu fehlen. Kommt vielleicht von einem Plugin.  
&nbsp;

> unser teure Agentur ist komplett ratlos

Hm, was soll man jetzt dazu schreiben 🙂

&nbsp;

---

<div class="post-metadata">

**Author:** ![tensRoth](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tensRoth](https://forum.shopware.com/u/tensRoth)\
**Post date:** [22. Oktober 2019 um 10:58 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544/6 "2019-10-22T10:58:34Z")

</div>

Vielen Dank für eure Antworten.

&nbsp;

1. Den Arbeitsspeicher haben wir auf 512 MB erhöht. Ich beobachte den PHP Error Log und hoffe, dass zumindest dieser eine Fehler nicht mehr auftritt.&nbsp;

2. Das mit dem TC-Plugin habe ich dem Entwickler geschickt.

3. Wenn ich das richtig sehe, ist der Fehler&nbsp;mit dem „Unable to load template file 'widgets/error/generic\_error.tpl“ der mit Abstand am häufig auftretende Fehler.

Hier noch ein paar andere Fehlermeldung. Wäre echt mega, wenn ich dazu auch noch einen Hint bekommen könnte! 🙂

> [11-Oct-2019 17:07:28 Europe/Berlin] PHP Fatal error: &nbsp;Uncaught Error: Wrong parameters for Zend\_Db\_Statement\_Exception([string $message [, long $code [, Throwable $previous = NULL]]]) in /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Zend/Db/Statement/Pdo.php:298  
> Stack trace:  
> #0 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Zend/Db/Statement/Pdo.php(298): Exception-\>\_\_construct(‚SQLSTATE[HY000]…‘, ‚HY000‘, Object(PDOException))  
> #1 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Zend/Db/Adapter/Abstract.php(808): Zend\_Db\_Statement\_Pdo-\>fetchColumn(0)  
> #2 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/custom/plugins/DreiscSeo/Subscribers/BackendCategorySubscriber.php(269): Zend\_Db\_Adapter\_Abstract-\>fetchOne(‚\n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;…‘, Array)  
> #3 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Enlight/Event/Handler/Default.php(87): DreiscSeo\Subscribers\BackendCategorySubscriber-\>onEnlight in /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Zend/Db/Statement/Pdo.php on line 298

&nbsp;

> [11-Oct-2019 19:39:00 Europe/Berlin] PHP Fatal error: &nbsp;Uncaught SmartyException: Unable to load template file ‚widgets/error/generic\_error.tpl‘ in /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_templatebase.php:127  
> Stack trace:  
> #0 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Enlight/View/Default.php(295): Smarty\_Internal\_TemplateBase-\>fetch()  
> #1 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(212): Enlight\_View\_Default-\>render(Object(Enlight\_Template\_Default))  
> #2 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(238): Enlight\_Controller\_Plugins\_ViewRenderer\_Bootstrap-\>renderTemplate(Object(Enlight\_Template\_Default))  
> #3 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Enlight/Controller/Plugins/ViewRenderer/ in /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_templatebase.php on line 127

&nbsp;

> [10-Oct-2019 23:42:25 Europe/Berlin] PHP Fatal error: &nbsp;Uncaught Error: Call to a member function getBaseUrl() on null in /usr/www/users/axiona/www.axion.shop/releases/1.1.0/var/cache/live\_f9a783fe49/templates/frontend\_Axion\_de\_DE\_1\_secure/4c/b8/71/4cb8715f0021fb3d07e3797974ad359a44aa092e.snippet.index.tpl.php:730  
> Stack trace:  
> #0 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Smarty/sysplugins/smarty\_internal\_templatebase.php(180): content\_5d9b7a8e61d470\_09247811(Object(Enlight\_Template\_Default))  
> #1 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Enlight/View/Default.php(295): Smarty\_Internal\_TemplateBase-\>fetch()  
> #2 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(212): Enlight\_View\_Default-\>render(Object(Enlight\_Template\_Default))  
> #3 /usr/www/users/axiona/www.axion.shop/releases/1.1.0/vendor/shopware/shopware/engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(23 in /usr/www/users/axiona/www.axion.shop/releases/1.1.0/var/cache/live\_f9a783fe49/templates/frontend\_Axion\_de\_DE\_1\_secure/4c/b8/71/4cb8715f0021fb3d07e3797974ad359a44aa092e.snippet.index.tpl.php on line 730

&nbsp;

> [06-Oct-2019 20:38:01 Europe/Berlin] PHP Fatal error: &nbsp;Uncaught Error: Undefined class constant ‚VERSION‘ in /usr/www/users/axiona/www.axion.shop/releases/1.0.0/Plugins/Community/Frontend/pqtPaqatoTrackingManager/Components/ExportService.php:90  
> Stack trace:  
> #0 /usr/www/users/axiona/www.axion.shop/releases/1.0.0/Plugins/Community/Frontend/pqtPaqatoTrackingManager/Bootstrap.php(313): Paqato\Components\ExportService-\>exportPackages()  
> #1 /usr/www/users/axiona/www.axion.shop/releases/1.0.0/vendor/shopware/shopware/engine/Library/Enlight/Event/Handler/Plugin.php(145): Shopware\_Plugins\_Frontend\_pqtPaqatoTrackingManager\_Bootstrap::exportPackages(Object(Shopware\_Components\_Cron\_CronJob))  
> #2 /usr/www/users/axiona/www.axion.shop/releases/1.0.0/vendor/shopware/shopware/engine/Library/Enlight/Event/EventManager.php(251): Enlight\_Event\_Handler\_Plugin-\>execute(Object(Shopware\_Components\_Cron\_CronJob))  
> #3 /usr/www/users/axiona/www.axion.shop/releases/1.0.0/vendor/shopware/shopware/engine/Library/Enlight/Components/Cron/Manager.php(276): Enlight\_Event\_EventManager-\>notifyUntil('S in /usr/www/users/axiona/www.axion.shop/releases/1.0.0/Plugins/Community/Frontend/pqtPaqatoTrackingManager/Components/ExportService.php on line 90

Vielen Dank schonmal!

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [22. Oktober 2019 um 11:37 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544/7 "2019-10-22T11:37:38Z")

</div>

Man könnte meinen, dass euer Shop in einem schlimmen Zustand ist. Zahlreiche Plugins verursachen hier die Fehlermeldungen. Vielleicht mal schauen ob eure Plugins auf aktuellen Stand sind + der euer Shop selber. Dermaßen viele Fehler kenne ich nur von Shops, die ewig nichts mehr an ihrem Shop gemacht haben, also wo der Shop nur vor sich hinläuft.  
&nbsp;

> PHP Fatal error: &nbsp;Uncaught Error: Wrong parameters for Zend\_Db\_Statement\_Exception

&nbsp;Verursacher Plugin DreiscSeo

&nbsp;

> Unable to load template file ‚widgets/error/generic\_error.tpl‘

Woher das kommt weiß ich zur Stunde nicht. In einem normalen Shopware Shop&nbsp; (Version 5.6.x) finde ich dazu nichts.

&nbsp;

> Call to a member function getBaseUrl()

Vielleicht mal den kompletten Cache leeren.&nbsp;

&nbsp;

> Uncaught Error: Undefined class constant ‚VERSION‘

&nbsp;Verursacher wohl das Plugin pqtPaqatoTrackingManager.

Vielleicht eine andere Agentur suchen die etwas von Shopware versteht. Bei der jetzigen scheint das ja nicht der Fall zu sein 🙂

---

<div class="post-metadata">

**Author:** ![tensRoth](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tensRoth](https://forum.shopware.com/u/tensRoth)\
**Post date:** [22. Oktober 2019 um 11:44 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544/8 "2019-10-22T11:44:29Z")

</div>

Nochmals danke für deine Antwort.

Der Shop ging für teuer Geld erst am 12. September diesen Jahres online! Seitdem ist das Problem mit hoher Prio kommuniziert und bisher gab es leider keinen funktionierenden Lösungsansatz. Morgen werd ich dazu mit der Agentur telefonieren…

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [22. Oktober 2019 um 11:51 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544/9 "2019-10-22T11:51:25Z")

</div>

Ohje, dann sage ich dazu mal nichts weiter 🙂

---

<div class="post-metadata">

**Author:** ![tensRoth](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@tensRoth](https://forum.shopware.com/u/tensRoth)\
**Post date:** [22. Oktober 2019 um 14:11 UTC](https://forum.shopware.com/t/shopware-500-internal-server-error/62544/10 "2019-10-22T14:11:58Z")

</div>

Lässt sich evtl hier jemand finden, der gegen Bezahlung die Error-Logs überprüft und Handlungsanweisungen geben kann? Gerne auch per PM, wenn das den Forumsrichtlinien entspricht?!
