Error message

Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "save_custom_profile_fields" not found or invalid function name in E:\xampp01\htdocs\wordx2.1\wp-includes\class-wp-hook.php:307 Stack trace: #0 E:\xampp01\htdocs\wordx2.1\wp-includes\class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #1 E:\xampp01\htdocs\wordx2.1\wp-includes\plugin.php(476): WP_Hook->do_action(Array) #2 E:\xampp01\htdocs\wordx2.1\wp-admin\user-edit.php(145): do_action('personal_option...', 9) #3 E:\xampp01\htdocs\wordx2.1\wp-admin\profile.php(18): require_once('E:\\xampp01\\htdo...') #4 {main} thrown in E:\xampp01\htdocs\wordx2.1\wp-includes\class-wp-hook.php on line 307

Solution

Check the following code in your code file and remove it if not necessary. add_action('personal_options_update', 'save_custom_profile_fields'); add_action('show_user_profile', 'add_custom_profile_fields'); add_action('edit_user_profile', 'add_custom_profile_fields');