error 500, incomplete headers (PHP 5.4 or 5.5)

Hello

Until now my Zenphoto Installation worked fine on PHP 5.3. Then my hosting provider did an update to PHP 5.4 and my Zenphoto Gallery stopped working. I got Error 500 at front- and backend.

***Don’t have time to read the whole post? See the quick info’s at the end of the post ***

Well. I did a fresh install for testing, using build 1.4.5.9 and PHP 5.4. Yet during installation I got lots of error 500 messages (in German „Die Anfrage kann nicht beantwortet werden, da im Server ein interner Fehler aufgetreten ist. Der Server ist entweder überlastet oder ein Fehler in einem CGI-Skript ist aufgetreten“ ).

In the server log I see at the same time the following error:

“FastCGI: incomplete headers (0 bytes) received from server "/var/run/hcgi/69472"

After a browser refresh, the next error appears:

“An attempt at cross site reference forgery has been blocked.”

So I started setup again by calling the direct link to setup.php. Then I got a fatal error:

“Fatal error: Cannot call overloaded function for non-object in /home/hueserc/www/zentest/zp-core/functions-basic.php on line 334”

Tried to reinstall, got some errors 500 again, with some browser-refreshings finally the installation finished and I could log into the admin tool. Every click brought error 500, after a browser refresh, the sites were shown (except plugin and themes).

Finally I switched back to PHP 5.3 and everything was ok.

I also tested the development build on PHP 5.4 with more or less the same results. Also tested with PHP 5.5 and the frontend seems working, but still producing these “FastCGI: incomplete headers” errors. At the backend there were errors 500 again, no way to use it.

Switching back to PHP 5.3 and everything is ok.

All these tests were made with Zenphoto “out of the box” with the standard theme and without 3rd party plugins.

At the moment the test site is again installed with the current build 1.4.5.9 and PHP 5.5. My hosting provider will switch off PHP 5.3 at the end of March. I really don’t know what else to check and how to resolve the problem.

*** Here the most important installation info’s ***

Zenphoto build 1.4.5.9
PHP 5.5
MySQL 5.5.31
Link to test site: zentest.hueser.ch
PHP-Info: zentest.hueser.ch/phpinfo.php

Any help is appreciated!

Comments

  • acrylian Administrator, Developer
    I am no server expert but I do test ZP generally with PHP 5.4.4 on local MAMP server. Also I just tried sucessfully 5.4.11 FastCGI on my live server (fairly standard shared hosting). I would suggest to contact your host about that.
  • I already contacted my host, but they couldn't help until now.

    Maybe anybody could send me a phpinfo of a running installation on PHP 5.4 or 5.5? So I could compare with the configuration of my host's PHP installation. If you prefer to send it privatly, please use "mail -at- hueser -dot- ch. Thanks!
  • Ok, I tried a local installation with XAMPP and PHP 5.59, it works fine. I will contact my hosting provider again - or look for another one.
  • acrylian Administrator, Developer
    I can really assure that ZP runs on fairly standard configured shared hosting.
  • Did you find a solution? I have the same problem here (provider is the Swiss company Hostpoint).
  • acrylian Administrator, Developer
    As of the error it sounds like a wrong fastcgi configuration on the server. You really should contact your host.
  • I contacted my host's support (Hostpoint as well), they really tried to help me but gave up. I think the supporters are not the same persons as those who configure the servers... So they couldnt help unless giving me some more months for using PHP 5.3. I will have to look for another host.

    Any suggestions for a Swiss host working fine with Zenphoto are welcome!
  • acrylian Administrator, Developer
    While it never can be ruled out that an error is in ZP this really sounds like a server issue. Here is something about that header message:
    http://foaa.de/old-blog/2010/11/php-apache-and-fastcgi-a-comprehensive-overview/trackback/index.html#the-timeout-problem

    You could try the 1.4.6 dev build to see if that works better for you.

    Hopefully some knows Swiss hosts, I could only recommend some German ones :-)
  • I did try the 1.46 dev build with no better results. Thanks for the link, this could indeed be the problem (as far as I'm able to understand it without knowledge of PHP).

    There are some hosts who offer 30 days free testing, I will test one of these. As my website will be working on PHP 5.3 until June there is not such a high priority for this.
  • I got it resolved with the support of my provider (Hostpoint). The had to disable the OPCache, then all went well...
  • acrylian Administrator, Developer
    Thanks for the info. Never heard of that issue before.
  • Oh great, I will tell them to do the same on my account. Thanks!
Sign In or Register to comment.