• I have a wordpress site that is on my localhost. I uploaded/copied all of the files for the site into a folder on my account at fatcow. i also created and imported the database for the site using phpMyAdmin from the cp at fatcow. The site appears and functions exactly as it should:
    http://www.openrangeimaging.com/Test/helitrax/

    The problem is I cannot log into the WordPress dashboard. I have tried resetting the password and still no luck. I keep getting the following error message:
    You do not have sufficient permissions to access this page.
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Can anyone advise me on what might be the problem? Should I have dome a new wordpress install versus copying all the files from my local host?. Like I said the site appears and functions perfectly, just can’t get logged into the dashboard. Any help much appreciated.

    Thank you.

Viewing 10 replies - 16 through 25 (of 25 total)
  • 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!

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Can't log into dashboard’ is closed to new replies.