David Karich

PHP 7.1 Error with ProcessWire

Recommended Posts

Hi, I have changed today a productive site with a PW installation in version 3.0.37 on PHP 7.1. Unfortunately, the system does not seem to run anymore. The page loads and loads and loads until the timeout (both: frontend and backend). The following error is only logged in the Error Log:

- Premature end of script headers: index.php, referer: https://www.höhle-der-löwen.com/
- 9563#0: *21784 upstream timed out (110: Connection timed out) while reading response header from upstream
- 9563#0: *21901 upstream prematurely closed connection while reading response header from upstream

Does anybody have the same Problem? With PHP 7.0, everything runs smoothly.

Share this post


Link to post
Share on other sites

Seems to me like a misconfiguration of either your php or nginx installation. I have some ProcessWire sites running on Apache (2.2, 2.4) and Nginx with PHP 7.1, without problems so far.

Share this post


Link to post
Share on other sites
2 minutes ago, Yannick Albert said:

Seems to me like a misconfiguration of either your php or nginx installation. I have some ProcessWire sites running on Apache (2.2, 2.4) and Nginx, both with PHP 7.1, no problems so far.

Hm, okay. Thanks for your feedback. Then I have to go into detail in the search. Actually, I used the same configuration as PHP7. The error occurred only since I have cleared the cache of ProCache and then went to the upgrade module. Since then, the error has occurred.

Share this post


Link to post
Share on other sites

After a quick research...

Found this migration guide (PHP 7.0.x to PHP 7.1.x): http://php.net/manual/migration71.php

Maybe this is somehow related to your issue:

Dumb question: Have you tried to restart nginx and double checked that it runs with the correct php-cgi/php-fpm and latest mariadb/mysql?

  • Like 1

Share this post


Link to post
Share on other sites

After a long back and forth and many tests, the problem persists. But it could break down on a module. Ryan's update module. The Web server only hangs up when this module is called.

After consulting the system administrator, he assured me that the server-side configuration is absolutely identical to the PHP 7.0 configuration. All modules, settings, paths, timeouts (60 seconds) are absolutely the same. Also the right PHP handlers are used. Only the PHP module "ioncubeloader" is not yet available for 7.1, is, according to my knowledge, but not required.

However, there is no useful information in the PHP log. I'm pretty much on the hose and do not get the problem solved. Without the update module, everything runs smoothly.

Does anyone have any idea what the problem is?

Share this post


Link to post
Share on other sites

I know it doesn't help much, but I am using the update module with PHP 7.1 with no problems. I know there were some issues with early versions of PW 3. Have you tried upgrading to the latest dev?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.