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
- WP_DEBUG is not set, but I’m still getting warnings
- Notice: Undefined index: host in /var/www/html/wp-includes/canonical.php on line 445
- Debug mode shows Strict Standards
- wp_remote_get() not retrieving pages properly
- $wpdb->insert Database Error Duplicate Entry Error Logging
- Displaying oEmbed errors?
- “Apache HTTP Service has stopped working” with WP Query in WordPress 2.9.2
- 418 header status, I’m a teapot [closed]
- Showing “ Notice: Undefined variable:” and “ Notice: Trying to get property of non-object”
- Publishing Time – WordPress Plain White Screen with No Error
- WordPress Links Not Working After Migration
- How to get a Custom 500 Error Page to show?
- add_sub_menu page() to be replaced by add_theme_page()
- Allowed Memory Size Error in WordPress
- Removing warnings and notices from production servers
- WordPress Admin Dashboard Does Not Display Correctly
- What does this error mean? WordPress database error: [MySQL server has gone away]
- Warning: in_array() expects parameter 2 to be array, null given
- Fatal error: Call to undefined function is_multisite()
- Can’t Change Theme And White Screen When Activating Any Plugin
- Call to undefined function
- Migrating Multisite – Database error, missing wp_blogs table
- WordPress white screen with word ‘error’ [closed]
- How to show the error causing the ‘There has been a critical error on your website’?
- White screen across whole of site including wp-admin
- I need https::/mysite.com instead of https::/mysite.com/wordpress
- Nginx 404, 500 errors and WordPress
- Warning: Invalid argument supplied for foreach() in portfolio-list.php [closed]
- Feed could not be found
- Can’t post to my WordPress site
- Error message prevents access to WP
- I could not access my website wp-admin after installing SSL. And error with mixed content
- Page Not Found on categories / tags / pages
- is there any function to store logs & send mail to admin?
- Error on moving WordPress site to Host from Local installation
- Visual editor become blank after updating an article
- wp_remote_get sslv3 alert handshake failure
- Getting notices on fresh 3.6.1 install
- WordPress: Notice:Object of class WP_Query could not be converted to int in on line
- Accessing my site using wp-admin does not load
- I was adding the custom CSS & JS using hooks and there was this error even I didn’t touch the wp-class-hook
- WordPress custom plugin gives error
- Can’t access my site please help
- WP displays “some_strange_number Version” in the bottom right corner
- @file_get_contents and wp_remote_get
- Warning: spl_autoload() [function.spl-autoload] (Term Menu Order)
- Error establishing a database connection error on a site that was working fine previously
- WordPress code problem [closed]
- 403 Forbidden error nginx
- Getting 404 error on homepage only
- ‘Invalid Error’ when saving theme options – only in Google Chrome
- Fatal error, is this because of host?
- Of thumbnails and folder permissions
- What are the issues using the Test Cookie Fix?
- Media dint apper in wordpress media library after uploaded through file manager
- When trying to access home page, WordPress appends /wordpress to domain name which gives 404 error
- Getting an error on a new website
- Fatal error: Uncaught Error: Call to undefined function add_action()
- call_user_func_array() error on my blog
- Cannot update WordPress Core via admin dashboard
- When writing a new blog post error message ‘ sorry, you are not allowed to edit this page ‘
- Error Warning: Invalid argument supplied for foreach()
- 404 Not Found Error showing when I run wordpress
- Gtmetrix: avoid bad requests
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘add_custom_scripts’ not found or invalid function name
- CSS and JS not loading after uploading onto server
- D_FILE already defined in /home/staneppsjr/public_html/wp-config.php on line 82
- Header already sent, error shows core files
- : this page isn’t working. is unable to handle the request. Http error 500
- admin page error
- Theme unit test error
- Installation problem with wordpress xampp
- BuddyPress: bp-core-template-loader.php error blocking access to wp-admin
- 403 Forbidden on site logo image upload
- Undefined index action Cannot modify header
- TOO MANY REDIRECTS ERROR when redirecting buddypress register page to WordPress sign up
- wp_list _table You do not have sufficient permissions to access this page error
- Dashboard doesn’t work propertly
- How to fix 502 errors on my WordPress site hosted on Windows Azure that only occur when I update a post?
- Error establishing a database connection in godaddy.com
- Where can I get a full list of wordpress errors in plain text?
- WordPress doesn’t recognise my email address and I’m missing the wp-config file in PHPmyadmin cPanel to make alterations
- Parse error: syntax error, unexpected ‘$q74ed’ (T_VARIABLE)
- Fixing this error “A description for this result is not available because of this site’s robots.txt”
- Fatal error: Call to a member function update() on a non-object in my resturant plugin file restaurants.php
- Fatal error: require(): Failed opening required ‘load.php’
- Can (slow) Internet speed get you a 500 server error? [closed]
- Getting an error when trying to migrate to DV server from Grid with Media Temple [closed]
- Fatal error: Uncaught Error: trim(): Argument #1 ($string) at \wp-includes\class-wp-query.php
- How to fix Notice: unserialize(): Error at offset 12620 of 12651 bytes error?
- syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW) [closed]
- Error code 499 on specific cron job
- Please Help Me, How to Fix PHP Error Undefined Array Key “srcset”
- My websit dosent worke http errors 500
- 403 forbidden in admin console: fix seems to be temporary and then error is back
- Uncaught DivisionbyZeroError: Wp_reschedule_event
- How can I fix this deprecation error?