Magento Expert Forum - Improve your Magento experience

Results 1 to 2 of 2

HELP - Cannot print shipment invoice

  1. #1
    New member
    Join Date
    Sep 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation 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

    View more threads in the same category:


  2. #2
    New member
    Join Date
    Sep 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'm having the same problem.

    I'm using the Magento Recurring Profiles with Paypal, but after making payment in paypal, the system returns to the store and the following error is displayed.

    Fatal error: Call to a member function getMethodInstance() on a non-object in /www/app/code/core/Mage/Payment/Helper/Data.php on line 119

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •