• Resolved jojojijijojo

    (@jojojijijojo)


    Hi,

    Thanks for the great plugin, I have been using for a while now.

    Lately I’m having an issue sending test emails.
    When I click on send email, it never sends anything, not even spam.

    Browser console shows the following error”[Error] Failed to load resource: the server responded with a status of 500 () (admin-ajax.php, line 0)”

    proxy_error_log shows the following trace error ”
    Stack trace:
    #0 /var/www/vhosts/xxx.com/httpdocs/wp-content/plugins/woo-cart-abandonment-recovery/modules/cart-abandonment/class-cartflows-ca-cart-abandonment.php(1623): Cartflows_Ca_Cart_Abandonment->check_if_already_purchased_by_email_product_ids(Object(stdClass), Array)
    #1 /var/www/vhosts/xxx.com/httpdocs/wp-content/plugins/woo-cart-abandonment-recovery/modules/cart-abandonment/class-cartflows-ca-cart-abandonment.php(147): Cartflows_Ca_Cart_Abandonment->send_email_templates(Object(stdClass), true)
    #2 /var/www/vhosts/xxx.com/httpdocs/wp-includes/class-wp-hook.php(286): Cartflows_Ca_Cart_Abandonment->send_preview_email(”)
    #3 /var/www/vhosts/xxx.com/httpdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #4 /v” while reading response header from upstream, client: 172.68.130.32, server: xxx.com, request: “POST /wp-admin/admin-ajax.php HTTP/1.1”, upstream: “fastcgi://unix:///var/www/vhosts/system/xxx.com/php-fpm.sock:”, host: “xxx.com”, referrer: “https://xxx.com/wp-admin/admin.php?page=woo-cart-abandonment-recovery&action=email_tmpl&sub_action=edit_email_tmpl&id=4&_wpnonce=4ca5f85515″

    Im using cloudflare if that helps.

    • This topic was modified 5 years, 4 months ago by jojojijijojo.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support CartFlows Team

    (@cartflows)

    Hello @jojojijijojo,

    We are unable to reproduce this issue from our end.

    Can you please open a support ticket here so we can investigate more at this issue?

    Looking forward to hearing from you.

    Thread Starter jojojijijojo

    (@jojojijijojo)

    Here is the exact line of code that causes the crash
    ‘ [error] 12068#0: *385119 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to a member function get_id() on bool in /var/www/vhosts/***.com/httpdocs/wp-content/plugins/woo-cart-abandonment-recovery/modules/cart-abandonment/class-cartflows-ca-cart-abandonment.php:518
    Stack trace:’

    Hope this helps.

    • This reply was modified 5 years, 4 months ago by jojojijijojo.
    Thread Starter jojojijijojo

    (@jojojijijojo)

    And a more detailed response from the console when inspecting admin-ajax.php

    Summary
    URL: https://.com/wp-admin/admin-ajax.php
    Status: 500
    Source: Network
    Address: 1x.xx.x9.29:443
    Initiator: 
    load-scripts.php:4:26433
    
    Request
    :method: POST
    :scheme: https
    :authority: .com
    :path: /wp-admin/admin-ajax.php
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    Accept: */*
    Accept-Language: en-us
    Accept-Encoding: gzip, deflate, br
    Host: .com
    Origin: https://.com
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Safari/605.1.15
    Connection: keep-alive
    Referer: https://.com/wp-admin/admin.php?page=woo-cart-abandonment-recovery&action=email_tmpl&sub_action=edit_email_tmpl&id=1&_wpnonce=9a4420c048
    Content-Length: 2176
    Cookie: cookie stuff here
    X-Requested-With: XMLHttpRequest
    
    Response
    :status: 500
    Content-Type: text/html; charset=UTF-8
    Access-Control-Allow-Origin: https://.com
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Referrer-Policy: strict-origin-when-cross-origin
    Cache-Control: no-transform, no-cache, no-store, must-revalidate
    Date: Fri, 15 Nov 2019 11:14:35 GMT
    Access-Control-Allow-Credentials: true
    X-Content-Type-Options: nosniff
    X-Frame-Options: SAMEORIGIN
    x-powered-by: PHP/7.3.11
    Server: cloudflare
    cf-cache-status: DYNAMIC
    x-robots-tag: noindex
    expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    cf-ray: 5360cd5dda35d3cf-JIB
    
    Request Data
    MIME Type: application/x-www-form-urlencoded; charset=UTF-8
    email_subject: Re: About your order
    email_body: <p>stuff in here</p>
    email_send_to: @hotmail.com
    action: wcf_ca_preview_email_send
    security: 9a4420c048
    
    Thread Starter jojojijijojo

    (@jojojijijojo)

    Seems like problem is solved when sending to another test email. Definitely a bug but I can live with it.

    Plugin Support CartFlows Team

    (@cartflows)

    Hello @jojojijijojo,

    Thank you for reporting to us.

    We aren’t able to reproduce this issue, but we will definitely look into it and if we found some issue we will release the fix in the next update.

    Thank You!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘500() error code’ is closed to new replies.