Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/240.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 对非对象调用成员函数getCollection()以加载magento中的模型_Php_Magento_Magento 1.7 - Fatal编程技术网

Php 对非对象调用成员函数getCollection()以加载magento中的模型

Php 对非对象调用成员函数getCollection()以加载magento中的模型,php,magento,magento-1.7,Php,Magento,Magento 1.7,我在加载存储模块的Magento中遇到错误 /** @var $websiteCollection Mage_Core_Model_Store */ $storeCollection = Mage::getModel('core/store')->getCollection() ->initCache($this->getCache(), 'app', array(Mage_Core_Model_Store::CACHE_TAG)) ->setLoadDe

我在加载存储模块的Magento中遇到错误

/** @var $websiteCollection Mage_Core_Model_Store */
$storeCollection = Mage::getModel('core/store')->getCollection()
    ->initCache($this->getCache(), 'app', array(Mage_Core_Model_Store::CACHE_TAG))
    ->setLoadDefault(true);
而且我越来越高兴了

致命错误:在第20379行的/var/www/html/includes/src/_default.php中的非对象上调用成员函数getCollection()

当我试图调用模块时,它返回false

var_dump(get_class(Mage::getModel('core/store')));exit;

如何修复它?

我猜
('core/store')
你确定这是正确的吗,资本化等等?@James,是的,它是正确的。这是工作,但经过几天没有任何修改,它显示了这个错误。