Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
Call to member function getSku() on a non-object FATAL ERROR! 
 
Jeremiah
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2008-01-10
 

I have come across a bizarre error in Magento shop and despite my inquiries online, it appears no one else has ever seen this exact error.

The full text of the error message is this:

Fatal error: Cal to a member function getSku() on a non-object in /path/on/server/app/code/core/Mage/Catalog/Model/Product/Option/Type/Select.php on line 221.

Now, others have gotten this error message--it was addressed and supposedly fixed in the 1.3.1 roadmap (http://www.magentocommerce.com/roadmap/release/1.3.1). However, the circumstances of those other error messages were where they tried to add an item to the cart--if the item had custom options, it would loop to this error message.

My situation is that I have a SIMPLE item--not bundled or configurable--without any custom options. I can add it to the cart without any trouble. But if I run through the entire checkout procedure, upon placing the order, the error message appears on a white screen. The URL in the browser shows me I’m on the checkout success page.

AND, the order appears to go through perfectly, getting registered by both Magento AND Authorize.net.

I’ve tried debugging the error as far as I can go, but this one’s got me stumped.

For reference, I’m in Magento 1.3.2.4. When I first received the error I reinstalled all the core files and was still able to replicate the error.

I’m going to continue to test, but if anyone has ANY bright ideas about why this is happening, I’d love to hear your thoughts. I’m so close to launch and this thing could put the kibosh on the whole thing.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Jeremiah
Jr. Member
 
Avatar
Total Posts:  6
Joined:  2008-01-10
 

Bump. I’ve tried debugging the file in question with Firebug. Unfortunately, it isn’t a javascript issue, so I can’t parse what’s happening behind the scenes with the PHP.

Next step is to backup the db, do a completely fresh install, and see if that works.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2010 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
177591 users|1426 users currently online|277147 forum posts