• Hi there

    I am trying to log into the back end of my website , but very time I try and access the WP-Admin page I get a critical error.
    I have tried deactivating all my plugins manually in PHP my Admin and through a WordPress management system on my host provider’s c-panel platform.
    I have als tried renaming the Theme folders as was suggested elsewhere in t forum.

    But I still can’t get it working …

    The site itself works no problems .. but no login is possible

    I included a screenshot of the error …

    and the text I get is as follows:

    Fatal error: Uncaught Error: Call to undefined function wp_kses() in /home/meadowridgeafc/public_html/wp-content/db.php:28 Stack trace: #0 /home/meadowridgeafc/public_html/wp-includes/load.php(550): require_once() #1 /home/meadowridgeafc/public_html/wp-settings.php(124): require_wp_db() #2 /home/meadowridgeafc/public_html/wp-config.php(97): require_once(‘/home/meadowrid…’) #3 /home/meadowridgeafc/public_html/wp-load.php(50): require_once(‘/home/meadowrid…’) #4 /home/meadowridgeafc/public_html/wp-admin/admin.php(34): require_once(‘/home/meadowrid…’) #5 /home/meadowridgeafc/public_html/wp-admin/index.php(10): require_once(‘/home/meadowrid…’) #6 {main} thrown in /home/meadowridgeafc/public_html/wp-content/db.php on line 28

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • This error is suggesting that wp_kses() function doesn’t exist, which is a core WordPress function that is used to filter text content and strips out disallowed HTML.

    One reason could be a custom db.php drop-in file in the wp-content directory that could be trying to directly access the wp_kses() function before WordPress is loaded. It’s possible that this file was introduced by a plugin and wasn’t removed on deactivation. Can you try temporarily removing/renaming this file and testing your admin access? This will disable the database without deleting it.

    Another reason could be that the core files are corrupted. Updating WordPress can replace the missing files and resolve the issue. You can also try re-uploading the core WordPress files (except for /wp-content/ and wp-config.php).

    I would also recommend replacing your WordPress core files manually. See: https://www.ads-software.com/documentation/article/updating-wordpress/#manual-update

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