I m using Astra shop front theme ,currently in local env(site yet to be launched).
Having following error when trying to open menues or widgets bars in cutomization page or when try to replace theme form appearnace page.
On troubleshotting mode, when activating the Astra theme ,i was able to enter the customization menue yet encounter same error when trying to replace theme so not sure if this a theme problem.
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “wp_print_media_templates” not found or invalid function name in C:\Users\ohad\Local Sites\dorelfood\app\public\wp-includes\class-wp-hook.php on line?324
appreciate you help
]]>Yeni bir WordPress kullan?c?s?y?m ve bu konularda bilgisizim, yard?m?n?za ihtiyac?m var
WordPress’i xammp ile yükledim ve farkl? bir tema se?tim. Sayfa olu?turmaya ?al??t???mda a?a??daki hatayla kar??la??yorum (WordPress ile gelen standart tema ?al???yor onda bir sorun yok, farkl? bir tema se?ti?imde bu sorunla kar??la??yorum)
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “education_x_excerpt_length” not found or invalid function name in C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php:310 Stack trace: #0 C:\xampp\htdocs\wordpress\wp-includes\plugin.php(205): WP_Hook->apply_filters(55, Array) #1 C:\xampp\htdocs\wordpress\wp-includes\formatting.php(4002): apply_filters(‘excerpt_length’, 55) #2 C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php(310): wp_trim_excerpt(”, Object(WP_Post)) #3 C:\xampp\htdocs\wordpress\wp-includes\plugin.php(205): WP_Hook->apply_filters(”, Array) #4 C:\xampp\htdocs\wordpress\wp-includes\rest-api\endpoints\class-wp-rest-posts-controller.php(1875): apply_filters(‘get_the_excerpt’, ”, Object(WP_Post)) #5 C:\xampp\htdocs\wordpress\wp-includes\rest-api\endpoints\class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response(Object(WP_Post), Object(WP_REST_Request)) #6 C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-server.php(1194): WP_REST_Posts_Controller->get_item(Object(WP_REST_Request)) #7 C:\xampp\htdocs\wordpress\wp-includes\rest-api\class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/wp/v2/pages/(?…’, Array, NULL) #8 C:\xampp\htdocs\wordpress\wp-includes\rest-api.php(545): WP_REST_Server->dispatch(Object(WP_REST_Request)) #9 C:\xampp\htdocs\wordpress\wp-includes\rest-api.php(2912): rest_do_request(Object(WP_REST_Request)) #10 [internal function]: rest_preload_api_request(Array, ‘/wp/v2/pages/6?…’) #11 C:\xampp\htdocs\wordpress\wp-includes\block-editor.php(740): array_reduce(Array, ‘rest_preload_ap…’, Array) #12 C:\xampp\htdocs\wordpress\wp-admin\edit-form-blocks.php(77): block_editor_rest_api_preload(Array, Object(WP_Block_Editor_Context)) #13 C:\xampp\htdocs\wordpress\wp-admin\post-new.php(72): require(‘C:\\xampp\\htdocs…’) #14 {main} thrown in C:\xampp\htdocs\wordpress\wp-includes\class-wp-hook.php on line 310
]]>PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “wi_remove_menu_pages” not found or invalid function name in /nas/content/live/avcreationdev/wp-includes/class-wp-hook.php:310
in the class-wp-hook.php line 310 I see this argument
$value = call_user_func_array( $the_[‘function’], $args );
The full function is
// Avoid the array_slice() if possible.
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’] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
$this->nesting_level–;
return $value;
}
Can someone please guide me into how to properly fix this. Downgrading to 7.4 temporarily fixes the issue.
]]>Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /home/*********/public_html/wp-includes/class-wp-hook.php on line 308
I went back to v5.20.1 and the error is not there. Disabling the plugin also fixes the issue.
]]>Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘_wp_admin_bar_init’ not found or invalid function name in /data/web/virtuals/300207/virtual/www/domains/site name/wp-includes/class-wp-hook.php on line 308
How to fix this error?
Note: I am not using webftp or any other similr software to edit the files, I have a plugin WP manager installed but because of this error I can not access as page is not scrolling.
]]>so, i searched for a solution (e.g. increased memory) but could not find anything that worked unfortunately.
My WordPress 6.1.1 + Elementor page works good with PHP 7.4 (no errors in log) but causes an WSOD Error 500 as soon as i switch to PHP 8.0 or higher. I deactivated ALL plugins and used the twenty-twenty-three theme. Also cleared/deleted old tables with a plugin. WP and plugins are up to date. I put define(‘WP_MEMORY_LIMIT’, ‘256M’); in my wp-config as well. Error Log gives me one line :
“PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wpb_hook_javascript’ not found or invalid function name in “[…]/wp-includes/class-wp-hook.php on line 308”
Line 308 says:
$value = call_user_func_array( $the_[‘function’], $args );
Since i deactivated everything i have no idea what to do. It seems like an internal WordPress problem with PHP 8, like some code that became invalid with the new version? Also wpb_hook_javascript seems quite generic, so i cant deduce who calls it. I am not a programmer though.
Maybe someone can tell me what to look for. Thank you!
]]>Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wp_print_media_templates’ not found or invalid function name in /wp-includes/class-wp-hook.php on line 308
]]>We’re running a PHP8 test on our development site here: https://scmfdev.wpengine.com/projects/
As you can see, we get the error:
TypeError thrown
call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “genesis_portfolio_setup_loop_revised” not found or invalid function name
Back on our live site running on PHP7.4 its not there:
https://simoncumbersmediafund.ie/projects/
Any help appreciated.
Thanks
Paul
]]>Updated WordPress to version 5.9 and immediately received an error on a working website without errors.
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '_disable_block_editor_for_navigation_post_type' not found or invalid function name in?/.../wp-includes/class-wp-hook.php?on line?307
Using the String Locator, I searched to see if this error was associated with a particular plugin. It’s not.
Its found only in the following places:
wp-includes/default-filters.php on line 588
wp-admin/includes/post.php on line 2470
All plugins are updated. I’m still looking, but it doesn’t seem to be a plugin conflict.
I’ll have to roll back my WordPress update to the old version, but I’m also concerned about updating in the future.
Any suggestions?
]]>Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wp_enable_block_templates’ not found or invalid function name in aloftaloft.com\wp-includes\class-wp-hook.php on line 303
Fatal error: Uncaught Error: Class ‘WP_Theme_JSON_Resolver’ not found in aloftaloft.com\wp-includes\script-loader.php:1530 Stack trace: #0 aloftaloft.com\wp-includes\class-wp-hook.php(303): wp_default_styles(Object(WP_Styles)) #1 aloftaloft.com\wp-includes\class-wp-hook.php(327): WP_Hook->apply_filters(”, Array) #2 aloftaloft.com\wp-includes\plugin.php(518): WP_Hook->do_action(Array) #3 aloftaloft.com\wp-includes\class.wp-styles.php(135): do_action_ref_array(‘wp_default_styl…’, Array) #4 aloftaloft.com\wp-includes\functions.wp-styles.php(24): WP_Styles->__construct() #5 aloftaloft.com\wp-includes\functions.wp-styles.php(176): wp_styles() #6 aloftaloft.com\wp-login.php(96): wp_enqueue_style(‘login’) #7 aloftaloft.com\wp-login.php(1285): login_header(‘Log In’, ”, Object(WP_Error)) #8 {main} thrown in aloftaloft.com\wp-includes\script-loader.php on line 1530`
]]>