Hi,
I have recently begun experiencing this problem as well.
(http://wordpress.org/support/topic/109084)
I also experience it in fresh 2.1.2 installations.
1)
In categories.php I tested using this code:
if ( current_user_can('manage_categories') )
{ echo 'can manage'; }
else { echo 'can not manage'; }
if ( current_user_can('add-category') )
{ echo 'can add'; }
else { echo 'can not add'; }
And it seems it believes that I can "manage-category" but not "add-category"
2)
I have checked wp_userdata / wp_capabilities - everything seems correct, e.g: a:1:{s:13:"administrator";b:1;}
3)
If I execute my own PHP/SQL code I can delete categories.
4)
In WordPress code, it seems that "die(-1)" means permission failed.
...
However, as I am still new to WordPress (and Ajax) internals, I have had troubles diggging deeper... So I have some questions:
When inside manage-categories and one tries to add a category... Are there any checks done before:
admin-ajax.php / switch-case 'add-cat' ?
What do you think is the best way for me to output log-messages in both PHP / Ajax? (best way to track "code flow")
I do not have a lot of luck using "wp_die" ...
...
Anyways, I can not prove it... But I have a feeling this may be permission related... in either of two ways:
Perhaps there is a security/user/context issue with Ajax/Javascript/Php/WordPress on Apache/PHP/MySql?
Perhaps it can also, in some weird way, still be chmod or MySql security/user/context related?
...
What versions of Apache etc. are we experiencing this problem on? Perhaps that could give a clue.