CRITICAL Cannot redeclare add_attributes_to_admin_script()
-
We’ve been using the plugin for a while now, and it’s working fine.
However, ONLY when we visit
.../wp-admin/nav-menus.php, to edit our site’s menu, do we get the following error:CRITICAL Cannot redeclare add_attributes_to_admin_script() (previously declared in [redacted]/wp-content/plugins/afterpay-payment-gateway-for-woocommerce/class-wc-gateway-afterpay.php:507) in [redacted]/wp-content/plugins/afterpay-payment-gateway-for-woocommerce/class-wc-gateway-afterpay.php op de lijn 507I cannot figure out why it is redeclared. There is no other code that uses the same method, and it seems like it’s clashing with itself, in the same file. As if the plugin is initialized twice?
Do you have an idea what it could be?
The topic ‘CRITICAL Cannot redeclare add_attributes_to_admin_script()’ is closed to new replies.