I am new to Magento and this is my first project.

I am using Magento CE 1.9 I have made all the set up required. Now when I try to test by creating an order I face an issue in last step :

When I click on the "Place Order" button, it goes back to "Shopping Cart" page.

I also noticed that though the order is not placed, stock is getting reduced!

With a little bit of debugging, I understood that if there is any "failure" in Ajax requests (I use Magento's standard OnepageCheckout), it will get redirected to "checkout/cart" page.

I can see that all the details are entered - billing and shipping address, shipping method, payment method (Cash On Delivery).

In the browser console I see the error - "500 internal server error". What does this actually mean? I am testing using a logged in customer.

This is the first order I am trying to place. I really appreciate an suggestion or hints on how I can tackle this.

PS: I had a local installation of Magento community version and it worked perfectly fine.

I checked this link already : Magento Place Order on Checkout redirects back to cart

Edit: 15-Nov-2015

Here are the contents of the log file:

2015-11-13T07:18:03+00:00 ERR (3): 
exception 'Zend_Mail_Transport_Exception' with message 'Unable to send mail. ' in /home/whymrvca/public_html/magento/lib/Zend/Mail/Transport/Sendmail.php:137
Stack trace:
#0 /home/whymrvca/public_html/magento/lib/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
#1 /home/whymrvca/public_html/magento/lib/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /home/whymrvca/public_html/magento/app/code/core/Mage/Core/Model/Email/Queue.php(236): Zend_Mail->send()
#3 [internal function]: Mage_Core_Model_Email_Queue->send(Object(Mage_Cron_Model_Schedule))
#4 /home/whymrvca/public_html/magento/app/code/core/Mage/Cron/Model/Observer.php(326): call_user_func_array(Array, Array)
#5 /home/whymrvca/public_html/magento/app/code/core/Mage/Cron/Model/Observer.php(72): Mage_Cron_Model_Observer->_processJob(Object(Mage_Cron_Model_Schedule), Object(Mage_Core_Model_Config_Element))
#6 /home/whymrvca/public_html/magento/app/code/core/Mage/Core/Model/App.php(1357): Mage_Cron_Model_Observer->dispatch(Object(Varien_Event_Observer))
#7 /home/whymrvca/public_html/magento/app/code/core/Mage/Core/Model/App.php(1336): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Cron_Model_Observer), 'dispatch', Object(Varien_Event_Observer))
#8 /home/whymrvca/public_html/magento/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('default', Array)
#9 /home/whymrvca/public_html/magento/cron.php(77): Mage::dispatchEvent('default')
#10 {main}

I have searched for this exact error, none of the solutions worked for me. I even tried disabling the SMTP send email settings in Magento backend, but it did not help.

SMTP settings are as below :

Host : localhost port : 25

  • 1
    Check your apache/webserver logs for the 500 error (if applicable), also good to check your magento var/log/system.log and exception.log
    – MW Millar
    Commented Oct 30, 2015 at 10:53
  • What are the contents of your log files ? Please add them with the question.
    – Prateek
    Commented Oct 30, 2015 at 10:53
  • Hello both, I have added the contents of the log file to the question. Please help me. Thank you very much! Commented Nov 15, 2015 at 12:25
  • After checking the exception.log and scratching my head around it for long, I figured out that one of my custom modules was the culprit. I am not sure why, but it worked perfectly with my local installation but failed on the project installation. @kaska I would want to accept your comment as answer for guiding me to check exception.log which had never occurred to me. Not sure how I can do that... Commented Dec 4, 2015 at 3:06

1 Answer 1


Check your apache/webserver logs for the 500 error (if applicable), also good to check your magento var/log/system.log and exception.log

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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