• Resolved khmubashar

    (@khmubashar)


    Hi,
    Sometimes my website gets stuck on loading, After restarting the server when I check woocommerce status there are some compatibility issue appears and in the log file, I see below fatal error.

    2020-01-31T09:25:13+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on bool in /var/www/html/wp-content/plugins/facebook-for-woocommerce/includes/fbutils.php:90
    Stack trace:
    #0 /var/www/html/wp-content/plugins/facebook-for-woocommerce/includes/fbutils.php(136): WC_Facebookcommerce_Utils::get_fb_retailer_id(false)
    #1 /var/www/html/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-events-tracker.php(359): WC_Facebookcommerce_Utils::get_fb_content_ids(false)
    #2 /var/www/html/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-events-tracker.php(412): WC_Facebookcommerce_EventsTracker->inject_purchase_event(206168)
    #3 /var/www/html/wp-includes/class-wp-hook.php(288): WC_Facebookcommerce_EventsTracker->inject_gateway_purchase_event(206168)
    #4 /var/www/html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #5 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #6 /var/www/html/wp-content/plugins/woocommerce/templates/checkout/thankyou.php(78): do_action(‘woocommerce_tha.. in /var/www/html/wp-content/plugins/facebook-for-woocommerce/includes/fbutils.php on line 90

    Please help if anyone know how to resolve it?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey there,

    Thanks for writing to us about our plugin! I apologize for the delay in getting back to you. I’m sorry to hear that the plugin isn’t working as expected. I’d be happy to help out here. 🙂

    I suspect that this is a theme or plugin compatibility issue. Have you noticed more instances of this error in the logs or do you just see the one instance?

    Does this error occur after visiting a particular page on your website?

    Thanks,

    Tamara

    Thread Starter khmubashar

    (@khmubashar)

    Hi, Thanks @skyverge for your reply,
    Now, this error is no appearing in log. I think its due to some other plugin conflict. I am trying to catch why & when this error appears in log file? i can’t rectify yet.
    But there was another error coming in
    Undefined property: stdClass::$id in /var/www/html/wp-content/plugins/facebook-for-woocommerce/facebook-commerce.php on line 2832
    if ( $body && $body->id) {
    I change it with.
    if ( $body && isset($body->id)) {

    But now this one also no appearing anymore.

    Hi @khmubashar,

    Thanks so much for your followup here and for sending over the additional error message. I’ve ensured to relay this error to our developers to make sure we get this patched up in a future version of the plugin.

    If you have a chance to narrow down the conflicting plugin, I would really appreciate it if you could let out team know. Also, please feel free to contact support through our site if you need some help finding the conflicting plugin here.

    Could I help you with any other questions?

    Thanks,
    Tamara

    Thread Starter khmubashar

    (@khmubashar)

    Hi @skyverge!
    Thank you again for your response,

    A Day before yesterday I again get log error,

    2020-02-06T10:50:38+00:00 CRITICAL Uncaught Error: Call to a member function get_id() on bool in /var/www/html/wp-content/plugins/facebook-for-woocommerce/includes/fbutils.php:90
    Stack trace:
    #0 /var/www/html/wp-content/plugins/facebook-for-woocommerce/includes/fbutils.php(136): WC_Facebookcommerce_Utils::get_fb_retailer_id(false)
    #1 /var/www/html/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-events-tracker.php(359): WC_Facebookcommerce_Utils::get_fb_content_ids(false)
    #2 /var/www/html/wp-content/plugins/facebook-for-woocommerce/facebook-commerce-events-tracker.php(412): WC_Facebookcommerce_EventsTracker->inject_purchase_event(214957)
    #3 /var/www/html/wp-includes/class-wp-hook.php(288): WC_Facebookcommerce_EventsTracker->inject_gateway_purchase_event(214957)
    #4 /var/www/html/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(NULL, Array)
    #5 /var/www/html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #6 /var/www/html/wp-content/plugins/woocommerce/templates/checkout/thankyou.php(78): do_action(‘woocommerce_tha.. in /var/www/html/wp-content/plugins/facebook-for-woocommerce/includes/fbutils.php on line 90

    But unfortunately, I am still excavating Why this critical error appears.

    Thanks!
    Mubashar

    Hi @khmubashar,

    Thanks so much for your followup here and for sending over the critical error message.

    Would it be possible to share WordPress admin credentials for the site so I can take a further look into this? You can find instructions here on how to add one for me. Please send the login credentials here, or add support@skyverge.com so I can recover the account password.

    Cheers,
    Steve

    Hi,

    How did you fix this error? im having the same problem with my site

    Hey @arcanespade!

    Thanks for reaching out about this issue. The stack trace above indicates that the plugin tried to inject the purchase pixel event, it wasn’t able to retrieve the product that was purchased with order 214957.

    In order to look into your specific issue, it would be great if you could share with me the stack trace you’re currently seeing. Although it might have the same root cause (for instance, a specific custom product being purchase) we’ll need a bit more detail in order to investigate further.

    If you’d prefer, you can also contact us directly using the support form link mentioned above so that we can talk specifically about your site and customer details in private.

    Could you let me know if you’ll be reaching our via our support form, or if you can share the stack trace for further advice on what to check next?

    Cheers!

    Simon.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Facebook for WooCommerce by Facebook – 1.9.15 – Not tested with the active’ is closed to new replies.