• Resolved deejayone

    (@deejayone)


    Hi,

    For several days now my Facebook for WooCommerce Product Sync has been failing (it worked fine beforehand).

    In the Product Sync tab it constantly states “Your products are syncing – you may safely leave this page” and sometimes shows different numbers remaining; i.e. “558 items remaining.” or “30 items remaining.”

    The loading spinner keeps on spinning, so I can’t disable Sync as the Save changes button is constantly greyed out.

    Meanwhile, my Action Scheduler has numerous ‘Failed’ states for Facebook for WooCommerce.

    Logs on this page show errors like:

    2020-11-03 22:55:31 +0000
    action created
    2020-11-03 22:58:36 +0000
    action started via WP Cron
    2020-11-03 23:03:57 +0000
    action timed out after 300 seconds

    (Note: my PHP Max Execution Time is 600 seconds, yet I still get the 300 seconds time out notice in Scheduled Actions).

    Occasionally, some of them show longer errors like:

    2020-11-03 23:03:57 +0000
    action created
    2020-11-03 23:05:59 +0000
    action started via WP Cron
    2020-11-03 23:06:00 +0000
    unexpected shutdown: PHP fatal error Uncaught Error: Call to a member function get_name() on string in /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products.php:1115 Stack trace: #0 /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php(674): SkyVerge\WooCommerce\Facebook\Products::get_enhanced_catalog_attribute('age_group', Object(WC_Product_Variation)) #1 /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php(605): WC_Facebook_Product->apply_enhanced_catalog_fields_from_attributes(Array, '1604') #2 /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php(646): WC_Facebook_Product->prepare_product('wc_post_id_1204...', 'feed') #3 /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php(580): WC_Facebook_Product_Feed->prepare_product_for_feed(Object(WC_Facebook_Product), Array) #4 /home/XXXXX/public_html/wp-content/plugins/facebook-for-woo in /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products.php on line 1115
    0

    Also meanwhile, my Fatal Error logs show multiple errors such as:

    2020-11-04T00:00:46+00:00 CRITICAL Uncaught Error: Call to a member function get_name() on string in /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products.php:1115
    Stack trace:
    #0 /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php(674): SkyVerge\WooCommerce\Facebook\Products::get_enhanced_catalog_attribute('age_group', Object(WC_Product_Variation))
    #1 /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php(605): WC_Facebook_Product->apply_enhanced_catalog_fields_from_attributes(Array, '1604')
    #2 /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php(646): WC_Facebook_Product->prepare_product('wc_post_id_1204...', 'feed')
    #3 /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php(580): WC_Facebook_Product_Feed->prepare_product_for_feed(Object(WC_Facebook_Product), Array)
    #4 /home/XXXXX/public_html/wp-content/plugins/facebook-for-woo in /home/XXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products.php on line 1115

    I’ve tried the usual disabling/re-enabling plugins, etc, nothing seems to fix the issue.

    Product count is around ~5,000 including variations.

    Please help! ??

    The page I need help with: [log in to see the link]

Viewing 15 replies - 16 through 30 (of 32 total)
  • Thread Starter deejayone

    (@deejayone)

    Also noticed this error when adding a product (a book in this case but I’ve just noticed it happens in other categories too). Not sure if it is linked to the above issue, but thought I would post here in case…

    In WooCommerce > Products > Edit Product > Product details / Facebook (tab)

    Under the show advanced options checkbox:

    Warning: array_map(): Expected parameter 2 to be an array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 55

    Warning: array_filter() expects parameter 1 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 64

    Warning: array_column() expects parameter 1 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 46

    Warning: array_search() expects parameter 2 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 46

    Warning: array_splice() expects parameter 1 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 47

    Warning: array_column() expects parameter 1 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 46

    Warning: array_search() expects parameter 2 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 46

    Warning: array_splice() expects parameter 1 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 47

    Warning: array_column() expects parameter 1 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 46

    Warning: array_column() expects parameter 1 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 46

    Warning: array_splice() expects parameter 1 to be array, null given in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 47

    Warning: Invalid argument supplied for foreach() in /public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 97

    Hi @deejayone,

    Tamara here, stepping in for Marcus. Thanks for sending over the screenshot, that’s very helpful. It looks like the action failed to run which may indicate that there is an error blocking it from running.

    As a next step, I’d like to double-check if your site is logging any errors when this issue occurs. Would you please head to?WooCommerce > Status > Logs?and check if you have any “fatal errors” log files??This should look something like this.

    Thanks,

    Tamara

    Thread Starter deejayone

    (@deejayone)

    Hi @tamarazuk

    Just the one entry in the fatal error log for today:

    2020-11-26T15:00:25+00:00 CRITICAL Allowed memory size of 1048576000 bytes exhausted (tried to allocate 268435464 bytes) in /public_html/wp-content/object-cache.php on line 255

    Hi @deejayone,

    Thank you for sending that over! It looks like your site is still running int out of memory errors and I’d like to confirm your site’s memory limit as a next step.

    Would you please head to WooCommerce > Status and let me know what value appears next to “WordPress memory limit”?

    Thanks,

    Tamara

    Thread Starter deejayone

    (@deejayone)

    Thanks @tamarazuk

    From WordPress > Status:

    WordPress memory limit: 1,000 MB

    In any case, I really don’t think the fatal error above is linked to Facebook for WooCommerce though?

    Hi @deejayone,

    Thanks so much for confirming that for me! It’s unlikely that the above error is related but it was a good call to double-check that the site has enough memory.

    As a next step, I’d like to have a better idea of how the Scheduled Actions are listed in your admin. Would you please head to WooCommerce > Status > Scheduled Actions, search for Facebook-speicifc actions, and share a screenshot of the resulting table?

    Thanks so much!
    Tamara

    Thread Starter deejayone

    (@deejayone)

    Hi @tamarazuk

    Thank you for getting back to me.

    As requested, here is a screenshot: https://snipboard.io/QtuiJP.jpg

    Hope that helps!

    James.

    Thread Starter deejayone

    (@deejayone)

    Hi @tamarazuk,

    This issue is still outstanding and occurring. Any updates at all?

    Thanks in advance,
    James.

    Plugin Support Mike Straw

    (@mikestraw)

    Hi @deejayone ,

    I apologize for the delayed response. We’re checking out some details here and will let you know what we find.

    Thread Starter deejayone

    (@deejayone)

    Thank you.

    I eagerly await any findings you have.

    Plugin Support Mike Straw

    (@mikestraw)

    Hi @deejayone ,

    It looks like this is related to this bug that our developers are working on fixing. It should be fixed in the next version of Facebook for WooCommerce. You’ll see that report close, and then you can verify in the changelog for this plugin. Once that’s released, install the update and everything should start working better.

    Since we’re tracking the issue on GitHub now, I’m going to mark this forum thread resolved. If you have any input to the issue, you can post them on GitHub.

    Otherwise, if you have any other questions, feel free to start a new thread.

    Thanks!

    Thread Starter deejayone

    (@deejayone)

    @mikestraw

    Apologies, I feel I need to reopen this issue as it continues to occur.

    I checked the links and the issues you feel it related to have apparently been fixed, and of course I have updated the plugin, but Facebook for Woocommerce continually fails in my Action Scheduler, as per previous posts (I now have tens of thousands of failed actions from Facebook for Woocommerce in my failed list).

    I would appreciate any further possible help.

    Thank you.

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi there @deejayone

    Could you enable debugging for Facebook for WooCommerce and share the logs with us to see what is going on this time.
    Instructions to enable debugging are here.

    Please share any other logs(fatal errors) that could help diagnose this further.

    As always, please ensure your logs aren’t revealing any confidential details they shouldn’t be revealing before you post them here.

    Thread Starter deejayone

    (@deejayone)

    Hi @simplysaru

    Thank you for the reply.

    What is the best way to privately share the logs with you? The Facebook for WooCommerce logs are HUGE and obviously contain lots of confidential details.

    Plugin Support Saravanan S, a11n

    (@simplysaru)

    Hi @deejayone,

    Please create ticket via email with us, that would be easier with the logs.

    Thanks for your patience & understanding

Viewing 15 replies - 16 through 30 (of 32 total)
  • The topic ‘Products not syncing — Scheduled Actions failures — Fatal Errors’ is closed to new replies.