我遇到了Magento安装的问题,我希望有人可以帮助我.
我访问该网站时突然开始收到以下错误消息:
Fatal error: Class name must be a valid object or a string in /app/code/core/Mage/Core/Model/Resource.php on line 215
这指的功能是:
/**
* Get connection type instance
*
* Creates new if doesn't exist
*
* @param string $type
* @return Mage_Core_Model_Resource_Type_Abstract
*/
public function getConnectionTypeInstance($type)
{
if (!isset($this->_connectionTypes[$type])) {
$config = Mage::getConfig()->getResourceTypeConfig($type);
$typeClass = $config->getClassName();
$this->_connectionTypes[$type] = new $typeClass();
}
return $this->_connectionTypes[$type];
}
这是第215行:
$this->_connectionTypes[$type] = new $typeClass();
我已经搜索过有类似问题的人,但没有运气,所以我被困住了,真的需要解决这个问题
有人可以帮忙吗?