I want to call a PHP file using ajax where in that PHP i will place order by the ajax call. But it throws error while i am using app/Mage.php from that file
I got the same error message. The solution was different. I forgot to give the permission on the magento folder to the Apache.
chown -R apache:apache magento