It sounds like your account may have lost admin privileges for some reason.
If you are not using Multisite, access your database via phpMyAdmin (most hosting providers offer this in your hosting account’s control panel), go to the wp_users table and find the row for your user_login. Note the ID of this row. Now, go to the wp_usermeta table and find the wp_capabilities row for your user_id. Set the value of this row to:
a:1:{s:13:"administrator";b:1;}
Yes. That is what it is set to. Any other thoughts of what it could be?
-
This reply was modified 2 years ago by
mherzner.
Are you perhaps just logging in to the wrong account?
Make sure you’re using the email address from that user_login.
I wish it was that easy. I have done everything I can find on the internet. I am lost at this point.
Are there any other accounts on the site?
Basically, is this site-wide or just the 1 account?
I have the only account on the site.
Do you normally log in through https://assetintelligencegroup.com/wp-login.php or do you log in through a button in your hosting account’s control panel.
If it’s through a button in your hosting account’s control panel, I recommend contacting your hosting provider’s support about this, as those systems often alter how WordPress’s users system fuctions.
If you normally log in through WordPress directory as mentioned at the beginning, try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.
If you’d like to manually make a backup of your site first, please follow the steps at https://wordpress.org/documentation/article/wordpress-backups/
Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.
If that makes no difference, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.
And, if that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Hopefully, this will force the default theme to activate and rule out a theme-specific issue (theme functions can interfere like plugins).
It still takes me directly to the homepage, but when I type in https://assetintelligencegroup.com/dashboard/, I get a new error:
404 – File or directory not found.The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
That’s because it’s the wrong URL, try /wp-admin/ instead.
Yes. That is where I log in, but that just takes me to the homepage. That is why I tried to type in /dashboard to see if that took me to the dashboard.
It did not.
Ok, please try the rest of the steps in my earlier reply.
I tried them all. just get this message when trying to access the dashboard:
Sorry, you are not allowed to access this page.
Would you please use https://snipboard.io to share a screenshot of that?
Hmm, yeah that’s a standard error, not unusual.
Do you have a backup prior to this that you can restore from?