• I am getting the following error in wp-admin after installing this plugin:

    PHP Fatal error:  Uncaught Error: Call to undefined function wp_kses() in /var/www/wordpress.example.org/wp-content/db.php:28
    Stack trace:
    #0 /var/www/wordpress.example.org/wp-includes/load.php(550): require_once()
    #1 /var/www/wordpress.example.org/wp-settings.php(124): require_wp_db()
    #2 /var/www/wordpress.example.org/wp-config.php(71): require_once('...')
    #3 /var/www/wordpress.example.org/wp-load.php(50): require_once('...')
    #4 /var/www/wordpress.example.org/wp-admin/admin.php(34): require_once('...')
    #5 /var/www/wordpress.example.org/wp-admin/plugins.php(10): require_once('...')
    #6 {main}

    If I remove the symlink at wp-content/db.php, the 500 error goes away and I can use the plugin in a limited fashion.

    I am using the latest version of WordPress on a Debian 11 server with PHP 8.2

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Hmm I think something might have gone wrong with the installation of the plugin. That function isn’t used in db.php. Can you delete the plugin completely and reinstall it?

    Thread Starter William

    (@nootron)

    I deleted a reinstalled a few times. I’m using the wp cli to install fwiw. The error is indeed bizarre. It points to line 28 which doesn’t have anything that could trigger the error.

    The function is a wp core function, so it makes even less sense.

    I did get some hits on google that referred to other plugins that also placed a db.php file in wp_content/ so maybe that’s something?

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    I’ll be honest then, I have no clue.

    • If you take a look inside the db.php file is it definitely from Query Monitor?
    • Can you restart the php-fpm process? The opcode cache may be stale.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Installing plugin breaks wp-admin/’ is closed to new replies.