[Solved] Call to a member function getModelInstance() on a non-object - Magento 1.9.2.3
I ran into this error after installing Magento 1.9.2.3. with XAMPP on my MacPro. Below is the exact error that was displayed.
Fatal error: Call to a member function getModelInstance() on a non-object in /Applications/XAMPP/xamppfiles/htdocs/magento/app/Mage.php on line 463
Apparently this is permission issue and this is the funny method that is giving the problem.
public static function getModel($modelClass = '', $arguments = array())
{
return self::getConfig()->getModelInstance($modelClass, $arguments);
}
Solving this is simple, it is permission issues. Find below the permissions you need to give to solve it
cd /xampp-folder/htdocs/magento
chmod -R 777 app/etc
chmod -R 777 var
chmod -R 777 media
Hope this is helpful.