Answer the question
In order to leave comments, you need to log in
What causes this error in wordpress?
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'woocommerce_before_add_to_cart_form' not found or invalid function name in /home/spektrde/fortis.spektrdev.com/wp-includes/class-wp-hook.php on line 287
$value = call_user_func_array( $the_['function'], $args );
Answer the question
In order to leave comments, you need to log in
Because there is a hook with a callback function somewhere woocommerce_before_add_to_cart_form
, but it does not exist.
The problem is not really class-wp-hook.php. This is where the error occurs, and where this hook is created.
The call stack can help you find this place.
Might help:
https://gist.github.com/jrfnl/5925642
https://wordpress.org/support/topic/php-warning-ca...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question