Title: Error with get_items();?
Last modified: November 14, 2019

---

# Error with get_items();?

 *  Resolved [peakplex](https://wordpress.org/support/users/peakplex/)
 * (@peakplex)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-with-get_items/)
 * Hello,
 * I have an issue with WooCommerce sending new order notifications and potentially
   all emails. I have followed the “Email FAQ” page but still unable to resolve 
   the issue.
 * The website uses PHP 7.0 and the latest WordPress version. The status of new 
   orders are successfully marked as “Processing”, but a “New Order” email is not
   sent to the site’s administrator, but they do receive one from Paypal (Paypal
   Checkout is the gateway).
 * Below are the errors shown when I try to “Resend the New Order Notification” 
   via the back office:
 * Warning: Missing argument 2 for pp_add_wc_order_email_images(), called in /home/
   bridgeness/public_html/wp-includes/class-wp-hook.php on line 290 and defined 
   in /home/bridgeness/public_html/wp-content/themes/bridgeness-ceramics/functions.
   php on line 215
 * Notice: Undefined variable: order in /home/bridgeness/public_html/wp-content/
   themes/bridgeness-ceramics/functions.php on line 221
 * Notice: Undefined variable: order in /home/bridgeness/public_html/wp-content/
   themes/bridgeness-ceramics/functions.php on line 222
 * Fatal error: Uncaught Error: Call to a member function get_items() on null in/
   home/bridgeness/public_html/wp-content/themes/bridgeness-ceramics/functions.php:
   222 Stack trace: #0 /home/bridgeness/public_html/wp-includes/class-wp-hook.php(
   290): pp_add_wc_order_email_images(‘\t<tr class=”ord…’) #1 /home/bridgeness/public_html/
   wp-includes/plugin.php(206): WP_Hook->apply_filters(‘\t<tr class=”ord…’, Array)#
   2 /home/bridgeness/public_html/wp-content/plugins/woocommerce/includes/wc-template-
   functions.php(3190): apply_filters(‘woocommerce_ema…’, ‘\t<tr class=”ord…’, Object(
   WC_Order)) #3 /home/bridgeness/public_html/wp-content/plugins/woocommerce/templates/
   emails/email-order-details.php(56): wc_get_email_order_items(Object(WC_Order),
   Array) #4 /home/bridgeness/public_html/wp-content/plugins/woocommerce/includes/
   wc-core-functions.php(249): include(‘/home/bridgenes…’) #5 /home/bridgeness/public_html/
   wp-content/plugins/woocommerce/includes/class-wc-emails.php(415): wc_get_template(’
   emails/email-or…’, Array) #6 /home/brid in /home/bridgeness/public_html/wp-content/
   themes/bridgeness-ceramics/functions.php on line 222
    There has been a critical
   error on your website. Please check your site admin email inbox for instructions.
    -  This topic was modified 6 years, 6 months ago by [peakplex](https://wordpress.org/support/users/peakplex/).
      Reason: Full error message not showing

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [peakplex](https://wordpress.org/support/users/peakplex/)
 * (@peakplex)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-with-get_items/#post-12137550)
 * Any help?
 *  Thread Starter [peakplex](https://wordpress.org/support/users/peakplex/)
 * (@peakplex)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-with-get_items/#post-12142959)
 * Still waiting for any help if possible?
 *  Plugin Support [Fernando a11n](https://wordpress.org/support/users/fhaps/)
 * (@fhaps)
 * Automattic Happiness Engineer
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-with-get_items/#post-12165869)
 * > I have followed the “Email FAQ” page but still unable to resolve the issue.
 * Can you share more details about what you found out when following those steps?
   For example, after installing the WP Mail Logging plugin, are the emails recorded
   in that log, or not?
 * Given that you are receiving critical errors, I wouldn’t rule out the possibility
   of this being caused by a conflict. To verify or rule that out, here’s what I
   would suggest:
 * 1. Switch the theme to the free [Storefront](https://www.woocommerce.com/storefront/)
   theme.
 * 2. Deactivate all the plugins except for WooCommerce and check if the issue persists.
   If the problem is resolved then please move on to the next step.
 * 3. Activate features one by one while testing for the issue, until you find the
   one that is causing this behavior.
 * I recommend that these steps are taken on a staging site, which is a clone of
   your live site that you can modify without risking making any permanent damage
   to your live site. You can create it using a plugin like [WP-Staging](https://wordpress.org/plugins/wp-staging/).
   This plugin lets you copy and redeploy a WordPress site with minimal work.
 * Hopefully this helps!
 *  Plugin Support [Fernando a11n](https://wordpress.org/support/users/fhaps/)
 * (@fhaps)
 * Automattic Happiness Engineer
 * [6 years, 6 months ago](https://wordpress.org/support/topic/error-with-get_items/#post-12190433)
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Error with get_items();?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Fernando a11n](https://wordpress.org/support/users/fhaps/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/error-with-get_items/#post-12190433)
 * Status: resolved