Serious error after deleting unused user capability
-
I had registered a new user role using the add_role function in my functions.php file like this:
add_role('fellowship_affiliate', 'Fellowship Affiliate', array( 'read' => true, // True allows that capability 'edit_posts' => false, 'delete_posts' => false, // Use false to explicitly deny ));
This worked fine, but upon loading the admin page that deals with user groups I noticed I had misspelled the word fellowship (typing too fast) and it ended up as
felloship_affiliate
So I edited the functions.php and corrected the mistake. Then when I refreshed the admin page it still showed the old spelling AND the new one as two separate user roles.
So I did a search in the database for the misspelled version in wp_options and deleted it.
Now I have this horrible message when I try to access the admin area:
=====
Warning: array_flip() [function.array-flip]: The argument should be an array in /home/content/w/o/o/woodenpier/html/zachary/tca/wp-admin/includes/menu.php on line 193You do not have sufficient permissions to access this page.
=====I can not access my admin area at all but a thorough search for others with this error returned a likelihood that it was a conflicting plugin (like the one that manages user groups).
So I deactivated ALL plugins via the database… but still have no luck.
Any any any help would be so much appreciated! Obviously I am over a barrel here as I am locked out!
- The topic ‘Serious error after deleting unused user capability’ is closed to new replies.