1

When I try to print shipment I get this error:

Fatal error: Call to a member function getParentItem() on null in /public_html/includes/src/Mage_Sales_Model_Order_Pdf_Shipment.php on line 121

Please help me to solve this.

  • Can you try recompiling under System > Tools > Compilation ? – Raphael at Digital Pianism Jun 7 '16 at 9:54
  • Yes tried but its not working @RaphaelatDigitalPianism – Jatin Raikwar Jun 7 '16 at 9:59
  • 1
    What are you trying to print? Does it work for other pdf types? Do you have any custom product types or extensions that change product behaviour? – Kristof at Fooman Jun 7 '16 at 10:01
  • I am trying to print shipment , all others prints are working @KristofatFooman – Jatin Raikwar Jun 7 '16 at 10:05
  • This error indicates your code is trying to execute some method in a item which is not well registered in your database. A corrupt database is a really big problem, specially if it involves database sales related tables. This happens with a concrete shipment, or it is a general problem? – Raul Sanchez Jun 7 '16 at 10:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.