Magento Questions Answered By Magento Experts

 

Sign in | Signup

4 Answers

PHP Fatal error: Call to a member function getAllItems() on a non-object in …template/email/order/items.phtml on line 38

Asked by: justin 2415 views , , ,
Questions

Anyone know what this error message is?? I am getting it a few times a day:

 

[26-Aug-2010 11:12:51] PHP Fatal error:  Call to a member function getAllItems() on a non-object in /home/happycow/public_html/app/design/frontend/default/MG03C20015/template/email/order/items.phtml on line 38

4 Answers



  1. 0 Votes Thumb up 0 Thumb down 0

    Magento Expert on Sep 04, 2010

    What’s on line 38 of that file in your theme?

    reply


  2. 0 Votes Thumb up 0 Thumb down 0

    justin on Sep 05, 2010

    Thanks for the reply mate! here it is:

    getAllItems() as $_item): ?>

    reply


  3. 0 Votes Thumb up 0 Thumb down 0

    justin on Sep 05, 2010

    sorry lost some of it above::

    <?php $i=0; foreach ($_order->getAllItems() as $_item): ?>

    reply


  4. 0 Votes Thumb up 0 Thumb down 0

    Andrew on Sep 30, 2010

    I got this as well, it occurs when I’m adding a product to my wishlist that matches a rule condition for the “Follow Up Email” extension, have you resolved this issue?

    reply

Answer Question

Please use <code> </code> tags to display code.