I’ve successfully tracked this problem by adding
error_log("wp-hook: ". print_r($the_, true));
within apply_filters in wp-includes/wp_hook.php
The task is then to look at the function calls (the data inside $the_) surrounding the “PHP Warning: call_user_func_array()”. It will be the one directly ahead of the warning, but you may need to look at calls after or before to determine which file is causing the problem (a filter call to an undefined function).
Note also that the problem will arise if the function exists, but has no code, like:
function create_menu() {
//oops, there's no code here
}
add_action('admin_menu',array($this,'create_menu'));
Related Posts:
- Error after moving WordPress installation
- require_once() error after moving WordPressto another server
- WordPress Dashboard visible but site is not after migration
- Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error
- HTTPS leads to Sorry, you are not allowed to access this page
- Notice: Constant WP_POST_REVISIONS already defined
- How to stop certain warning logging in error.log?
- Error 404 Page Not Found When Updating a Post or Page
- Why on Earth am I getting “undefined_index” errors?
- Showing error “Function create_function() is deprecated”
- Debugging ‘Object of class WP_Query could not be converted to int’ error
- Update wordpress fail – There has been a critical error on your website
- Getting headers already sent error from plugin
- Add image only in first post
- New WordPress Error Message – Not seen this before
- Getting Warnings & Notices from Fresh WordPress 3.1.2 install
- Sodium compat error
- Fatal error: require(): Failed opening required ‘WP_DIRwp-blog-header.php’
- What do these “Failed to import” errors mean and how do I fix it?
- How to use add_settings_error in register_setting callback
- Application passwords not working on localhost?
- : Failed to load resource
- Error trying to publish immediately. Post status = future (Missed schedule error)
- Form Post results in 404 Not Found [duplicate]
- File does not exist – wp-index.php
- REST : how do you handle the rest_no_route error?
- “Undefined index” in wp-includes/media.php
- update user information
- Error! 401.shtml file not found, what’s the problem?
- Strange glyphs code error
- Sorry, you are not allowed to access this page dashboard
- Custom slider throwing an error
- err_connection_closed after 20 minutes when loggedin in backend
- How to Fix “Are You Sure You Want to Do This”, while uploading my theme?
- Homepage Not Found Error [closed]
- 4.2.2 stuck in an db upgrade loop with “Call to undefined method wpdb::get_col_length()”
- Cannot redeclare maybe_create_table()
- Fatal error: Allowed memory size of 146800640 bytes exhausted (tried to allocate 57 bytes) in public_html/wp-includes/rewrite.php on line 1561
- Display all WP Errors together during form validation
- Why can I not execute php files under the wp-includes folder?
- Why do get_category_by_slug() crashes WordPress 4.8
- Headers already sent by
- Failed: Filesystem preventing downloads. ( ftpext)
- Code snippet to display ID gives critical error
- I tried to build a theme from scratch and it crashed everything
- Overwrote index.php. When I restored it, I got lots of Notice level errors
- 403 forbidden access to my whole site
- error log bloated by add_view
- Warning: require_once(/home/onetwo/public_html/wp-config.php): [closed]
- Unable to locate WordPress content directory
- Constant WP_CRON_LOCK_TIMEOUT already defined in /htdocs/wp-config.php
- WP Core Update Issue
- Cannot upgrade to 4.0 – get SSL certificate error
- Fatal Error: get_header();
- Error when setting cookie
- Downgrade from latest nightly build to latest stable version
- styles/default.css in markup, where does it come from? [closed]
- download count29.php whene loading site [closed]
- Warning: call_user_func_array() [function.call-user-func-array]
- Parse error: syntax error, unexpected [closed]
- My new WordPress blog keeps refreshing in Chrome browser
- Undefined index error on options array element?
- Getting no Error Log File saved to my local directory, and no debug info displayed in the web browser
- How to turn off WP error handling, but turn on php error handling?
- White screen after migrating site, but wp-admin works fine. Disabling all plugins, applying default theme and enabling debug mode does nothing
- Help with “Uncaught Error: Attempt to modify property “response” on bool”
- Error regarding invalid file permissions for upgrading WordPress version
- Replace form field error text?
- Publication in wrong category
- Suddenly get errors in admin when editing post type
- How can I make error messages in admin
- WordPress won’t save page/post with more than 332 words
- Dashboard widget, screen options/help doesn’t work?
- Getting amp; on every single category, post and page title. How to Remove?
- Site has fake users registered with a similar pattern in username and email
- WordPress fails when my post is larger than 1400 words
- Seeing “error” as text on white when accessing admin
- Unregister Settings Error
- Weird Parse Error on Uploaded File
- call user func array error after moved the site to new server
- do_action( ‘init’ ) in wp-settings.php breaks my website. All plugins and themes disabled
- Why I am having error Call to undefined function get_header()?
- WP_Error message
- Fatal error: Cannot declare class WP_User_Request, because the name is already in use?
- JavaScript errors
- Unexpected error with class-wp-hook.php on WordPress
- Fatal error: Call to undefined function wp_raise_memory_limit()
- problem ajaxurl – designthemes-core-features
- WordPress “Allowed memory size” on wp-db.php [closed]
- Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ [closed]
- Whole right area of wordpress admin dashboard not showing
- Only specific users timing out
- WordPress Customizer not loading
- Unable to log in: “Cannot serve directory www/wordpress/wp-includes/ No matching DirectoryIndex”
- How do I turn off WordPress errors and just have regular old php errors?
- I’m getting this ‘PHP Deprecated’ issue
- Error while running docker compose command. WordPress is already installed
- RSS Feed URL redirecting to site URL
- Maximum execution time exceeded
- Critical Error on Pages – WP_DEBUG Not Showing Anything