• I am having what seems to be a very common problem where I am redirected back to the login page when I login to mydomain/wp-admin and mydomain/wp-login.php.

    I just migrated my site to cPanel hosting from a small hosting service. I exported my database and following the instructions to load it on the new server. I edited my wp-config file to contain the new addresses. I don’t use a www address and verified in my domain settings that this isn’t the case. I’ve used myPhP to edit the database entries for siteurl and home. Both are accurate. I’ve modified the .htaccess file as suggested by some, and I’ve use a new clean .htaccess. None of this makes a difference.

    In fact, if I do a clean install of WordPress, I have access to the admin pages up until the point where I restore my old database to the new server. At this point, my site works perfectly, but I get redirected back to the login page when I try and access the back end. I’ve disabled all plugins and themes (by renaming the folders) and I still get the same result. I’ve read about 1,000 posts on here and none of the solutions have worked for me. Please help if anyone knows where I should look next. I’m guessing there’s a database setting somewhere that is causing my issue, but it’s a needle in the haystack situation for me at this point. Any suggestions would be greatly appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    – Check the error logs on your server for a more specific error message and see why it’s failing. If you need help locating them, ask your hosting provider to help you with that.

    Thread Starter WorkspacePros

    (@michael-barker)

    Tara,

    Thanks for the quick response.

    I disabled the themes and plugins. Then attempted login to recreate the error. These are the 4 errors that I received in the log file (see below). After looking in my database, there is no wp_usermeta table in the database. Is this my problem, if so, how do I correct it?

    [11-Aug-2015 20:39:00 UTC] WordPress database error Table ‘i1697728_wp1.wp_usermeta’ doesn’t exist for query SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (1) ORDER BY umeta_id ASC made by get_user_by, WP_User->init, WP_User->for_blog, WP_User->_init_caps, get_user_meta, get_metadata, update_meta_cache

    [11-Aug-2015 20:39:00 UTC] WordPress database error Table ‘i1697728_wp1.wp_usermeta’ doesn’t exist for query SELECT umeta_id FROM wp_usermeta WHERE meta_key = ‘session_tokens’ AND user_id = 1 made by wp_signon, wp_set_auth_cookie, WP_Session_Tokens->create, WP_Session_Tokens->update, WP_User_Meta_Session_Tokens->update_session, WP_User_Meta_Session_Tokens->update_sessions, update_user_meta, update_metadata

    [11-Aug-2015 20:39:00 UTC] WordPress database error Table ‘i1697728_wp1.wp_usermeta’ doesn’t exist for query SHOW FULL COLUMNS FROM wp_usermeta made by wp_signon, wp_set_auth_cookie, WP_Session_Tokens->create, WP_Session_Tokens->update, WP_User_Meta_Session_Tokens->update_session, WP_User_Meta_Session_Tokens->update_sessions, update_user_meta, update_metadata, add_metadata

    [11-Aug-2015 20:39:00 UTC] WordPress database error Table ‘i1697728_wp1.wp_usermeta’ doesn’t exist for query SELECT user_id, meta_key, meta_value FROM wp_usermeta WHERE user_id IN (1) ORDER BY umeta_id ASC made by require(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), WP->init, wp_get_current_user, get_currentuserinfo, apply_filters(‘determine_current_user’), call_user_func_array, wp_validate_auth_cookie, get_user_by, WP_User->init, WP_User->for_blog, WP_User->_init_caps, get_user_meta, get_metadata, update_meta_cache

    Moderator t-p

    (@t-p)

    After looking in my database, there is no wp_usermeta table in the database.

    That’s what he error seems to indicate – that table “doesn’t exist”.

    how do I correct it

    Try exporting your database again.

    Is this the guide you followed to move your site: https://codex.www.ads-software.com/Moving_WordPress

    Thread Starter WorkspacePros

    (@michael-barker)

    I followed it exactly and exported the database multiple times. As of today, I no longer have access to that server, it has been shut down. So I can’t export it again. Even if I did it wouldn’t make a difference because I have multiple exports and they are all identical. There are no references to wp_usermeta in my the SQL of my database export either so that is weird. It’s possible the original site was on an older version of WordPress. I will post the answer if I figure it out.

    Moderator t-p

    (@t-p)

    There are no references to wp_usermeta in my the SQL of my database export either so that is weird.

    that explains why its missing.

    It’s possible the original site was on an older version of WordPress.

    Since I have/had no access to your older server and WP installation, I have no way of confirming it

    In general, however, the database ( DB ) structure often changes between versions.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Login redirects back to login’ is closed to new replies.