我安装 magento 1.9.0.0 并在运行 localhost/magento 时复制到我的 xampp htdocts 显示此错误,我已经完成了解决方案,但它没有用。
Fatal error: Call to a member function getModelInstance() on a non-object in
/Applications/XAMPP/xamppfiles/htdocs/magento/app/Mage.php on line 463
这是代码脚本:
public static function getModel($modelClass = '', $arguments = array())
{
return self::getConfig()->getModelInstance($modelClass, $arguments);
}
最佳答案
问题与某些写权限有关。
为以下文件夹设置写入权限 app/etc、var 和 media。
cd /xampp-folde/htdocs/magento
chmod -R 777 app/etc
chmod -R 777 var
chmod -R 777 media
关于php - 第 463 行的 fatal error : Call to a member function getModelInstance() on a non-object in/Applications/XAMPP/xamppfiles/htdocs/magento/app/Mage. php,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25175087/