• Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WC_Piraeusbank_Gateway does not have a method “add_woocommerce_customer_meta_fields” in httpdocs/wp-includes/class-wp-hook.php:308

Viewing 1 replies (of 1 total)
  • Efs

    (@stevendigital)

    Hello,

    Do not know if you found any solutions for this problem, but I also came across this. The error indicates that the method does not exist inside the plugin’s file and where it is called.

    The call on this method/function is on line 150 inside the wooshop-piraeus.php file located under /wp-content/plugins/woo-payment-gateway-for-piraeus-bank

    One workaround is to comment this line out. Go to the start of the line and add // in front. Something like this: //add_filter( 'woocommerce_customer_meta_fields' , [$this, 'add_woocommerce_customer_meta_fields']);

    And let’s hope this will be fixed on the future.

    • This reply was modified 2 years, 7 months ago by Efs. Reason: Minor typo changes
Viewing 1 replies (of 1 total)

The topic ‘Error on PHP8, needs update!’ is closed to new replies.