I'm having crazy issues on checkout page - it kicks the client out of the checkout:
500 Server error on /checkout/onepage/progress/?toStep=shipping_method
sometimes on billing too.
The issue is intermittent, sometimes it shows up, sometimes not.
SUPEE 7405 I have applied both 1.0 and 1.1 via FTP(direct file upload), but the issue with checkout still persists!
Please help!
PS: Both MCRYPT, MBSTRING and SOAP are enabled on the server. I'm running PHP 5.4.45 with APC 3.1.13 on 1230 Intel CPU, 16GB of RAM, 2TB Drives
Update:
Chrome Console spits this out:
prototype.js:1530 POST /checkout/onepage/saveBilling/ 500 (Internal Server Error)
Ajax.Request.Class.create.request @ prototype.js:1530 Ajax.Request.Class.create.initialize @ prototype.js:1495 (anonymous function) @ prototype.js:429 klass @ prototype.js:101Billing.save @ /skin/frontend/base/default/js/opcheckout.js:313 onclick @ /checkout/onepage/:679
UPDATE: Apache Logs have these types of errors:
24.87.30.186 - - [21/Apr/2016:16:13:43 -0700] "POST /checkout/onepage/saveBilling/ HTTP/1.1" 500 - "https://www.example.com/checkout/onepage/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
216.129.65.170 - - [21/Apr/2016:16:08:00 -0700] "GET /checkout/onepage/progress/?toStep=payment HTTP/1.1" 500 461 "https://www.example.com/checkout/onepage/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
216.129.65.170 - - [21/Apr/2016:16:08:00 -0700] "GET /checkout/onepage/progress/?toStep=payment HTTP/1.1" 500 461 "https://www.example.com/checkout/onepage/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36"
UPDATE
I just ran tail -f
command on error_log
when the error happened:
tail -f 200 /usr/local/apache/logs/error_log
[Fri Apr 22 08:37:36.234374 2016] [fcgid:warn] [pid 20874:tid 140365143197440] ( [Fri Apr 22 08:41:52.653576 2016] [fcgid:warn] [pid 20892:tid 140365143197440] (104)Connection reset by peer: [client 209.82.102.74:29184] mod_fcgid: error reading data from FastCGI server, referer: https://www.example.com/checkout/onepage/ [Fri Apr 22 08:41:52.653629 2016] [core:error] [pid 20892:tid 140365143197440] [client 209.82.102.74:29184] End of script output before headers: index.php, referer: https://www.example.com/checkout/onepage/ [Fri Apr 22 08:41:52.743064 2016] [fcgid:error] [pid 20871:tid 140365330593728] mod_fcgid: process /usr/local/cpanel/cgi-sys/php5(21528) exit(communication error), get signal 11, possible coredump generated zend_mm_heap corrupted [Fri Apr 22 08:41:52.791456 2016] [fcgid:warn] [pid 20892:tid 140365143197440] (104)Connection reset by peer: [client 209.82.102.74:29184] mod_fcgid: error reading data from FastCGI server, referer: https://www.example.com/checkout/onepage/ [Fri Apr 22 08:41:52.791491 2016] [core:error] [pid 20892:tid 140365143197440] [client 209.82.102.74:29184] End of script output before headers: index.php, referer: https://www.example.com/checkout/onepage/
[Fri Apr 22 08:45:52.376926 2016] [core:error] [pid 20873:tid 140365284730624] [client 209.82.102.74:29240] End of script output before headers: index.php, referer: https://www.example.com/checkout/onepage/ [Fri Apr 22 08:45:52.540121 2016] [fcgid:error] [pid 20871:tid 140365330593728] mod_fcgid: process /usr/local/cpanel/cgi-sys/php5(22178) exit(communication error), get signal 11, possible coredump generated [Fri Apr 22 08:45:52.540414 2016] [fcgid:error] [pid 20871:tid 140365330593728] mod_fcgid: process /usr/local/cpanel/cgi-sys/php5(22113) exit(communication error), get signal 11, possible coredump generated
I have checked with Sysadmin of the server:
"That message means the php script is crashing php. Most likely due to opcode caching."
^^^^ I dont understand this.
--------- APRIL-25 UPDATE --- TURNING OFF APC ------------
It looks like removing APC from local.xml fixes this issue. I need to do more testing, but new version of APC is probably buggy and nobody has time to update this old plugin.
It could be that Dev Site and Production Site cannot use APC(even though I added different prefix).
I tried removing plugins, but that did not help. I'll update as soon as I can test more.
Asked my admin to add Xcache and Memcached to see if I can switch to those.
--------- APRIL-28 UPDATE --- TURNING OFF APC DID NOT HELP ------------
Looks like APC is not the cause. Although it did lower number of clients it was happening to.
I have moved to Memcache and it has the same issue.
So it seems like I'll have to pick apart the whole checkout and maybe go back to /base version of it just to make sure there is no weird errors in custom theme code.
--------- JUNE 7 --- SWITCHING RAM MODULES DID NOT HELP ------------
We have tried to switch RAM modules and add more memory (32GB) to the server.
We are still getting this error.
I'm going to get a VPS server from Godaddy and see if I can reproduce it on another server.
Maybe it's the messed up Server environment? (Apache, PHP)?