500 internal server error during installation

Hi,
I’ve tried to install phpList on my webspace (mittwald).
I get an internal server error (500) when I try to call http://myurl.de/lists/admin
The DB connection works fine (checked with an own script).

The errro log tells
2016-04-20T21:49:43+02:00 s1120 [error] malformed header from script. Bad header=Cannot connect to database: index.php
2016-04-20T21:49:46+02:00 s1120 [error] PHP Fatal error: Uncaught exception ‘Zend_Session_Exception’ with message ‘Zend_Session is currently marked as read-only.’ in /html/shopware/engine/Library/Zend/Session/Abstract.php:112
2016-04-20T21:49:46+02:00 s1120 [error] Stack trace:
2016-04-20T21:49:46+02:00 s1120 [error] #0 /html/shopware/engine/Library/Zend/Session/Namespace.php(414): Zend_Session_Abstract::_namespaceUnset(‘Shopware’, ‘sUserMail’)
2016-04-20T21:49:46+02:00 s1120 [error] #1 /html/shopware/engine/Library/Enlight/Components/Session/Namespace.php(54): Zend_Session_Namespace->__unset(‘sUserMail’)
2016-04-20T21:49:46+02:00 s1120 [error] #2 /html/shopware/engine/Shopware/Core/sAdmin.php(1386): Enlight_Components_Session_Namespace->offsetUnset(‘sUserMail’)
2016-04-20T21:49:46+02:00 s1120 [error] #3 /html/shopware/engine/Shopware/Plugins/Community/Frontend/ComerPluginQuickLogin/Bootstrap.php(260): sAdmin->sCheckUser()
2016-04-20T21:49:46+02:00 s1120 [error] #4 /html/shopware/engine/Library/Enlight/Event/Handler/Plugin.php(149): Shopware_Plugins_Frontend_ComerPluginQuickLogin_Bootstrap->onPostDispatch(Object(Enlight_Controller_ActionEventArgs))
2016-04-20T21:49:46+02:00 s1120 [error] #5 /html/shopware/engine/Library/Enlight/Event/EventManager.php(210): Enlight_Event_Handler_Plugin->execute(Object(Enlight_Controller_ActionEventArgs))
2016-04-20T21:49:46+02:00 s1120 [error] #6 in /html/shopware/engine/Library/Zend/Session/Abstract.php on line 112

PHP Version 5.6.5
MySQL 5.6
phpList 3.2.4

Any Idea?

Thx in advance

br
boris

I think that this means phplist is getting an unexpected error code when trying to connect. It “expects” errors such as access denied, or unknown host, but is getting something else.

If the problem is still happening then you can try modifying the code so that it also shows the error number. In file admin/mysqli.inc change line 61 from this

header('Cannot connect to database',true,507);

to this

header('Cannot connect to database ' . $errno,true,507);

Hi Duncan,

thanks for your fast replay. The problem is, that I don’t get any php error (not in the php-error log) also not with this modification.
:frowning:
Thanks

Best
boris

@bovolu Are you not getting the same error as before?

2016-04-20T21:49:43+02:00 s1120 [error] malformed header from script. Bad header=Cannot connect to database: index.php

The response from phpList is too small to fill a packet from php-fpm so the connection between Apache and php-fpm is terminated without you seeing anything. You can temporarily switch to using mod_php instead of php-fpm to work-around this issue.