Undeletable posts, users or other content

Recently I tried to move a WordPress instance to a production server and (besides other issues) had to deal with a page that could not be deleted via the admin panel. The success message would show up but the entry remains in the list and doesn't get removed. Also the content association with this page was somehow broken. It would always show an empty box when editing but the content that should have been there was showing up on the page.

Now I've came across a undeletable user in another instance that I didn't do anything funky with (like changing it's environment). Same behavior: It gives me the green 'User deleted' message but doesn't actually do anything. I noticed that for this user the Name column is empty, but in the database the user_nicename value is there. Weird..

I know this is probably very hard to diagnose and answer here, but maybe someone had similar issues in the pasts and gained some insights?

Topic bug wp-admin customization Wordpress

Category Web


When I see behavior like this, it's almost always a corrupt MySQL table or two. You can activate WordPress's built-in repair tool by adding define( 'WP_ALLOW_REPAIR', true ); to your wp-config.php file and visiting {$your_site}/wp-admin/maint/repair.php

You can remove the define after you're done.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.