Locked admin out accidentally
-
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.
- The topic ‘Locked admin out accidentally’ is closed to new replies.