• Resolved siriusly

    (@siriusly)


    Hello — I stupidly locked myself out of admin when setting some options for another user. (I think I didn’t see that the settings screen had changed back to “Admin” rather than the specific user.)

    In any case, I tried replacing the content of the wp_user_roles in the options table with the data show in this thread, but the front end of the site then displays a series of errors (please see below)

    Can you please help me restore the default capabilities so I can get back into admin? Thank you!!!
    ______________________
    Folowing are the errors that display on public front end of site (replaced site name and admin username here with generics). Errors go away when I revert wp_user_roles to previous, but then I am locked out of admin.
    ______________________

    Warning: array_keys() expects parameter 1 to be array, string given in /home/adminusername/sitename.org/wp-includes/capabilities.php on line 124

    Warning: Invalid argument supplied for foreach() in /home/adminusername/sitename.org/wp-includes/capabilities.php on line 124

    Warning: array_keys() expects parameter 1 to be array, string given in /home/adminusername/sitename.org/wp-includes/capabilities.php on line 124

    Warning: Invalid argument supplied for foreach() in /home/adminusername/sitename.org/wp-includes/capabilities.php on line 124

    Warning: array_keys() expects parameter 1 to be array, string given in /home/adminusername/sitename.org/wp-content/plugins/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php on line 36

    Warning: array_intersect(): Argument #2 is not an array in /home/adminusername/sitename.org/plugins/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php on line 36

    Warning: reset() expects parameter 1 to be array, null given in /home/adminusername/sitename.org/wp-content/plugins/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php on line 37

    Warning: array_keys() expects parameter 1 to be array, string given in /home/adminusername/sitename.org/wp-content/plugins/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php on line 36

    Warning: array_intersect(): Argument #2 is not an array in /home/adminusername/sitename.org/plugins/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php on line 36

    Warning: reset() expects parameter 1 to be array, null given in /home/adminusername/sitename.org/wp-content/plugins/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php on line 37

    Warning: array_keys() expects parameter 1 to be array, string given in /home/adminusername/sitename.org/wp-content/plugins/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php on line 36

    Warning: array_intersect(): Argument #2 is not an array in /home/adminusername/sitename.org/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php on line 36

    Warning: reset() expects parameter 1 to be array, null given in //home/adminusername/sitename.org/plugins/js_composer/include/classes/core/access/class-vc-current-user-access-controller.php on line 37

    Site Name

    You are now logged out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter siriusly

    (@siriusly)

    UPDATE: I just created a new admin user in database & logged into admin with the new user. Deleted the AAM plugin as well as all database references to aam. Reinstalled AAM plugin & all is fine.

    Hi there,

    For future reference. Install CodePinch plugin. It’ll help you with some of those errors.

    Appreciate your interest in AAM.
    Regards,
    Vasyl

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Locked admin out accidentally’ is closed to new replies.