cancel
Showing results for 
Search instead for 
Did you mean: 

Error 500 when FPC is enable

Error 500 when FPC is enable

Hi,

I've that error when FPC is enable; problem is only on specific category and with configurable product.

 

On server I've this error

[Wed Sep 11 17:07:55.569817 2019] [core:error] [pid 42702:tid 47406966220544] [client 2.233.130.127:54178] Premature end of script headers: index.php

But server configuration is ok.

 

Any idea? I use Magento 2.3.2

 

Thanks so much
Matteo

6 REPLIES 6

Re: Error 500 when FPC is enable

Hi @Paride Fontana,

 

Just a few questions to try to get a better idea:

  1. Are you running on developer mode?
  2. Is that the only error you get?
  3. Maybe the webserver error log can provide more information?
  4. What about the Magento's logs?
  5. Which version of PHP are you using?

 

Cheers!

Re: Error 500 when FPC is enable

Hi @Damian Culotta,

thanks for your answer:

 

  1. Yes
  2. Yes, and only in a specific category with specific product
  3. Webserver log: [core:error] [pid 62443:tid 47406966220544] [client 2.233.130.127:52100] Premature end of script headers: index.php
  4. Nothing, no error about this
  5. 7.2.22

Thanks so much

Re: Error 500 when FPC is enable

Hi @Paride Fontana,

 

Is that category using 3rd-party or custom modules?

Not sure if this is related but in the last days I saw some similar errors with PHP 7.2 because some sections of PHP code withe the close and open tag.

I mean:

 

<?php 
// some code here
?>

<?php
 header('location: new_url.com'); 
 // line 6 throws an error because PHP sent a response body for line 4
?>

What if you downgrade to PHP 7.1 to be sure is not related with the PHP version and some part of the code?

Re: Error 500 when FPC is enable

Hi,

yes there are third part extensions but I disable all and problem remain.

I've downgrade the PHP version to 7.1 and 7.0 but I've the same error.

I haven't other ideas?

 

Thanks so much

Matteo Fontana

Re: Error 500 when FPC is enable

Re: Error 500 when FPC is enable

@Paride Fontana ,

 

can you check and confirm the followings 

1. Check this error in the Magento Luma theme 

2. Check this error by disabling all 3rd party modules

3. FPC Settings ( files / redis / varnish ) ?

4. Is there any customization related to the session into any block/plugin/template for that page?