admin管理员组

文章数量:1404938

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class wphpc_PAnD not found in /var/www/clients/client32/web3288/web/wp-includes/class-wp-hook.php on line 288

What can I do?

PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, class wphpc_PAnD not found in /var/www/clients/client32/web3288/web/wp-includes/class-wp-hook.php on line 288

What can I do?

Share Improve this question edited Jan 3, 2020 at 20:50 nmr 4,5672 gold badges17 silver badges25 bronze badges asked Jan 3, 2020 at 20:41 CsasziCsaszi 31 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

It is usually caused by a filter or an action not properly declared. Somewhere in your theme or plugins is a line like:

add_filter( 'hook_name' , array( 'wphpc_PAnD', 'someMethod' ) );
// or
add_action( 'hook_name' , array( 'wphpc_PAnD', 'methodName' ) );

which register class method with hook for a action or filter, but this class (wphpc_PAnD) does not exist.
Check if file with class definition is included and there is no typo in the class name in add_action() / add_filter().

本文标签: phpclass 39wphpcPAnD39 not found