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.
- The topic ‘Error with get_items();?’ is closed to new replies.