• dacrosby

    (@dacrosby)


    Hi,

    I ran into a problem where Post SMTP plugin appears to be causing an error on store checkout. Customer checks out, payment is processed, admins are notified and then apparently the alowed memry size is hit before the customer notification goes out. Since there was an error, WooCommerce displays “Internal Server Error” on the customer’s page and checkout doesn’t advance to the Thank You page (even tough payment has processed).
    It’s only about 4 seconds from hitting Confirm Payment to the error showing, so I don’t see why how we’d be hitting the memory limit.
    I can disable this plugin and checkout proceeds correctly.

    WordPress v4.9.5
    WooCommerce v3.3.5
    Post SMPT v1.8.9.

    Here’s the error log entry, maybe someone can help figure out what’s hapening here.

    
    [03-May-2018 22:09:37 America/Chicago] PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 5167 bytes) in /wp_path/wp-includes/wp-db.php on line 1889
    [03-May-2018 22:09:37 America/Chicago] PHP Stack trace:
    [03-May-2018 22:09:37 America/Chicago] PHP   1. {main}() /wp_path/index.php:0
    [03-May-2018 22:09:37 America/Chicago] PHP   2. require() /wp_path/index.php:17
    [03-May-2018 22:09:37 America/Chicago] PHP   3. require_once() /wp_path/wp-blog-header.php:19
    [03-May-2018 22:09:37 America/Chicago] PHP   4. do_action() /wp_path/wp-includes/template-loader.php:12
    [03-May-2018 22:09:37 America/Chicago] PHP   5. WP_Hook->do_action() /wp_path/wp-includes/plugin.php:453
    [03-May-2018 22:09:37 America/Chicago] PHP   6. WP_Hook->apply_filters() /wp_path/wp-includes/class-wp-hook.php:310
    [03-May-2018 22:09:37 America/Chicago] PHP   7. call_user_func_array:{/wp_path/wp-includes/class-wp-hook.php:286}() /wp_path/wp-includes/class-wp-hook.php:286
    [03-May-2018 22:09:37 America/Chicago] PHP   8. WC_AJAX::do_wc_ajax() /wp_path/wp-includes/class-wp-hook.php:286
    [03-May-2018 22:09:37 America/Chicago] PHP   9. do_action() /wp_path/wp-content/plugins/woocommerce/includes/class-wc-ajax.php:78
    [03-May-2018 22:09:37 America/Chicago] PHP  10. WP_Hook->do_action() /wp_path/wp-includes/plugin.php:453
    [03-May-2018 22:09:37 America/Chicago] PHP  11. WP_Hook->apply_filters() /wp_path/wp-includes/class-wp-hook.php:310
    [03-May-2018 22:09:37 America/Chicago] PHP  12. call_user_func_array:{/wp_path/wp-includes/class-wp-hook.php:286}() /wp_path/wp-includes/class-wp-hook.php:286
    [03-May-2018 22:09:37 America/Chicago] PHP  13. WC_AJAX::checkout() /wp_path/wp-includes/class-wp-hook.php:286
    [03-May-2018 22:09:37 America/Chicago] PHP  14. WC_Checkout->process_checkout() /wp_path/wp-content/plugins/woocommerce/includes/class-wc-ajax.php:419
    [03-May-2018 22:09:37 America/Chicago] PHP  15. WC_Checkout->process_order_payment() /wp_path/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:986
    [03-May-2018 22:09:37 America/Chicago] PHP  16. WC_Gateway_COD->process_payment() /wp_path/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:804
    [03-May-2018 22:09:37 America/Chicago] PHP  17. WC_Order->update_status() /wp_path/wp-content/plugins/woocommerce/includes/gateways/cod/class-wc-gateway-cod.php:183
    [03-May-2018 22:09:37 America/Chicago] PHP  18. WC_Order->save() /wp_path/wp-content/plugins/woocommerce/includes/class-wc-order.php:304
    [03-May-2018 22:09:37 America/Chicago] PHP  19. WC_Order->status_transition() /wp_path/wp-content/plugins/woocommerce/includes/class-wc-order.php:226
    [03-May-2018 22:09:37 America/Chicago] PHP  20. do_action() /wp_path/wp-content/plugins/woocommerce/includes/class-wc-order.php:333
    [03-May-2018 22:09:37 America/Chicago] PHP  21. WP_Hook->do_action() /wp_path/wp-includes/plugin.php:453
    [03-May-2018 22:09:37 America/Chicago] PHP  22. WP_Hook->apply_filters() /wp_path/wp-includes/class-wp-hook.php:310
    [03-May-2018 22:09:37 America/Chicago] PHP  23. call_user_func_array:{/wp_path/wp-includes/class-wp-hook.php:286}() /wp_path/wp-includes/class-wp-hook.php:286
    [03-May-2018 22:09:37 America/Chicago] PHP  24. WC_Emails::send_transactional_email() /wp_path/wp-includes/class-wp-hook.php:286
    [03-May-2018 22:09:37 America/Chicago] PHP  25. do_action_ref_array() /wp_path/wp-content/plugins/woocommerce/includes/class-wc-emails.php:150
    [03-May-2018 22:09:37 America/Chicago] PHP  26. WP_Hook->do_action() /wp_path/wp-includes/plugin.php:515
    [03-May-2018 22:09:37 America/Chicago] PHP  27. WP_Hook->apply_filters() /wp_path/wp-includes/class-wp-hook.php:310
    [03-May-2018 22:09:37 America/Chicago] PHP  28. call_user_func_array:{/wp_path/wp-includes/class-wp-hook.php:286}() /wp_path/wp-includes/class-wp-hook.php:286
    
    [03-May-2018 22:09:37 America/Chicago] PHP  29. WC_Email_New_Order->trigger() /wp_path/wp-includes/class-wp-hook.php:286
    [03-May-2018 22:09:37 America/Chicago] PHP  30. WC_Email->send() /wp_path/wp-content/plugins/woocommerce/includes/emails/class-wc-email-new-order.php:92
    [03-May-2018 22:09:37 America/Chicago] PHP  31. wp_mail() /wp_path/wp-content/plugins/woocommerce/includes/emails/class-wc-email.php:552
    
    [03-May-2018 22:09:37 America/Chicago] PHP  32. PostmanWpMail->send() /wp_path/wp-content/plugins/post-smtp/Postman/PostmanWpMailBinder.php:116
    [03-May-2018 22:09:37 America/Chicago] PHP  33. PostmanWpMail->sendMessage() /wp_path/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php:55
    [03-May-2018 22:09:37 America/Chicago] PHP  34. PostmanEmailLogService->writeSuccessLog() /wp_path/wp-content/plugins/post-smtp/Postman/PostmanWpMail.php:212
    [03-May-2018 22:09:37 America/Chicago] PHP  35. PostmanEmailLogService->writeToEmailLog() /wp_path/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php:79
    [03-May-2018 22:09:37 America/Chicago] PHP  36. PostmanEmailLogPurger->__construct() /wp_path/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php:154
    
    [03-May-2018 22:09:37 America/Chicago] PHP  37. WP_Query->__construct() /wp_path/wp-content/plugins/post-smtp/Postman/Postman-Email-Log/PostmanEmailLogService.php:281
    [03-May-2018 22:09:37 America/Chicago] PHP  38. WP_Query->query() /wp_path/wp-includes/class-wp-query.php:3336
    [03-May-2018 22:09:37 America/Chicago] PHP  39. WP_Query->get_posts() /wp_path/wp-includes/class-wp-query.php:3230
    [03-May-2018 22:09:37 America/Chicago] PHP  40. update_post_caches() /wp_path/wp-includes/class-wp-query.php:2993
    [03-May-2018 22:09:37 America/Chicago] PHP  41. update_postmeta_cache() /wp_path/wp-includes/post.php:5902
    [03-May-2018 22:09:37 America/Chicago] PHP  42. update_meta_cache() /wp_path/wp-includes/post.php:5919
    [03-May-2018 22:09:37 America/Chicago] PHP  43. wpdb->get_results() /wp_path/wp-includes/meta.php:825
    [03-May-2018 22:09:37 America/Chicago] PHP  44. wpdb->query() /wp_path/wp-includes/wp-db.php:2488
    [03-May-2018 22:09:37 America/Chicago] PHP  45. mysqli_fetch_object() /wp_path/wp-includes/wp-db.php:1889
    
    • This topic was modified 8 years ago by dacrosby.
Viewing 3 replies - 1 through 3 (of 3 total)
  • shinerweb

    (@shinerweb)

    Out of interest, what memory limits do you have set in the WP ini file and on the server itself?

    131Mb seems to be a weird figure to run out of memory at. (i.e. it’s not set to 128Mb, so I’m guessing you have it set to 256Mb which then begs the question, why is it throwing a memory error at 131Mb + 5167bytes.

    What type of hosting is this on?
    What version of PHP?
    What version of SQL?

    yehudah

    (@yehudah)

    If I can make a guess the email log has a lot of records.

    Did you set a custom number for the email log ?

    Thread Starter dacrosby

    (@dacrosby)

    PHP v5.6.33
    MySQL v5.6.39
    “GoDaddy “Enterprise Busines Hosting”, Apache, cPanel

    other phpinfo() :
    PHP memory limit 128M
    PHP exec time 30
    PHP post max size 8MB
    Max Upload 2MB

    Post SMTP has logging enabled:
    max Log entries: 250
    Max Transcript Size: 128
    Under Misc settings, PHP log level is set to Error and Delivery Mode is set to “Log email and Send”

    I did recently switch from the old plugin, POSTMAN SMTP – would that have left some residual isues? I noticed most of the settings copied over automatically (e.g. API ley, log amounts etc)

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

The topic ‘500 Error On Checkout’ is closed to new replies.