I can log in and get the admin bar on the site, but when I try to access the dashboard area I get the dreaded `There has been a critical error on this website.` notification. I update my main site using wp cli and rsync. I can log in fine and reach the dashboard to my dev site but can’t see the dashboard on my main site, even after syncing. This has been working fine with no changes to my script for some time.
I tried disabling plugins by renaming the directory, this did not help.
I created a new admin user, this did not help and it had the same problems.
I found [this page](https://www.role-editor.com/restore-lost-wordpress-admin-permissions/) from another r/wordpress post, but I cannot complete the process, because at `SELECT * FROM myprefix_options WHERE option_name=’myprefix_backup_user_roles’;` There is no `myprefix_backup_user_roles` entry in my table. `myprefix_user_roles` does exist. At any rate, the two dbs have been synced and one is working while the other is not. Also, my rsync command preserves permissions (`rsync -avz –exclude wp-config.php ./* `) and my dev site is working fine, so it should not be a permission problem. I am not sure what I should be attempting at this point. Thank you
[ad_2]