I have suddely an error on my site and i search for more than a week so i need help
Website : www.stempelmaker.be
Fatal error: Call to a member function getCode() on a non-object in /home/oelie1/domains/stempelmaker.be/public_html/app/code/core/Mage/Core/Model/App.php on line 707
this is on the line
return $this->_stores[$this->_groups[$group]->getDefaultStoreId()]->getCode();
from the group
/**
* Retrieve store code or null by store group
*
* @param int $group
* @return string|null
*/
protected function _getStoreByGroup($group)
{
if (!isset($this->_groups[$group])) {
return null;
}
if (!$this->_groups[$group]->getDefaultStoreId()) {
return null;
}
return $this->_stores[$this->_groups[$group]->getDefaultStoreId()]->getCode();
}
Thank you in advance