I install magento 1.9.0.0 and copy to my xampp htdocts when I run localhost/magento this error shows,i've done the solutions but it didn't work.
Fatal error: Call to a member function getModelInstance() on a non-object in
/Applications/XAMPP/xamppfiles/htdocs/magento/app/Mage.php on line 463
Here is the code script:
public static function getModel($modelClass = '', $arguments = array())
{
return self::getConfig()->getModelInstance($modelClass, $arguments);
}
In case you are getting this error while trying to access Magento outside in a script
The solution given here should be considered first before playing with permissions.
Mage::init(); // 1.5+
Mage::app(); // (pretty much anything) below 1.5
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With