最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp admin - Undeletable posts, users or other content

programmeradmin1浏览0评论

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?

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?

Share Improve this question asked Dec 8, 2015 at 23:54 ArsylumArsylum 1114 bronze badges 1
  • Interesting observation: The failing deletion procedure strips the respective user off it's role and nickname. Possibly others fields as well. – Arsylum Commented Dec 13, 2015 at 0:08
Add a comment  | 

1 Answer 1

Reset to default 0

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.

发布评论

评论列表(0)

  1. 暂无评论