My Magento Verison - 1.4.1.1
I have two problems:
1) When I look at the various stages of Onepage verification (registration, billing, shipping and payment), sometimes during this process I get redirected to the cart page. No error, exception, the report is not created in var / report. I donβt know how to debug it. Are there any magazines I can find?
2) In the same Onepage Checkout process, after clicking on the order (the last step), it is redirected several times to the cart page, sends an e-mail with a message stating that the message failed to execute the command:
The amount of quotes must be collected before this operation.
To solve this problem, I commented on this line in prepareRecurringPaymentProfiles in the magento/app/code/core/Mage/Sales/Model/Quote.php , which solved the problem:
throw new Exception("Quote totals must be collected before this operation.");
I do not know if these 2 problems are related or not. But now I do not have a second problem, but I have the 1st rather frequent character. What could be the reason and how to solve it?
further update - I checked the Firebug trace, these are 500 internal server errors that sometimes appear at any stage of verification on one page. I was able to dig into savebillingaction, saveshippingaction functions in onepagecontroller.php and found that the error occurs when $ this-> getRequest () β isPost () is empty, if it is 1, then it goes forward and goes to the next step else redirects it Add to cart. No, I donβt know why it is not 1 or because ajax cannot send post data, but I checked the XHR request, Ajax sends message data every time (checked with the firebug extension). Can someone tell me what I could do next to troubleshooting. Where can I search for these Ajax prizes? Shipping.phtml (any step.phtml) has JS at the bottom, how does it call the OnePagecontroller saveshippingaction function?