{"action":"created","issue":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/10423","repository_url":"https://api.github.com/repos/PrestaShop/PrestaShop","labels_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/10423/labels{/name}","comments_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/10423/comments","events_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/10423/events","html_url":"https://github.com/PrestaShop/PrestaShop/issues/10423","id":359903525,"node_id":"MDU6SXNzdWUzNTk5MDM1MjU=","number":10423,"title":"Order page 500 error \"FastCGI: incomplete headers (0 bytes) received from server\"","user":{"login":"willy2m","id":43242372,"node_id":"MDQ6VXNlcjQzMjQyMzcy","avatar_url":"https://avatars3.githubusercontent.com/u/43242372?v=4","gravatar_id":"","url":"https://api.github.com/users/willy2m","html_url":"https://github.com/willy2m","followers_url":"https://api.github.com/users/willy2m/followers","following_url":"https://api.github.com/users/willy2m/following{/other_user}","gists_url":"https://api.github.com/users/willy2m/gists{/gist_id}","starred_url":"https://api.github.com/users/willy2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willy2m/subscriptions","organizations_url":"https://api.github.com/users/willy2m/orgs","repos_url":"https://api.github.com/users/willy2m/repos","events_url":"https://api.github.com/users/willy2m/events{/privacy}","received_events_url":"https://api.github.com/users/willy2m/received_events","type":"User","site_admin":false},"labels":[{"id":985943967,"node_id":"MDU6TGFiZWw5ODU5NDM5Njc=","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/1.7.2.5","name":"1.7.2.5","color":"8cffda","default":false},{"id":984878331,"node_id":"MDU6TGFiZWw5ODQ4NzgzMzE=","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/FO","name":"FO","color":"444444","default":false},{"id":1026163987,"node_id":"MDU6TGFiZWwxMDI2MTYzOTg3","url":"https://api.github.com/repos/PrestaShop/PrestaShop/labels/No%20change%20required","name":"No change required","color":"cecece","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-09-13T13:46:54Z","updated_at":"2018-11-09T14:15:51Z","closed_at":"2018-09-14T10:28:01Z","author_association":"NONE","body":"\r\nError 500 \"internal server error\" when the user gets to ckeckout, next step after filling adress details. (page salesdeplata.com/order)\r\nNo matter what user, identified or not, it gets to the 500 error.\r\n\r\nWEB log gives me this error: \"FastCGI: incomplete headers (0 bytes) received from server \"/fcgi-bin-php56-fpm-ssl-salesdeplata.com\"\r\n\r\nPrestaShop version: 1.7.2.5\r\nPHP version: 5.6.32\r\n"},"comment":{"url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/comments/437371811","html_url":"https://github.com/PrestaShop/PrestaShop/issues/10423#issuecomment-437371811","issue_url":"https://api.github.com/repos/PrestaShop/PrestaShop/issues/10423","id":437371811,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzM3MTgxMQ==","user":{"login":"davideapvd","id":21243907,"node_id":"MDQ6VXNlcjIxMjQzOTA3","avatar_url":"https://avatars2.githubusercontent.com/u/21243907?v=4","gravatar_id":"","url":"https://api.github.com/users/davideapvd","html_url":"https://github.com/davideapvd","followers_url":"https://api.github.com/users/davideapvd/followers","following_url":"https://api.github.com/users/davideapvd/following{/other_user}","gists_url":"https://api.github.com/users/davideapvd/gists{/gist_id}","starred_url":"https://api.github.com/users/davideapvd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davideapvd/subscriptions","organizations_url":"https://api.github.com/users/davideapvd/orgs","repos_url":"https://api.github.com/users/davideapvd/repos","events_url":"https://api.github.com/users/davideapvd/events{/privacy}","received_events_url":"https://api.github.com/users/davideapvd/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T14:15:51Z","updated_at":"2018-11-09T14:15:51Z","author_association":"CONTRIBUTOR","body":"> Hi @khouloudbelguith ,\r\n> \r\n> I just want to thank you for all the guiding, it was a problem with the theme. I would have gotten crazy without your help\r\n> \r\n> :D\r\n\r\n@willy2m can you please describe what you do to fix this error? we have a similar error with the same dhlexpress module.\r\nfrom what I understand the module interates upon product['quantity'] from $cart->getProducts() but when we are in the /order page ['quantity'] contains the product quantities in the warehouse (and we have a lot here). So probably the module should always iterate upon ['cart_quantity'] is this correct?\r\n\r\n   /modules/dhlexpress/dhlexpress.php\r\n\r\n```\r\npublic function getCartPieces($products, $withQuantities = true)\r\n    {\r\n        $productsParam = array();\r\n        foreach ($products as $product) {\r\n            $i = 0;\r\n    -         $qty = $product['quantity'];\r\n    +         $qty = $product['cart_quantity'];\r\n              if ($withQuantities) {\r\n                    while ($i < $qty) {\r\n```"}}
{"actor":{"display_login":"davideapvd"}}