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

View completed order error
 
jjmcgrath
Jr. Member
 
Total Posts:  8
Joined:  2010-03-30
 

Can anyone tell me what is going wrong here?

When logged in as a customer, the view order link on completed orders only throws the following error:

Fatal error: Call to a member function getStoreId() on a non-object in /home6/piiansys/public_html/magento/app/code/core/Mage/Shipping/Helper/Data.php on line 75

This is the part of the data.php file that contains line 75 (in bold):

protected function _getTrackingUrl($key, $model, $method = ‘getId’)
{
if (empty($model)) {
$param = array($key => ‘’); // @deprecated after 1.4.0.0-alpha3
} else if (!is_object($model)) {
$param = array($key => $model); // @deprecated after 1.4.0.0-alpha3
} else {
$param = array(
‘hash’ => Mage::helper(’core’)->urlEncode("{$key}:{$model->$method()}:{$model->getProtectCode()}")
);
}
$storeModel = Mage::app()->getStore($model->getStoreId());
return $storeModel->getUrl(’shipping/tracking/popup’, $param);
}

Thanks in advance,

Jim

 
Magento Community Magento Community
Magento Community
Magento Community
 
cheeseandrice
Sr. Member
 
Avatar
Total Posts:  120
Joined:  2009-01-05
 

just saw the answer and applied it, it is in the forums.

 
Magento Community Magento Community
Magento Community
Magento Community
 
jjmcgrath
Jr. Member
 
Total Posts:  8
Joined:  2010-03-30
 

Could you post the link?

Thanks,

James

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagentoBackups
Jr. Member
 
Total Posts:  16
Joined:  2010-02-02
Los Angeles
 

@cheeseandrice - worst post ever! why even bother? how does that help?
here’s the link: http://www.magentocommerce.com/boards/viewthread/104132/

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