Since I can’t think of anything else, you can try to create a new user as an administrator programmatically.
Add this to your functions.php file:
wp_insert_user( array ( 'user_pass' => 'password2', 'user_login' => 'test', 'role' => 'administrator' ) ) ;
You can use anything for user_pass(the password) and user_login(the login name).
Click any new page, link, etc. only ONE time, then remove the code from your functions.php file. (It will try to create a new user on every page load otherwise.)
Then, try logging in as this new user and see if you have all permissions.
Thread Starter
markf1
(@markf1)
OMG! that worked and I was able to log in to the dashboard. I see my original username as well as the other 3 users, but the role I have assigned to me is “None”. In fact the other 3 users also have a role of “None”
I tried changing my role to “Administrator” and saving the change but it won’t stick. keeps reverting back to role “none”
Not sure what to do now but this was a good step forward. Thanks!
I am truly stumped now. I have always been able to edit a user role as long as I was an administrator.
Are you using any type of user role management plugin by any chance?
Nice looking site BTW.
Thread Starter
markf1
(@markf1)
no I am not using any such plug in. I was able to delete my original user name and etc. then re created it and gave myself the admin role. that worked. still when logged in as Admin I cannot change the other user roles from “none” back to admin or even subscriber.
weird. I would like to know what is causing this so I could avoid it in the future. meanwhile thanks very much for getting me to this point!!
Do you have a recent database backup?
Thread Starter
markf1
(@markf1)
yes I do have a recent db back up.
Then you might want to try using that backup to populate a new database and then edit your wp-config.php file to point to the new database.
Thread Starter
markf1
(@markf1)
thank you for your reply. that is what I have been doing all along. taking the db from my local install and populating the new/copy install in my Test folder at fatcow.
thanks again for your help.
taking the db from my local install
Ah – that’s not as straightforward as you might think. You’d need to have a look at Moving_WordPress.
Thread Starter
markf1
(@markf1)
Thank you . I had read that as well as some other tutorial type stuff that I got thru google search.
Because the site appears and functions exactly as it should I think I’m basically doing it right. why it changed the role of the 4 registered users from “admin” to “none” and then wouldn’t allow me to edit my user info and restate my role as admin, I don’t know.
I’m pretty sure I followed the correct procedure and have even tried a couple of different ways.
One I just copied all of the site files and folders form local host to the new host. then did the database install.
I also tried just doing a clean install of wordpress and then replacing the wp-contents folder and re-populating the database.
Not sure if one method is better that the other. They both produced the same result. The site appeared and it worked perfectly. Just could not log into dashboard.
Thanks for your help!