• Resolved tarkana

    (@tarkana)


    Hello,

    After a few days of oddly low sales activity, a customer called and informed us about difficulty in checking out. They would place and order and get an internal server error, and when they tried again, it would tell them an account already exists with that username. The order wasn’t going through, but the account was still being created. It turned out that no new customers could check out – only existing ones. Turning off automatic user registration was a temporary solution, but undesirable as it affects the Authorize.net CIM.

    After updating both the gateway plugin and Woocommerce, as well as the theme, and deactivating a bunch of plugins in case any were interfering, it turned out that deactivating the new order and new account email that are automatically sent upon a new customer order fixed it. I had made sure that there were no saved theme templates and any snippets affecting email were off. Tried turning off our mailgun plugin too, but that did not suffice.

    The problem is not with the general wp mail function, as others work just fine. Even a customer manager plugin meant to work with woocommerce that has a built-in emailer in the plugin works just fine using the base template. However, if I try to “re”send the new order confirmation, it doesn’t crash, but it is never sent. And if I open an order and try to select “Email invoice/order details to customer” I get the following error:

    “The site is experiencing technical difficulties. Please check your site admin email inbox for instructions.”

    Other emails in WP are working, but if I turn the WC emails on that would occur with a new order, no one new can place an order at all. I can’t figure out what caused woocommerce emails to sudden;y stop working, but the issue can be localized to this.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Perhaps your host’s PHP error log and enabling WordPress’s would give some clues to what error is occurring: https://www.wpbeginner.com/wp-tutorials/how-to-set-up-wordpress-error-logs-in-wp-config/

    Might also be worth investigating bumping up your PHP memory limit.

    And as a band-aid, I wonder if changing woocommerce_defer_transactional_emails and/or woocommerce_allow_send_queued_transactional_email would make any difference.

    Thread Starter tarkana

    (@tarkana)

    PHP limits have been set high for quite a while. I would need to wait for a good off-hour to try WP DEBUG as I generally can’t have it running in debug mode.

    What would be the proper way to try those functions/filters? Set them to false? If anything, I would have guessed the emails not being deferred would be the cause of the problem, but I guess there’s no rule that says it has to be intuitive.

    Thank you.

    Hello,
    i deleted the new files on ftp and installed again , worked

    Thanks

    Thread Starter tarkana

    (@tarkana)

    @tim-forster were you having the same problem I am?

    And what did you delete? the whole woo-commerce plugin? anything beside that?

    Thanks

    > If anything, I would have guessed the emails not being deferred would be the cause of the problem, but I guess there’s no rule that says it has to be intuitive.

    Yeah, I was thinking that maybe setting woocommerce_defer_transactional_emails to true would help, and if that still caused problems when it tried to send the queued mail, you could temporarily set woocommerce_allow_send_queued_transactional_email to false while you looked for the source of the problem.

    I was originally thinking you could use woocommerce_allow_send_queued_transactional_email to temporarily delay sending of the emails, but after digging into the code (my notes if you’re interested), it doesn’t look like it will let you resume sending the mail later. So it’s probably only worth having setting woocommerce_defer_transactional_emails to true.

    Hey @tarkana,

    You can also go to WooCommerce > Status > Logs and view any fatal error logs that match the time/date of the trouble. That can often point more specifically in the codebase where the issue is.

    If you see any, copy them and paste it here in the forum so we can take a look too.

    Thanks,

    Hello @tarkana,

    It’s been a while since we last hear from you. Hopefully, that means you’ve been able to fix this. I’m going to close this topic now, but if you still have trouble, please open up a new one and we’ll be happy to help you out.

    Cheers,

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

The topic ‘Woocommerce Emails breaking orders’ is closed to new replies.