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

Fatal error: Call to a member function addAttributeToSelect()
 
brians
Jr. Member
 
Avatar
Total Posts:  14
Joined:  2007-09-05
 

Hi folks,

On the front-end, I get this message:

Fatal error: Call to a member function addAttributeToSelect() on a non-object in /home/public_html/app/code/core/Mage/Sales/Model/Quote.php on line 301

Referenced fucntion:

public function getItemsCollection($loaded true)
    
{
        
if (is_null($this->_items)) {
            $this
->_items Mage::getResourceModel('sales/quote_item_collection');

            if (
$this->getId()) {
                $this
->_items->addAttributeToSelect('*')
                    ->
setQuoteFilter($this->getId());
                if (
$loaded{
                    $this
->_items->load();
                
}
                
foreach ($this->_items as $item{
                    $item
->setQuote($this);
                
}
            }
        }
        
return $this->_items;
    
}

The admin side appears to work without a problem. Any ideas or suggestions are appreciated!

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