Taking over a WP project… having a problem that I can’t seem to figure out.
The error shows up on many of my [pages]), preventing them from loading:
Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “wp_initialize_theme_preview_hooks” not found or invalid function name in /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-includes/class-wp-hook.php:308 Stack trace: #0 /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #1 /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-includes/plugin.php(517): WP_Hook->do_action() #2 /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-settings.php(486): do_action() #3 /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-config.php(111): require_once(‘/home/o48jg0ta3…’) #4 /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-load.php(50): require_once(‘/home/o48jg0ta3…’) #5 /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-blog-header.php(13): require_once(‘/home/o48jg0ta3…’) #6 /home/o48jg0ta3ah0/public_html/grantlaw.com/index.php(17): require(‘/home/o48jg0ta3…’) #7 {main} thrown in /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-includes/class-wp-hook.php on line 308
Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-includes/functions.php on line 5865
Notice: Function is_search was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-includes/functions.php on line 5865
There has been a critical error on this website.
Also this error shows up on some [pages]):
Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /home/o48jg0ta3ah0/public_html/grantlaw.com/wp-includes/formatting.php on line 3465
What do I do?
[ad_2]