gpt4 book ai didi

php - 第 463 行的 fatal error : Call to a member function getModelInstance() on a non-object in/Applications/XAMPP/xamppfiles/htdocs/magento/app/Mage. php

转载 作者:可可西里 更新时间:2023-10-31 22:52:41 26 4
gpt4 key购买 nike

我安装 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com