Magento Forum

getiing fatal error while login
 
adityaunhale
Jr. Member
 
Total Posts:  27
Joined:  2010-06-15
 

I am geting following error while login

Fatal error: Call to a member function setWebsiteId()

magento version 1.4.1.0

please help

Aditya

 
Magento Community Magento Community
Magento Community
Magento Community
 
MageFam
Member
 
Avatar
Total Posts:  71
Joined:  2010-11-27
Minneapolis, USA
 

Please check your customer file and make sure that you are using the following code or not.

$customer->setWebsiteId(Mage::app()->getWebsite()->getId());
 
Magento Community Magento Community
Magento Community
Magento Community
 
adityaunhale
Jr. Member
 
Total Posts:  27
Joined:  2010-06-15
 

yes its there

 
Magento Community Magento Community
Magento Community
Magento Community
 
MageFam
Member
 
Avatar
Total Posts:  71
Joined:  2010-11-27
Minneapolis, USA
 

I think user is not assigned to any store/website that\’s why you are getting problem.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top