Support » Plugin: Facebook for WooCommerce » Facebook for WooCommerce by Facebook – 1.9.15 – Not tested with the active

  • 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 5 replies - 1 through 5 (of 5 total)
  • Plugin Author SkyVerge

    (@skyverge)

    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

    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.

    Plugin Author SkyVerge

    (@skyverge)

    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

    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

    Plugin Author SkyVerge

    (@skyverge)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.