It's not duplicated one I think.
Because what I found similar is a little different from the path.
Fatal error: Call to a member function getCode() on boolean in /MagentoProject/app/code/core/Mage/Customer/Model/Session.php on line 71
The code that error message says is that line :
$namespace .= '_' . (Mage::app()->getStore()->getWebsite()->getCode());
How could I solve this? I didn't do anything…
I set the environment
- brew install redis
- brew install homebrew/php/php56
- homebrew/php/php56-mcrypt homebrew/php/php56-opcache
homebrew/php/php56-redis - Set virtual host 'ln -s
../sites-available/linkshops2 .'
Is there any specialist at magento who can help me and give me a solution?
UPDATE
the point of error is below function __construct()
public function __construct()
{
$namespace = 'customer';
if ($this->getCustomerConfigShare()->isWebsiteScope()) {
$namespace .= '_' . (Mage::app()->getStore()->getWebsite()->getCode());
}
$this->init($namespace);
Mage::dispatchEvent('customer_session_init', array('customer_session'=>$this));
}
Best Answer
Maybe this problem is with local.xml configuration's file. I had the same problem I fixed creating a new one.