• Resolved peakplex

    (@peakplex)


    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 4 years, 5 months ago by peakplex. Reason: Full error message not showing
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter peakplex

    (@peakplex)

    Any help?

    Thread Starter peakplex

    (@peakplex)

    Still waiting for any help if possible?

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    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 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. This plugin lets you copy and redeploy a WordPress site with minimal work.

    Hopefully this helps!

    Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    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.