Support » Fixing WordPress » Can’t Login to WordPress

  • Hi,
    My client has an old wordpress (version 3.2.1) site which I have backed up and restored on a sub.domain on my server while we create her a new site. Since completing the ‘restore’ however, I can no longer login into the subdomain, it takes me to a page saying there is no update required – wordpress database is up to date and redirects to the live site. I have tried a few recommendations on how to fix this but nothing seems to work.
    Any advice?

    Also the line:
    Warning: Creating default object from empty value in /home/content/45/6853745/html/wp-includes/user.php on line 660
    Often appears at the top of the page.

    • This topic was modified 2 years, 10 months ago by cwalker0.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @cwalkerO,

    When you took backup from old server did you replace site_url and home_url in Database?
    Please replace both the parameters in your backed up database it.

    Otherwise, you need to add below both line in your wp-config.php file and replace your site URL with “”.

    define('WP_HOME', ''); // no trailing slash
    define('WP_SITEURL', '');  // no trailing slash

    That worked – thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t Login to WordPress’ is closed to new replies.