Title: Products not syncing — Scheduled Actions failures — Fatal Errors
Last modified: November 4, 2020

---

# Products not syncing — Scheduled Actions failures — Fatal Errors

 *  Resolved [deejayone](https://wordpress.org/support/users/deejayone/)
 * (@deejayone)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fproducts-not-syncing-scheduled-actions-failures-fatal-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/page/2/?output_format=md)

 *  Thread Starter [deejayone](https://wordpress.org/support/users/deejayone/)
 * (@deejayone)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13635450)
 * Hi,
 * Anybody able to help at all?
 * Still getting issues. 🙁
 *  [jenskyverge](https://wordpress.org/support/users/jenskyverge/)
 * (@jenskyverge)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13640607)
 * Hi [@deejayone](https://wordpress.org/support/users/deejayone/),
 * Thanks for reaching out about Facebook for WooCommerce! I’m sorry that you’re
   running into these issues, but I’ll be happy to help.
 * As a starting point, could you please confirm if you are running the current 
   version of the plugin (2.1.4)? If you are not yet running this version, could
   you please try updating and let us know if you are still unable to get your products
   synced?
 * Thanks,
 * Jennifer
 *  Thread Starter [deejayone](https://wordpress.org/support/users/deejayone/)
 * (@deejayone)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13640745)
 * Thanks for the reply.
 * Can confirm Facebook for WooCommerce is version 2.1.4
 * In case it matters, WooCommerce is 4.6.2 and WordPress is 5.5.3 (I keep everything
   as up to date as possible).
 * Problem still persists.
 *  [jenskyverge](https://wordpress.org/support/users/jenskyverge/)
 * (@jenskyverge)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13646972)
 * Hi [@deejayone](https://wordpress.org/support/users/deejayone/),
 * Thanks so much for confirming that for me. There was a known issue previously
   that was causing this error, though it _should_ have been resolved in the most
   recent version.
 * In looking at the timestamps on the error logs, it looks like these may have 
   been generated prior to the update, which was released on November 4th. Are you
   still seeing new errors in the error log, following the update to version 2.1.4?
 * Thanks,
 * Jennifer
 *  Thread Starter [deejayone](https://wordpress.org/support/users/deejayone/)
 * (@deejayone)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13650636)
 * Hi [@jenskyverge](https://wordpress.org/support/users/jenskyverge/)
 * Yes, I can confirm it is still happening after updating.
 * I tried increasing the time limit to see if it was that, and it hasn’t resolved
   things.
 * Here is the latest Scheduled Actions log (of many):
 * 2020-11-11 18:12:30 +0000
    action created 2020-11-11 18:24:44 +0000 action started
   via WP Cron 2020-11-11 18:44:54 +0000 action timed out after 1200 seconds
 *  [jenskyverge](https://wordpress.org/support/users/jenskyverge/)
 * (@jenskyverge)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13655697)
 * Hi [@deejayone](https://wordpress.org/support/users/deejayone/),
 * Thanks for sending that new log. In this case, I’d like to rule out any conflicts
   that might be causing the issue as a next step. Would you please switch to a 
   default theme, such as Twenty Nineteen? If this resolves the issue, it looks 
   like there’s a theme conflict.
 * Next, could you please try disabling all your plugins except for WooCommerce 
   and Facebook for WooCommerce? If this fixes the issue, you can try re-enabling
   your plugins one by one to find out which one is causing the issue.
 * Thanks,
 * Jennifer
 *  Thread Starter [deejayone](https://wordpress.org/support/users/deejayone/)
 * (@deejayone)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13663631)
 * Thanks [@jenskyverge](https://wordpress.org/support/users/jenskyverge/)
 * I’ve spent a few hours with it this evening.
 * I set to Twenty Twenty theme and the problem persisted.
 * Then I disabled all plugins except WooCommerce and Facebook for Woocommerce (
   whilst still using the Twenty Twenty theme).
 * Sadly, the problem still persists.
 * Some examples of errors since:
 *     ```
       2020-11-15 00:00:38 +0000
       action created
       2020-11-15 00:01:14 +0000
       action started via Async Request
       2020-11-15 00:06:23 +0000
       action timed out after 300 seconds
       ```
   
 *     ```
       2020-11-15 00:19:22 +0000
       action created
       2020-11-15 00:19:51 +0000
       action started via Async Request
       2020-11-15 00:22:11 +0000
       unexpected shutdown: PHP fatal error Allowed memory size of 1048576000 bytes exhausted (tried to allocate 268435464 bytes) in /home/customer/www/xxxxxxxxxx/public_html/wp-content/object-cache.php on line 255
       ```
   
 *  [jenskyverge](https://wordpress.org/support/users/jenskyverge/)
 * (@jenskyverge)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13671201)
 * Hi [@deejayone](https://wordpress.org/support/users/deejayone/),
 * Thanks for sending that log. I’d like to address the “Allowed memory size” error
   and see if you’re still seeing the same problem once this is resolved. There 
   are a few different ways that you can go about increasing your PHP memory and
   resolving this error. There is [a great guide here](https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/)
   that will walk you through a few different methods. Could you please give this
   a try and let me know if you are able to increase the memory and get that error
   resolved, and if so, if this resolves the original issue?
 * Thanks,
 * Jennifer
 *  Thread Starter [deejayone](https://wordpress.org/support/users/deejayone/)
 * (@deejayone)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13672628)
 * Thanks again [@jenskyverge](https://wordpress.org/support/users/jenskyverge/)
 * PHP Memory has indeed been increased to 1000MB, which I am told is the host’s
   maximum allowed and apparently should be more than sufficient:
 * `define( 'WP_MEMORY_LIMIT', '1000M' );`
 * The memory size error only happens _very_ occasionally. Almost every error is
   that the “action timed out after xxx seconds” (Usually 300, but I’ve increased
   to 1200 to try and troubleshoot this issue):
 *     ```
       2020-11-17 11:20:27 +0000
       action created
       2020-11-17 11:20:50 +0000
       action started via Async Request
       2020-11-17 11:41:20 +0000
       action timed out after 1200 seconds
       ```
   
 * Indeed, the problem persists. 😞
    -  This reply was modified 5 years, 4 months ago by [deejayone](https://wordpress.org/support/users/deejayone/).
 *  [jenskyverge](https://wordpress.org/support/users/jenskyverge/)
 * (@jenskyverge)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13674861)
 * Hi [@deejayone](https://wordpress.org/support/users/deejayone/),
 * Thanks for trying that out. I am going to run this by our engineering team to
   take another look at this for you. As soon as they’ve had a chance to do so, 
   we’ll be back in touch.
 * Thanks,
 * Jennifer
 *  Thread Starter [deejayone](https://wordpress.org/support/users/deejayone/)
 * (@deejayone)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13674936)
 * Great – thank you [@jenskyverge](https://wordpress.org/support/users/jenskyverge/)
 *  [Marcus, SkyVerge Support](https://wordpress.org/support/users/marcusskyverge/)
 * (@marcusskyverge)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13688321)
 * Hi [@deejayone](https://wordpress.org/support/users/deejayone/),
 * Marcus here from the support engineering team, stepping in for Jennifer to take
   a look at this with you. Thanks for increasing the memory limit and for spending
   some time troubleshooting this already!
 * It sounds like your site is successfully connected to Facebook and attempting
   to sync products, which is a great start. The Product Sync button/feature doesn’t
   actually use the action scheduler, so these errors may or may not be related.
 * Could I get you to please enable logging for the Facebook for WooCommerce plugin
   at **WooCommerce > Facebook** (or **Marketing > Facebook** in version 2.2.0)?
 * Once you’ve done this, would you please try another sync – if possible – and 
   then grab the latest Facebook logs from **WooCommerce > Status > Logs** and share
   them here?
 * Thanks,
    Marcus
    -  This reply was modified 5 years, 4 months ago by [Marcus, SkyVerge Support](https://wordpress.org/support/users/marcusskyverge/).
      Reason: spacing
 *  Thread Starter [deejayone](https://wordpress.org/support/users/deejayone/)
 * (@deejayone)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13690262)
 * Hi [@marcusskyverge](https://wordpress.org/support/users/marcusskyverge/),
 * Thank you for looking into this for me!
 * I think syncing products isn’t so much the problem now, I somehow got it going
   again (but don’t know how!).
 * The problem remains Action Scheduler and every single scheduled action for Facebook
   for WooCommerce continues to fail.
 * In any case, I followed your steps. Is there a way to share the logs directly
   as they are quite large and I can’t paste them in here it seems!
 * Hopefully we can find a resolution soon.
 * Thank you.
 *  [Marcus, SkyVerge Support](https://wordpress.org/support/users/marcusskyverge/)
 * (@marcusskyverge)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13699854)
 * Hey [@deejayone](https://wordpress.org/support/users/deejayone/),
 * Thank you for the update. I’m happy to hear that you are able to sync your products
   successfully!
 * Before I get you to try to share the large logs (I’m not sure they’ll help at
   this time if your products are syncing), would you please tell me about the failed
   Action Scheduler tasks? Are you seeing these error messages on the page or in
   your site’s error logs? Can I get you to share the “Hook” name of the failing
   schedules or a screenshot of one full, failed row?
 * Thanks,
    Marcus
 *  Thread Starter [deejayone](https://wordpress.org/support/users/deejayone/)
 * (@deejayone)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/#post-13699902)
 * Thanks again for the reply [@marcusskyverge](https://wordpress.org/support/users/marcusskyverge/)
 * Here’s the details:
 * I see the items failing in Action Scheduler (WordPress Admin > Tools > Scheduled
   Actions > Failed)
 * The “Hook” name is: wc_facebook_regenerate_feed
 * Here’s the latest of the logs from the same page (there are thousands of these
   failed actions):
 *     ```
       2020-11-23 19:53:48 +0000
       action created
       2020-11-23 19:58:31 +0000
       action started via Async Request
       2020-11-23 20:18:32 +0000
       action timed out after 1200 seconds
       ```
   
 * I’m not sure how to attach a screenshot here. Will an imgur link suffice: [https://imgur.com/i4PUj0C](https://imgur.com/i4PUj0C)

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/page/2/?output_format=md)

The topic ‘Products not syncing — Scheduled Actions failures — Fatal Errors’ is 
closed to new replies.

 * ![](https://ps.w.org/facebook-for-woocommerce/assets/icon.svg?rev=3469606)
 * [Meta for WooCommerce](https://wordpress.org/plugins/facebook-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/facebook-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook-for-woocommerce/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [not syncing](https://wordpress.org/support/topic-tag/not-syncing/)
 * [Product Sync](https://wordpress.org/support/topic-tag/product-sync/)
 * [scheduled actions](https://wordpress.org/support/topic-tag/scheduled-actions/)

 * 32 replies
 * 7 participants
 * Last reply from: [Sol J. a11n](https://wordpress.org/support/users/solstudioim/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/products-not-syncing-scheduled-actions-failures-fatal-errors/page/3/#post-14363523)
 * Status: resolved