lundi 12 octobre 2015

WordPress - “You do not have sufficient permissions to access this page” in production but not locally with AWS and Bedrock

I have an installation of WordPress setup using Bedrock(http://ift.tt/1BkCG40) hosted on Amazon Web Services' Elastic Beanstalk. I am getting the following error when I try logging in with my admin user:

"You do not have sufficient permissions to access this page"

What's strange is that I only get this error in production. Locally everything works fine. The rest of the site also works fine in production.

I've been trying for quite a while, however none of the things I've tried seem to help. Below are some notes of what I've tried/noticed:

  • Did not change table prefix for database
  • Checked usermeta table - all the values are fine for wp_capabilities and wp_user_level
  • Tried creating a 'force-upgrade.php' script.
  • Can't access any admin pages by changing the URL (e.g wp-admin/themes.php)
  • The issue arose after the switch the Bedrock
  • Made sure the config files were identical in both environments

Any help would be much appreciated.




Aucun commentaire:

Enregistrer un commentaire