Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($function) must be a valid callback, non-static method RtclPro\Controllers\TermMetas::category_add_map_icon_field() cannot be called statically in C:\xampp\htdocs\AlenAddisCar\wp-includes\class-wp-hook.php:292 Stack trace: #0 C:\xampp\htdocs\AlenAddisCar\wp-includes\class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #1 C:\xampp\htdocs\AlenAddisCar\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #2 C:\xampp\htdocs\AlenAddisCar\wp-admin\edit-tags.php(529): do_action('rtcl_category_a...', 'rtcl_category') #3 {main} thrown in C:\xampp\htdocs\AlenAddisCar\wp-includes\class-wp-hook.php on line 292


What I have tried:

if ( 0 == $the_['accepted_args'] ) {
					$value = call_user_func( $the_['function'] );
				} elseif ( $the_['accepted_args'] >= $num_args ) {
					$value = call_user_func_array( $the_['function'], $args );
				} else {
					$value = call_user_func_array( $the_['function'], array_slice( $args, 0, (int) $the_['accepted_args'] ) );
				}
			}

i can't find any solution
Posted
Comments
SeeSharp2 6-Aug-21 11:26am    
It says that you are trying to create a callback to a function that does not exist.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900