2

I installed a theme in Magento 1 that is just working with onepage checkout. In general that is fine, but somehow it is not working. First, I type in my billing address/shipping address, but it stops and then it redirects me to the cart page.

However, if I debug the javascript in chrome, I get

500 (Internal Server Error)

POST

http://127.0.0.1/magento/index.php/checkout/onepage/saveBilling/

So, I was searching for the saveBilling Method in /app/code/core/Mage/Checkout/Type/onepage.php. But this function works fine and returns no error.

Any idea what next steps I could do to find that error? is it possible to extend that Method maybe? If yes, how can I look up for it?

  • enable the log. checnk the errot Turn on Logging System > Configuration > Advanced > Developer > Log Settings > Enabled => Yes – Amit Bera Oct 14 '15 at 15:35
  • it is enabled, but I dont get any logs in var/log/exception.log or var/log/system.log. – Safari Oct 14 '15 at 15:43
  • When enabling display_errors = 1 at .user.ini you got to know the error reason.then you can be able tosolve this – Visakh B Sujathan Mar 28 '17 at 4:52
4

Your shop fails while doing the ajax request, presumably there is something wrong with the quote-object that causes an exception, and if this happens, you are redirected to the cart. I have debugged such errors in the past by doing this:

  • turn on the Magento developer mode and error_reporting
  • check that [magento]/var/log/ is writable by the webserver, sometimes this means they need permissions "777"
  • I use Google Chrome, so I open the developer tools and change to the "Network" tab
  • walk through the checkout; as soon as you notice the site reloading, hit "ESC" and inspect the ajax-request you now see in the "Network"-tab. It should display an error with a stacktrace.
0

Try to enable error by enabling ini_set('display_errors', 1); at index.php then i got the error is because of the missing global variable for used instances in __construct.

run bin/magento setup:di:compile

Hope this will help you

Happy Coding!!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.