I'm having a problem with a Magento installation that I hope someone can help me with.
I suddenly started getting the following error message when I accessed the site:
Fatal error: Class name must be a valid object or a string in /app/code/core/Mage/Core/Model/Resource.php on line 215
The function that this refers to is:
/**
* 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];
}
This is line 215:
$this->_connectionTypes[$type] = new $typeClass();
I've searched for someone with a similar issue but not had any luck so i'm stuck and really need to get this resolved
Can anyone help?
echo $typeClass; exit;
and tell us what is echoed;