You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have confirmed this occurs in the most recent version of WordPress, WooCommerce, and Facebook for WooCommerce.
I have confirmed this occurs when only WooCommerce and Facebook for WooCommerce are active and when using a default WordPress or WooCommerce theme.
✍️ Describe the bug
Found as a result of PHP8.2 compatibility testing. I see following deprecation warnings on Edit Product page under Facebook tab. The warnings can be seen at the bottom.
🚶♀️ Steps to reproduce
Change your site's PHP version to 8.2
Install and activate Facebook for WooCommerce plugin
Go to Products > Add New
Scroll down to Facebook tab
✔️ Expected behavior
No warnings under the Facebook tab.
Actual Behaviour
You see the following warnings under the Facebook tab on Edit or Add New Product page.
Deprecated: Creation of dynamic property WooCommerce\Facebook\Admin\Enhanced_Catalog_Attribute_Fields::$page_type is deprecated in /var/www/html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 31
Deprecated: Creation of dynamic property WooCommerce\Facebook\Admin\Enhanced_Catalog_Attribute_Fields::$term is deprecated in /var/www/html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 32
Deprecated: Creation of dynamic property WooCommerce\Facebook\Admin\Enhanced_Catalog_Attribute_Fields::$product is deprecated in /var/www/html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 33
Deprecated: Creation of dynamic property WooCommerce\Facebook\Admin\Enhanced_Catalog_Attribute_Fields::$category_handler is deprecated in /var/www/html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Enhanced_Catalog_Attribute_Fields.php on line 34
Screenshot
The text was updated successfully, but these errors were encountered:
🔎 Isolate the bug
✍️ Describe the bug
Found as a result of PHP8.2 compatibility testing. I see following deprecation warnings on Edit Product page under Facebook tab. The warnings can be seen at the bottom.
🚶♀️ Steps to reproduce
✔️ Expected behavior
No warnings under the Facebook tab.
Actual Behaviour
You see the following warnings under the Facebook tab on Edit or Add New Product page.
Screenshot
The text was updated successfully, but these errors were encountered: