Support » Fixing WordPress » Multiple PHP errors after WP 4.6.1 & plugins upgrade

  • Resolved david-o-hara

    (@bigdaveygeorge)


    I have read the WP4.6 master list and cannot fix my issue, I have exhausted most avenues, here is my issue:

    Website was absolutely fine and then I have performed these upgrades:

    WordPress Upgrade to 4.6.1 – no issues
    Beautiful Taxonomy Filter from 1.2.9 to 2.10 – no issues
    Contact Form DB from 2.10.20 to 2.10.22 – no issues
    Akismet from 3.1.11 to 3.2 – no issues
    Yoast SEO from 3.4.2 to 3.5 – no issues
    Custom Post Type UI 1.3.5 to 1.4.1 – no issues
    Advanced Custom Fields PRO 5.4.1 to 5.4.5 – no issues
    Installed WordFence latest version – no issues

    If you use the admin area eventually (and sporadically) you will get multiple different PHP error messages, here are a selection:

    y() expects parameter 1 to be a valid callback, function ‘default_password_nag_handler’ not found or invalid function name in /home/xxxx/public_html/xxxx/wp-includes/plugin.php on line 524

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘update_nag’ not found or invalid function name in /home/xxxx/public_html/xxxx/wp-includes/plugin.php on line 524

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘maintenance_nag’ not found or invalid function name in /home/xxxx/public_html/xxxx/wp-includes/plugin.php on line 524

    Fatal error: Call to undefined function update_right_now_message() in /home/xxxx/public_html/xxxx/wp-admin/includes/dashboard.php on line 313

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘default_password_nag_handler’ not found or invalid function name in /home/xxxx/public_html/xxxx/wp-includes/plugin.php on line 524

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘wp_plugin_update_rows’ not found or invalid function name in /home/xxxx/public_html/xxxx/wp-includes/plugin.php on line 524

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxxx/public_html/xxxx/wp-includes/plugin.php:524) in /home/xxxx/public_html/xxxx/wp-includes/pluggable.php on line 1174

    Warning: Cannot modify header information – headers already sent by (output started at /home/xxxx/public_html/xxxx/wp-includes/plugin.php:524) in /home/xxxx/public_html/xxxx/wp-includes/pluggable.php on line 1174

    This can happen on the WP admin homepage, when editing a post, a custom post type post, the theme selection page, a plugins setting page I have even seen some PHP errors on the front end.

    I have also restored a backup and attempted the same upgrades again with the exact same result.

    I have disabled themes and plugins with the same result.

    Any help much appreciated as I have no idea what is causing this issue.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    Have you tried:
    – deactivating ALL (yes all) plugins temporarily to see if this resolves the problem (plugin functions can interfere). If this works, re-activate them individually (one-by-one) to find the problematic plugin(s).
    – If you can’t get into your admin dashboard, try resetting the plugins folder by FTP. Also remember to deactivate any plugins in the mu-plugins folder (if you have created such folder). The easiest way is to rename that folder to mu-plugins-old.
    – switching to the unedited default Theme (Twenty Sixteen) for a moment using the WP dashboard to rule out any theme-specific issue (theme functions can interfere like plugins). If you don’t have access to your admin area, use FTP , or your web-host’s cPanel or whatever file management application your host provides (no Dashboard access required). Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme. That will force your site to use it.
    – If all the above steps do not resolve the issue, then try MANUALLY updating. Download a fresh copy of the WordPress .zip file to your computer, unzip it, and use that to copy up all files and folders EXCEPT the wp-config.php file and the /wp-content/ directory. You may need to delete the old wp-admin and wp-includes folders and files on your server before uploading the new ones. Please read the Manual Update directions first.
    Backup: If you haven’t already done, always backup everything (including your database) before doing any actions, just in case something really goes wrong. You can never have enough backups!

    Thread Starter david-o-hara

    (@bigdaveygeorge)

    The difficulty right now is that the admin area has everything enabled and has no error messages at all no matter where I go (they were all there 30 mins ago), I just know they will be back at some point. I have no idea what is triggering it.

    Thread Starter david-o-hara

    (@bigdaveygeorge)

    After posting this I have just refreshed and have a white screen with the error:

    Fatal error: Call to undefined function wp_prepare_themes_for_js() in /home/xxxx/public_html/xxxx/wp-admin/themes.php on line 123

    Thread Starter david-o-hara

    (@bigdaveygeorge)

    That cleared up and now it is: Fatal error: Call to undefined function wp_edit_posts_query() in /home/xxxx/public_html/xxxx/wp-admin/includes/class-wp-posts-list-table.php on line 142

    Sorry for the multiple posts but cant seem to edit a post.

    Thread Starter david-o-hara

    (@bigdaveygeorge)

    *Touch wood* I have fixed this by upgrading from PHP 5.4 to 5.6

    Moderator t-p

    (@t-p)

    Glad to know it:)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Multiple PHP errors after WP 4.6.1 & plugins upgrade’ is closed to new replies.