WordPress.org

Forums

User Access Manager
Serious error after deleting unused user capability (1 post)

  1. Zachary Sequoia
    Member
    Posted 1 year ago #

    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 User Access Manager admin page where I can choose from the list of user roles, 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 UAM 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 193

    You 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 UAM).

    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!

    https://wordpress.org/plugins/user-access-manager/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • User Access Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic