Magento 502 Bad gateway, custom products only

I get a 502 bad gateway error, but only on custom products. The following is the ngnix log.

We run Magento 1.9.1.0 with all plugins disabled, and this error still happens with the default theme.

2015-01-23 11:49:21 UTC 2015/01/23 11:49:21 [error] 5393#0: *14926882 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 123.45.678.912, server: mywebsite.co.uk, request: "POST /checkout/cart/add/uenc/aHR0cDovL2Rldi50b3dlci1oZWFsdGguY28udWsvY2lyY3VsYXRpb24tcHJvLmh0bWw,/product/762/form_key/R7HvodwFx4M1C0hR/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/php5-fpm-usernm.sock:", host: "dev.mywebsite.co.uk", referrer: "http://dev.mywebsite.co.uk/product.html" 

PHP errors are as follows:

 child 15937 exited on signal 11 (SIGSEGV) after 29.994150 seconds from start child 16194 started 
0
source share
2 answers

(Unable to comment due to low points)

In any case, we had a problem with custom products, and this turned out to be a problem with one of our product pricing rules. We are launching the Enterprise edition, and Magento has provided us with a patch. I'm not sure if the CE version has a support team or not.

I would check the rules of your shopping cart and try to determine if one of them is the culprit by disabling the rules one at a time.

+3
source

This may be due to https://magento.stackexchange.com/questions/37395/magento-debug-trace/44112#44112

Custom products will roll 502 Bad Gateways when added to the cart. Has been associated with the Shopping Cart Rule, which included a sub-segment of products.

The following solution has been implemented:

 app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php on approx line 114: **From:** if (parent::validate($item)) { **To:** if (Mage_Rule_Model_Condition_Combine::validate($item)) { 
+3
source

Source: https://habr.com/ru/post/954367/


All Articles