Title: Fatal Error: Lifecycle.php
Last modified: January 22, 2021

---

# Fatal Error: Lifecycle.php

 *  Resolved [Owlpixel](https://wordpress.org/support/users/anranik/)
 * (@anranik)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-lifecycle-php/)
 * Warning: Illegal string offset ‘wc_facebook_enable_product_sync’ in /home/customer/
   www/tacco12orbassano.com/public_html/wp-content/plugins/facebook-for-woocommerce/
   includes/Lifecycle.php on line 152
 * Warning: Illegal string offset ‘wc_facebook_product_description_mode’ in /home/
   customer/www/tacco12orbassano.com/public_html/wp-content/plugins/facebook-for-
   woocommerce/includes/Lifecycle.php on line 156
 * Warning: Illegal string offset ‘scheduled_resync_offset’ in /home/customer/www/
   tacco12orbassano.com/public_html/wp-content/plugins/facebook-for-woocommerce/
   includes/Lifecycle.php on line 172
 * Warning: Cannot assign an empty string to a string offset in /home/customer/www/
   tacco12orbassano.com/public_html/wp-content/plugins/facebook-for-woocommerce/
   includes/Lifecycle.php on line 172
 * Fatal error: Uncaught Error: Cannot unset string offsets in /home/customer/www/
   tacco12orbassano.com/public_html/wp-content/plugins/facebook-for-woocommerce/
   includes/Lifecycle.php:179 Stack trace: #0 /home/customer/www/tacco12orbassano.
   com/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Lifecycle.
   php(74): SkyVerge\WooCommerce\Facebook\Lifecycle->migrate_1_9_settings() #1 /
   home/customer/www/tacco12orbassano.com/public_html/wp-content/plugins/facebook-
   for-woocommerce/vendor/skyverge/wc-plugin-framework/woocommerce/Lifecycle.php(
   301): SkyVerge\WooCommerce\Facebook\Lifecycle->upgrade_to_1_10_0(‘1.9.15’) #2/
   home/customer/www/tacco12orbassano.com/public_html/wp-content/plugins/facebook-
   for-woocommerce/includes/Lifecycle.php(62): SkyVerge\WooCommerce\PluginFramework\
   v5_10_0\Plugin\Lifecycle->upgrade(‘1.9.15’) #3 /home/customer/www/tacco12orbassano.
   com/public_html/wp-content/plugins/facebook-for-woocommerce/vendor/skyverge/wc-
   plugin-framework/woocommerce/Lifecycle.php(118): SkyVerge\WooCommerce\Facebook\
   Lifecycle in /home/customer/www/tacco12orbassano.com/public_html/wp-content/plugins/
   facebook-for-woocommerce/includes/Lifecycle.php on line 179

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [dougaitken](https://wordpress.org/support/users/dougaitken/)
 * (@dougaitken)
 * Automattic Happiness Engineer
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-lifecycle-php/#post-13942335)
 * Hi [@anranik](https://wordpress.org/support/users/anranik/)
 * Can you provide more context to this, please? What was happening before this 
   Fatal Error happened?
 * Are all your plugins up to date on the site?
 * Thanks,
 *  Thread Starter [Owlpixel](https://wordpress.org/support/users/anranik/)
 * (@anranik)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-lifecycle-php/#post-13942415)
 * Its happening when I am going to activate Facebook for WooCommerce.
    I have update
   all the things.
 *  Thread Starter [Owlpixel](https://wordpress.org/support/users/anranik/)
 * (@anranik)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-lifecycle-php/#post-13944535)
 * Any I made it work.
    the problem is coming from this line of code on lifecycle.
   php
 *  foreach ( $old_indexes as $old_index ) {
    unset( $new_settings[ $old_index ]);}
 * if you comment out this line before plugin activate then the plugin worked. After
   activated you can uncomment this lines.
 *  [AJ a11n](https://wordpress.org/support/users/amandasjackson/)
 * (@amandasjackson)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-lifecycle-php/#post-13955127)
 * Hi [@anranik](https://wordpress.org/support/users/anranik/)
 * Glad to hear it – thanks for letting us know!
 * I’ll mark this thread as resolved now. If you have any further questions, I recommend
   creating a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal Error: Lifecycle.php’ 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/)

 * 4 replies
 * 3 participants
 * Last reply from: [AJ a11n](https://wordpress.org/support/users/amandasjackson/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-lifecycle-php/#post-13955127)
 * Status: resolved