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
The WooCommerce minimum compatibility for the plugin is 5.3. The latest release v2.6.29 adds a class Setup which inherits the Automattic\WooCommerce\Admin\Features\OnboardingTasks\Task class. The class has an abstract method get_parent_id in WooCommerce versions: 6.1, 6.2, and 6.3. This method is not implemented in the Setup class and hence it would throw a critical error when running on WooCommerce 6.1, 6.2, or 6.3.
The method get_parent_id is a public method from WooCommerce 6.4 onwards. So this issue is specific to WooCommerce the above-mentioned 3 versions.
🚶♀️ Steps to reproduce
Install and activate WooCommerce 6.2
Install and activate Facebook for WooCommerce 2.6.29.
A critical error is thrown.
✔️ Expected behavior
No critical error should be thrown on activation.
🗃 Logs
An error of type E_ERROR was caused in line 0 of the file /mnt/data/home/XXXXXX.cloudwaysapps.com/XXXXXXXX/public_html/wp-content/plugins/facebook-for-woocommerce/includes/Admin/Tasks/Setup.php.
Error message: Class SkyVerge\WooCommerce\Facebook\Admin\Tasks\Setup contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Automattic\WooCommerce\Admin\Features\OnboardingTasks\Task::get_parent_id)
The text was updated successfully, but these errors were encountered:
🔎 Isolate the bug
✍️ Describe the bug
The WooCommerce minimum compatibility for the plugin is
5.3
. The latest releasev2.6.29
adds a classSetup
which inherits theAutomattic\WooCommerce\Admin\Features\OnboardingTasks\Task
class. The class has anabstract
methodget_parent_id
in WooCommerce versions:6.1
,6.2
, and6.3
. This method is not implemented in theSetup
class and hence it would throw a critical error when running on WooCommerce6.1
,6.2
, or6.3
.The method
get_parent_id
is apublic
method from WooCommerce6.4
onwards. So this issue is specific to WooCommerce the above-mentioned 3 versions.🚶♀️ Steps to reproduce
✔️ Expected behavior
No critical error should be thrown on activation.
🗃 Logs
The text was updated successfully, but these errors were encountered: