# PHP Error nach 5.0.4 Update

**URL:** https://forum.shopware.com/t/php-error-nach-5-0-4-update/31339
**Category:** Allgemein
**Created:** [13. Oktober 2015 um 15:34 UTC](https://forum.shopware.com/t/php-error-nach-5-0-4-update/31339 "2015-10-13T15:34:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![simoon](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@simoon](https://forum.shopware.com/u/simoon)
#### Post date: [13. Oktober 2015 um 15:34 UTC](https://forum.shopware.com/t/php-error-nach-5-0-4-update/31339/1 "2015-10-13T15:34:36Z")

</div>

Hi, wir haben von 5.0.1. auf 5.0.4 geupdatet. Seit dem Update haben wir einen PHP Error 2015/10/13 15:32:40 [error] 30270#0: \*36554 FastCGI sent in stderr: „PHP message: PHP Fatal error: Uncaught exception ‚Zend\_Session\_Exception‘ with message ‚Zend\_Session is currently marked as read-only.‘ in /www/httpd/www.homeliving.de/html/engine/Library/Zend/Session/Abstract.php:112 Stack trace: #0 /www/httpd/www.homeliving.de/html/engine/Library/Zend/Session/Namespace.php(414): Zend\_Session\_Abstract::\_namespaceUnset(‚Shopware‘, ‚sUserMail‘) #1 /www/httpd/www.homeliving.de/html/engine/Library/Enlight/Components/Session/Namespace.php(54): Zend\_Session\_Namespace-\>\_\_unset(‚sUserMail‘) #2 /www/httpd/www.homeliving.de/html/engine/Shopware/Core/sAdmin.php(1372): Enlight\_Components\_Session\_Namespace-\>offsetUnset(‚sUserMail‘) #3 /www/httpd/www.homeliving.de/html/engine/Shopware/Plugins/Community/Frontend/StcomTemplateDashone/Controllers/Widgets/StcomEasyLogin.php(30): sAdmin-\>sCheckUser() #4 /www/httpd/www.homeliving.de/html/engine/Library/Enlight/Controller/Action.php(159): Shopware\_Controllers\_Widgets\_StcomEasyLogin-\>showLoginWindowAction() #5 /www/httpd/www.homeliving.de/ht“ while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: [www.homeliving.de](http://www.homeliving.de), request: „GET /aussenbeleuchtung?p=1&f=1759%7C1780%7C1779%7C1762%7C1769%7C20442 HTTP/1.1“, upstream: „fastcgi://unix:/var/run/php5-fpm.sock:“, host: „[www.homeliving.de](http://www.homeliving.de)“ hat jemand eine idee woran das liegen kann bzw. wie es zu beheben ist? Gruss Alex

---

<div class="post-metadata">

### Author: ![Elephant](https://avatars.discourse-cdn.com/v4/letter/e/d2c977/32.png) [@Elephant](https://forum.shopware.com/u/Elephant)
#### Post date: [12. April 2016 um 01:26 UTC](https://forum.shopware.com/t/php-error-nach-5-0-4-update/31339/2 "2016-04-12T01:26:31Z")

</div>

Hallo Alex,

gab es für dieses Problem mal eine Lösung?

&nbsp;

Grüsse

&nbsp;

Elephant

---

<div class="post-metadata">

### Author: ![mmayer](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@mmayer](https://forum.shopware.com/u/mmayer)
#### Post date: [9. August 2016 um 15:53 UTC](https://forum.shopware.com/t/php-error-nach-5-0-4-update/31339/3 "2016-08-09T15:53:57Z")

</div>

„‚Zend\_Session\_Exception‘ with message ‚Zend\_Session is currently marked as read-only.‘“

Ein Kollege hat geprüft und kam mit der Lösung auf, dass sCheckUser nicht zuverlässig ist bei der Abfrage, ob der Nutzer eingeloggt ist oder nicht.

im Beispiel des Posters müsste wohl in StcomTemplateDashone/Controllers/Widgets/StcomEasyLogin.php anders abgefragt werden, zb mit

if(Shopware()-\>System()-\>\_SESSION[‚sUserId‘]) &nbsp;{ … }

siehe Diskussion in [https://forum.shopware.com/discussion/14725/plugins-userlogin-pruefen](https://forum.shopware.com/discussion/14725/plugins-userlogin-pruefen)
