简体   繁体   中英

Cannot delete Categories, tags! Wordpress

I am trying to add, delete default categories under default word press post. (means not creating any custom taxonomy etc)

Problem: Into the admin panel when I click on delete action for the category or a tag, it displays the error message " An unidentified error has occurred. " http://prntscr.com/f5eqkh .

Ajax response is showing You cannot delete terms (categories, tags, etc)You can't delete category A and B. Please deselect those and try again ,but upon refreshing the page the category was no more in the list (means deleted).

Tried: I've deleted all the plugins. Reverted the theme back to twentyfifteen.

But still, it does not add or delete the categories and tags without page refresh.

Is it in databases or something else? I am using the latest version of wp 4.7.4.

I have the same problem in past.

I have checked everything like you did. And then just find some spaces in my function.php file and unwanted <?php ?> PHP used in many line.

If you are using only PHP code for multiple lines then make sure do not use PHP tag multiple times in your code and also make sure no any unwanted spaces in the top, middle and bottom of your function.php file.

Try to check it once, It might solve your problem.

Thanks.

它很旧,但对于有这个问题的人来说,它对我有用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM