Fatal error while publishing a product
-
Facebook for WooCommerce (version 3.4.8)
PHP version 8.2.28
WordPressi version 6.8.1Error: Uncaught TypeError: mb_strlen(): Argument #1 ($string) must be of type string, array given
File: wp-content/plugins/facebook-for-woocommerce/includes/Framework/Helper.php on line 112
0 Helper.php(112): mb_strlen(Array, ‘UTF-8’) 1 fbproduct.php(1664): Helper::str_truncate(Array, 100) 2 facebook-commerce.php(1385): WC_Facebook_Product->prepare_product(…) 3 facebook-commerce.php(1269): ->create_product_item_batch_api(…) 4 facebook-commerce.php(1233): ->create_product_simple(…) 5 facebook-commerce.php(820): ->on_simple_product_publish(…)
It also causes extreme slowdowns across the whole site (incl. admin) when publishing a product and it auto-syncs to FB. That is fixed when plugin is disabled.
The topic ‘Fatal error while publishing a product’ is closed to new replies.