Home › Forums › Basel support forum › Website Issues Not Receiving All Woocommerce Orders Emails

Website Issues Not Receiving All Woocommerce Orders Emails

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #732101

    cupflppr
    Participant

    can u please help. i’ve updated my theme and plugins and php. orders are coming and processing with stripe, PayPal and apple pay. but remdomly some never send an order email to my inbox and throws this error when i go into the woocommerce order so “resend order notification” even though the stripe payment was properly processed.

    it says there is a woocommerce update but when i update it it crashes my site and i have to recover my site from backup.

    PLEASE HELP ME.

    Attachments:
    You must be logged in to view attached files.
    #732106

    cupflppr
    Participant

    i turned off this plugin and the error still persists.

    Howdy!

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, MailerLite – WooCommerce integration.

    First, visit your website (https://phunkythreads.com/) and check for any visible issues. Next, visit the page where the error was caught (https://phunkythreads.com/wp-admin/update.php?action=activate-plugin&networkwide&plugin=woocommerce%2Fwoocommerce.php&_wpnonce=dd5852e24f) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    https://phunkythreads.com/wp-login.php?action=enter_recovery_mode&rm_token=fTmOLN5i95aDefCii2aDDI&rm_key=FgD1cEB8gcN4QI9itOWPfD

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 7.1.4
    Active theme: Basel Child (version 1.0.0)
    Current plugin: MailerLite – WooCommerce integration (version 3.1.29)
    PHP version 8.4.28

    Error Details
    =============
    An error of type E_ERROR was caused in line 187 of the file /nas/content/live/phunkythreads/wp-content/plugins/woo-mailerlite/bootstrap.php. Error message: Uncaught Error: Call to undefined function wc_print_r() in /nas/content/live/phunkythreads/wp-content/plugins/woo-mailerlite/bootstrap.php:187
    Stack trace:
    #0 /nas/content/live/phunkythreads/wp-content/plugins/woo-mailerlite/bootstrap.php(181): class@anonymous->log(‘error’, ‘run_woo_mailerl…’, Array)
    #1 /nas/content/live/phunkythreads/wp-content/plugins/woo-mailerlite/bootstrap.php(127): class@anonymous->error(‘run_woo_mailerl…’, Array)
    #2 /nas/content/live/phunkythreads/wp-includes/class-wp-hook.php(353): run_woo_mailerlite(”)
    #3 /nas/content/live/phunkythreads/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array)
    #4 /nas/content/live/phunkythreads/wp-includes/plugin.php(523): WP_Hook->do_action(Array)
    #5 /nas/content/live/phunkythreads/wp-settings.php(630): do_action(‘plugins_loaded’)
    #6 /nas/content/live/phunkythreads/wp-config.php(69): require_once(‘/nas/content/li…’)
    #7 /nas/content/live/phunkythreads/wp-load.php(50): require_once(‘/nas/content/li…’)
    #8 /nas/content/live/phunkythreads/wp-admin/admin.php(35): require_once(‘/nas/content/li…’)
    #9 /nas/content/live/phunkythreads/wp-admin/update.php(16): require_once(‘/nas/content/li…’)
    #10 {main}
    thrown

    • This reply was modified 1 week, 4 days ago by cupflppr.
    #732108

    cupflppr
    Participant

    Howdy!

    WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with your theme, Basel Child.

    First, visit your website (https://phunkythreads.com/) and check for any visible issues. Next, visit the page where the error was caught (https://phunkythreads.com/wp-admin/post.php) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    https://phunkythreads.com/wp-login.php?action=enter_recovery_mode&rm_token=mKkQ8YyrtotFVbsdvMAJJE&rm_key=tjv7EeUTQanZamKRMmEp8x

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 7.1.4
    Active theme: Basel Child (version 1.0.0)
    PHP version 8.4.27

    Error Details
    =============
    An error of type E_ERROR was caused in line 32 of the file /nas/content/live/phunkythreads/wp-content/themes/basel-child/functions.php. Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /nas/content/live/phunkythreads/wp-content/themes/basel-child/functions.php:32
    Stack trace:
    #0 /nas/content/live/phunkythreads/wp-includes/class-wp-hook.php(353): display_applied_coupons(Object(Automattic\WooCommerce\Admin\Overrides\Order), true, false, Object(WC_Email_New_Order))
    #1 /nas/content/live/phunkythreads/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(”, Array)
    #2 /nas/content/live/phunkythreads/wp-includes/plugin.php(523): WP_Hook->do_action(Array)
    #3 /nas/content/live/phunkythreads/wp-content/themes/basel-child/woocommerce/emails/admin-new-order.php(38): do_action(‘woocommerce_ema…’, Object(Automattic\WooCommerce\Admin\Overrides\Order), true, false, Object(WC_Email_New_Order))
    #4 /nas/content/live/phunkythreads/wp-content/plugins/woocommerce/includes/wc-core-functions.php(352): include(‘/nas/content/li…’)
    #5 /nas/content/live/phunkythreads/wp-content/plugins/woocommerce/includes/wc-core-functions.php(371): wc_get_template(’emails/admin-ne…’, Array, ”, ”)
    #6 /nas/content/live/phunkythreads/wp-content/plugins/woocommerce/includes/emails/class-wc-email-new-order.php(142): wc_get_template_html(’emails/admin-ne…’, Array)
    #7 /nas/content/live/phunkythreads/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(916): WC_Email_New_Order->get_content_html()
    #8 /nas/content/live/phunkythreads/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php(1218): WC_Email->get_content()
    #9 /nas/content/live/phunkythreads/wp-content/plugins/woocommerce/includes/emails/class-wc-email-new-order.php(127): WC_Email->send_notification()
    #10 /nas/content/live/phunkythreads/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-actions.php(168): WC_Email_New_Order->trigger(121408, Object(Automattic\WooCommerce\Admin\Overrides\Order), true)
    #11 /nas/content/live/phunkythreads/wp-includes/class-wp-hook.php(353): WC_Meta_Box_Order_Actions::save(121408, Object(WP_Post))
    #12 /nas/content/live/phunkythreads/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array)
    #13 /nas/content/live/phunkythreads/wp-includes/plugin.php(523): WP_Hook->do_action(Array)
    #14 /nas/content/live/phunkythreads/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-meta-boxes.php(262): do_action(‘woocommerce_pro…’, 121408, Object(WP_Post))
    #15 /nas/content/live/phunkythreads/wp-includes/class-wp-hook.php(355): WC_Admin_Meta_Boxes->save_meta_boxes(121408, Object(WP_Post))
    #16 /nas/content/live/phunkythreads/wp-includes/class-wp-hook.php(377): WP_Hook->apply_filters(NULL, Array)
    #17 /nas/content/live/phunkythreads/wp-includes/plugin.php(523): WP_Hook->do_action(Array)
    #18 /nas/content/live/phunkythreads/wp-includes/post.php(5286): do_action(‘save_post’, 121408, Object(WP_Post), true)
    #19 /nas/content/live/phunkythreads/wp-includes/post.php(5392): wp_insert_post(Array, false, true)
    #20 /nas/content/live/phunkythreads/wp-admin/includes/post.php(463): wp_update_post(Array)
    #21 /nas/content/live/phunkythreads/wp-admin/post.php(239): edit_post()
    #22 {main}
    thrown

    #732146

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hi there,

    From the error messages you shared, this looks like a plugin issue rather than a theme issue. The first fatal error comes from the MailerLite – WooCommerce integration plugin (woo-mailerlite/bootstrap.php). It calls a WooCommerce function that is not available at that point, and this is what crashes your site when you try to update or activate WooCommerce.

    Please check whether the problem still happens with a default WordPress theme:

    – Make a full backup first, or use a staging copy of your site.
    – Temporarily switch to a default theme, such as Twenty Twenty-Five, in Appearance -> Themes.
    – Try updating WooCommerce again, then place a test order or use “Resend order notification” on an existing order.

    If the error still happens with the default theme, it isn’t related to Basel, and you should contact the MailerLite plugin developers about it. If the update still fails, you can also try deactivating MailerLite, updating WooCommerce, and then updating MailerLite to its latest version.

    The second error comes from custom code in your child theme, not from Basel itself. It’s in the display_applied_coupons function on line 32 of basel-child/functions.php, and that code also runs inside the overridden basel-child/woocommerce/emails/admin-new-order.php email template. Since it fails while the new order email is being created, it may be why some order emails are never sent. Switching to the default theme will help confirm this as well.

    Let us know what you find after testing.

    Kind regards,
    XTemos Studio

    #732173

    cupflppr
    Participant

    i had already turned off mailer lite so i could get my site wirking again. but woo was still crashing it and i had to recover from backup 3 times.

    the bigger issue right now is not getting the email orders. can u please help me with this? i am worried about breaking the php file and killing my site.

    The second error comes from custom code in your child theme, not from Basel itself. It’s in the display_applied_coupons function on line 32 of basel-child/functions.php, and that code also runs inside the overridden basel-child/woocommerce/emails/admin-new-order.php email template. Since it fails while the new order email is being created, it may be why some order emails are never sent. Switching to the default theme will help confirm this as well.

    #732178

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hi there,

    Since the error comes from custom code in your child theme, the quickest and safest check is to switch to the parent Basel theme. You won’t need to edit any PHP files to do this:

    – Make a full backup of your site first, or use a staging copy if your host provides one.
    – Go to Appearance -> Themes and activate the parent Basel theme instead of Basel Child.
    – Place a test order, or open an existing order and use “Resend order notification”.

    Switching themes doesn’t change or delete any files. The custom code in basel-child/functions.php and the overridden basel-child/woocommerce/emails/admin-new-order.php email template are simply turned off while the parent theme is active. You can switch back to the child theme in Appearance -> Themes at any time.

    If order emails work with the parent Basel theme, the problem is in the child theme customizations. These include the display_applied_coupons function and the custom email template. Fixing custom child theme code isn’t covered by our theme support, so please ask the developer who added that code to update it for your current WooCommerce and PHP versions.

    If the problem still happens with the parent Basel theme, let us know and we’ll look into it further.

    Kind regards,
    XTemos Studio

    #732180

    cupflppr
    Participant

    I have a lot of customization in the theme from when it was originally built over 13 years ago. Are you telling me that just the part about the coupon code is throwing this off? Because there’s other customization that I need to help format my order emails and other functionality throughout the site. Is there anyway that you could help me troubleshoot why this one part about the coupon code is throwing this off?

    #732187

    Serg Sokhatskyi
    Keymaster
    Xtemos team

    Hi there,

    The error report you shared points to one specific spot: the display_applied_coupons function on line 32 of basel-child/functions.php. That is where the order email fails to be created, so it is very likely the cause of the missing emails. Your other customizations don’t appear in this error.

    Please do a quick check to confirm the problem really is in the child theme:

    – Make a full backup of your site, or use a staging copy if your host offers one.
    – Go to Appearance -> Themes and activate the parent Basel theme.
    – Open an order that didn’t send an email and click “Resend order notification”, or place a test order.
    – Then go back to Appearance -> Themes and activate Basel Child again.

    This won’t remove or change any of your customizations. Your child theme files stay exactly as they are and are only turned off while the parent theme is active. You can do the whole test in a few minutes and switch back right away.

    Please let us know whether the order email is sent while the parent Basel theme is active.

    Kind regards,
    XTemos Studio

Viewing 8 posts - 1 through 8 (of 8 total)