HELP - Cannot print shipment invoice
Hello,
I’ve got an issue with Magento 1.7.0.
When i try to print a selected invoice from the “Sales -> Shipment” page, I get the following error:
Fatal error: Call to a member function getMethodInstance() on a non-object in /home/livinggo/public_html/app/code/core/Mage/Payment/Helper/Data.php on line 119
The code which the error is referring to:
public function getInfoBlock(Mage_Payment_Model_Info $info)
{
$blockType = $info->getMethodInstance()->getInfoBlockType(); <- This is line 119
if ($this->getLayout()) {
$block = $this->getLayout()->createBlock($blockType);
}
else {
$className = Mage::getConfig()->getBlockClassName($blockType);
$block = new $className;
}
$block->setInfo($info);
return $block;
}
I’ve read several articles saying that it has something to do with a deleted payment method.
I cannot recall any payment methods that I might have deleted in the past.
Please help, thanks in advance!
Kind regards,
Paul