• Resolved bobjgarrett

    (@bobjgarrett)


    I have had to move a WordPress web site from one server to another which I had to do by copying all files and copying the database then setting them to work together through manual processes. Note, in case it is relevant, that the new site is https while the old site was http.
    Everything is working in terms of the live site for visitors but I am unable to get to the dashboard.
    When logged in as an Admin user the black bar appears but the link where the dashboard icon is simply goes to the site URL (ie not …/wp-admin) and no drop down menu appears.
    If I type in the url and /wp-admin I get the message “Sorry, you are not allowed to access this page.” but I am 99% sure I am the admin user and have checked this in the database.
    I have tried disabling all plugins and going to a standard theme to no avail.
    Any suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    (@macmanx)

    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;}

    Thread Starter bobjgarrett

    (@bobjgarrett)

    Thanks for your feedback which confirms what I was thinking. However, the usermeta table does have this and if I print_r the current user info it includes…
    Array ( [administrator] => 1 ) [cap_key] => wp_sassttfqmc_capabilities [roles] => Array ( ) [allcaps] => Array ( [administrator] => 1 ) [filter] => [site_id:WP_User:private] => 1 )
    Hence why I said I am 99% sure the system sees the user as Admin. (Note the previous server had these extended table names and hence some metakeys).
    The SQL table came from a Godaddy site so I am wondering whether they modified something else too.

    Moderator James Huff

    (@macmanx)

    Hm, interesting.

    Ok, 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.

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    Thread Starter bobjgarrett

    (@bobjgarrett)

    Thanks for your further suggestions.
    Yesterday in desperation I tried all manner of solutions setting it up again, then modifying the config files, modifying the user and user meta tables and could not solve the problem.
    In the end I created a new site and then gradually replaced the files and database tables with those from the other site. Then it worked!
    No idea what was causing the problem.
    Thanks for the suggestions.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dashboard Not Appearing’ is closed to new replies.