Title: Installing plugin breaks wp-admin/
Last modified: March 3, 2023

---

# Installing plugin breaks wp-admin/

 *  [William](https://wordpress.org/support/users/nootron/)
 * (@nootron)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/installing-plugin-breaks-wp-admin/)
 * I am getting the following error in wp-admin after installing this plugin:
 *     ```wp-block-code
       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](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [3 years, 1 month ago](https://wordpress.org/support/topic/installing-plugin-breaks-wp-admin/#post-16526680)
 * 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](https://wordpress.org/support/users/nootron/)
 * (@nootron)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/installing-plugin-breaks-wp-admin/#post-16526756)
 * 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](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [3 years, 1 month ago](https://wordpress.org/support/topic/installing-plugin-breaks-wp-admin/#post-16527359)
 * 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.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/installing-plugin-breaks-wp-admin/#post-16527359)
 * Status: not resolved