Type Error in logs
-
AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "wpiudacb_save_extra_fileds" not found or invalid function name in /wp-includes/class-wp-hook.php:326\nStack trace:\n#0 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()\n#1 /wp-includes/plugin.php(517): WP_Hook->do_action()\n#2 /wp-includes/taxonomy.php(3472): do_action()\n#3 /wp-admin/edit-tags.php(183): wp_update_term()\n#4 {main}\n thrown in /wp-includes/class-wp-hook.php on line 326', referer: https://www.lievelabels.nl/wp-admin/term.php?taxonomy=product_cat&tag_ID=404&post_type=product&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dproduct_cat%26post_type%3Dproduct
This is related to index.php line: 128
add_action('edited_product_cat', 'wpiudacb_save_extra_fileds');
add_action('created_product_cat', 'wpiudacb_save_extra_fileds');if (!function_exists('wpiudacb_save_extra_fields')) { // Corrected the typo here
function wpiudacb_save_extra_fields($term_id) {
- You must be logged in to reply to this topic.