When we search any string from the search text box, We have encountered a 500 server error into the search result page in our live web site or search page getting blank.
When we check in logs or report, it didn't give us any errors.
When we check our server apache log file then we find below errors.
[proxy_fcgi:error] [pid 4769:tid 140509781169920] [client xxx.xxx.xxx.x:58274] Premature end of script headers: index.php, referer: example.com/catalogsearch/result/?q=pink
[proxy_fcgi:error] [pid 4769:tid 140509781169920] [client xxx.xxx.xxx.x:58274] AH01070: Error parsing script headers, referer: example.com/catalogsearch/result/?q=pink
[proxy_fcgi:error] [pid 4769:tid 140509781169920] (22)Invalid argument: [client xxx.xxx.xxx.x:58274] AH01075: Error dispatching request to : , referer: example.com/catalogsearch/result/?q=pink
Our server has apache version 2.4 , PHP 7.2 FPM and HTTP 2 protocol.
Also When we disable magento cache then it's work fine. With PHP 7.2(not using PHP-7.2 FPM) it's also work perfectly. Till I debug I found issue when php 7.2 FPM is running and looks like some issue with the proxy_fcgi module.
Any help would be appreciated. Thank You!!