Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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