Backend fatal error: PHP Fatal error: Uncaught TypeError: Illegal offset type
-
We had an error using latest WordPress, WooCommerce on PHP 8.0.x where an illegal offset type was found in
fbwpml.php
. The complete error log on the issue is this:[Thu Jul 06 13:00:29.574849 2023] [lsapi:error] [pid 3023272:tid 140191557744384] [client 2a01:7c8:d003:a:5054:ff:fe25:3b99:0] [host site.com] Backend fatal error: PHP Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in /home/user/domains/site.com/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbwpml.php:53 \nStack trace:\n#0 /home/user/domains/site.com/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproduct.php(611): WC_Facebook_WPML_Injector::should_hide()\n#1 /home/user/domains/site.com/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php(401): WC_Facebook_Product->prepare_product()\n#2 /home/user/domains/site.com/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php(347): WC_Facebook_Product_Feed->prepare_product_for_feed()\n#3 /home/user/domains/site.com/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php(265): WC_Facebook_Product_Feed->write_products_feed_to_temp_file()\n#4 /home/user/domains/site.com/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php(209): WC_Facebook_Product_Feed->write_product_feed_file()\n#5 /home/user/domains/site.com/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbproductfeed.php(66): WC_Facebook_Product_Feed->generate_productfeed_file()\n#6 /home/user/domains/site.com/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Products/Feed.php(144): WC_Facebook_Product_Feed->generate_feed()\n#7 /home/user/domains/site.com/public_html/wp-includes/class-wp-hook.php(308): WooCommerce\\Facebook\\Products\\Feed->regenerate_feed()\n#8 /home/user/domains/site.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#9 /home/user/domains/site.com/public_html/wp-includes/plugin.php(565): WP_Hook->do_action()\n#10 /home/user/domains/site.com/public_html/wp-content/plugins/imagify/inc/Dependencies/ActionScheduler/classes/actions/ActionScheduler_Action.php(43): do_action_ref_array()\n#11 /home/user/domains/site.com/public_html/wp-content/plugins/imagify/inc/Dependencies/ActionScheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php(65): ActionScheduler_Action->execute()\n#12 /home/user/domains/site.com/public_html/wp-content/plugins/imagify/inc/Dependencies/ActionScheduler/classes/ActionScheduler_QueueRunner.php(166): ActionScheduler_Abstract_QueueRunner->process_action()\n#13 /home/user/domains/site.com/public_html/wp-content/plugins/imagify/inc/Dependencies/ActionScheduler/classes/ActionScheduler_QueueRunner.php(136): ActionScheduler_QueueRunner->do_batch()\n#14 /home/user/domains/site.com/public_html/wp-includes/class-wp-hook.php(308): ActionScheduler_QueueRunner->run()\n#15 /home/user/domains/site.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#16 /home/user/domains/site.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#17 /home/user/domains/site.com/public_html/wp-content/plugins/imagify/inc/Dependencies/ActionScheduler/classes/ActionScheduler_AsyncRequest_QueueRunner.php(52): do_action()\n#18 /home/user/domains/site.com/public_html/wp-content/plugins/woocommerce/includes/libraries/wp-async-request.php(147): ActionScheduler_AsyncRequest_QueueRunner->handle()\n#19 /home/user/domains/site.com/public_html/wp-includes/class-wp-hook.php(308): WP_Async_Request->maybe_handle()\n#20 /home/user/domains/site.com/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()\n#21 /home/user/domains/site.com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()\n#22 /home/user/domains/site.com/public_html/wp-admin/admin-ajax.php(203): do_action()\n#23 {main}\n thrown in /home/user/domains/site.com/public_html/wp-content/plugins/facebook-for-woocommerce/includes/fbwpml.php on line 53\n
Any ideas on how we can make this plugin and WPML work together nicely again? Also have latest WPML as well as latest Facebook for WooCommerce plugin.
Also see WPML referral to this plugin when similar issue occurred for other user https://wpml.org/forums/topic/critical-error-with-the-facebook-plugin/
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Backend fatal error: PHP Fatal error: Uncaught TypeError: Illegal offset type’ is closed to new replies.