Support » Networking WordPress » 6.4.1 update causes fatal error

  • Resolved danbeach

    (@danbeach)


    After updating from 6.3.2 to 6.4.1, my site is completely unusable. The error log has the following:

    PHP Fatal error:  Uncaught Error: Call to undefined function wp_kses() in /home/wp/wpdev/wp-includes/functions.php:6019
    Stack trace:
    #0 /home/wp/wpdev/wp-includes/functions.php(5500): wp_trigger_error('', 'Function wpdb::...', 16384)
    #1 /home/wp/wpdev/wp-includes/class-wpdb.php(1338): _deprecated_function('wpdb::escape', '3.6.0', 'wpdb::prepare()...')
    #2 /home/wp/wpdev/wp-content/sunrise.php(11): wpdb->escape('wpdev.stolaf.ed...')
    #3 /home/wp/wpdev/wp-includes/ms-settings.php(47): include_once('/home/wp/wpdev/...')
    #4 /home/wp/wpdev/wp-settings.php(141): require('/home/wp/wpdev/...')
    #5 /home/wp/wpdev/wp-config.php(163): require_once('/home/wp/wpdev/...')
    #6 /home/wp/wpdev/wp-load.php(50): require_once('/home/wp/wpdev/...')
    #7 /home/wp/wpdev/wp-blog-header.php(13): require_once('/home/wp/wpdev/...')
    #8 /home/wp/wpdev/index.php(17): require('/home/wp/wpdev/...')
    #9 {main}
    

    There’s an updated wp-settings.php file that has the require of kses.php, so I don’t know why the function would be undefined. I’ve restored me site to 6.3.2 and tried the update a second time with the same results.

    In case it matters, this is a multisite installation and has been ever since before WordPress supported multisite natively.

    Any suggestions?

    • This topic was modified 3 weeks, 5 days ago by James Huff. Reason: moved to Networking WordPress since this is a multisite issue
Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    Please review WordPress 6.4 Master List and attempt troubleshooting steps recommended therein.

    Thread Starter danbeach

    (@danbeach)

    Thanks for the confirmation. I believe I’ve traced it down to a custom theme/plugin that we use but it’s been very difficult to get a useful error message to track what function or other part of the code is failing. For the time being, I’m also locking the production site to 6.3.2 until we can figure it out.

    Moderator t-p

    (@t-p)

    Glad you got it sorted 🙂

    Thread Starter danbeach

    (@danbeach)

    I just wanted to follow-up in case anyone ever runs into this (unlikely, though). The problem wasn’t the theme or a plugin. It was the sunrise.php drop-in that I’ve had for many years to support multiple domains in my multisite. The site was set up before version 4.5 when domain mapping was integrated into core. Everything continued to work with it until 6.4.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.