• This has been a problem on two different sites I’ve migrated to my server.
    SYMPTOMS:
    – Public facing side works correctly
    – Am able to get to wp-login.php and submit form data.
    – Upon submittal, user (admin) is shown as logged in (evidenced by black bar across top, showing username, but no drop downs are accessible).
    – Redirected to home page, but still logged in.

    MOVE PROCEDURES from previous site:
    Note – I have about 30 other WP sites on this new server, ones that were moved previously have done so without incident. Using the same templates on nginx conf files which work flawlessly on other sites.

    -Both old and new servers are Nginx, old server is Php5.56+, new server is 7.19+
    -Permissions are set correctly on new server, 0755 and 0644 specified in docs.
    – Domain names remain the same, will be adding SSL once this is resolved.

    Operations performed on old server:
    – WP-optimize DB
    – Update core and plugins
    – Removed plugins not needed
    – Remove unneeded themes
    – use a db manager to export / import

    Operations on new server:
    – Upload wp-content plugins, themes, uploads
    – make minor config changes to wp-config
    – repoint at Cloudflare to new server (CF is presently disabled).

    Things I’ve tried:
    – Looking at logs on server, no errors shown.
    – Enabling debug mode in wp-config.php (no errors shown)
    – Adding siteURL and HomeURL to wp-config.php
    – I DO use Nginx caching, however it is set to ignore wp-admin, and I use on other WP sites without issue access the admin area.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Looks like you followed the technical steps for the move.

    I do see this a lot with caching plugins and especially cloudflare. I would check hard if I may have missed that any potential caching options/plugins were fully disabled and flushed. And also clear your browser cache.

    Thread Starter mleder

    (@mleder)

    CF is set in bypass for both A and Cname records. Cache has been purged and then set to development mode (100% pass through).

    Browsers (both FF and Chrome) have their caches repeatedly cleared. Also I clear domain and session cookies.

    I use microcaching with nginx and it has worked perfectly with all but these two sites that I’m presently experiencing difficulty.

    In the server block for the site nginx conf file I set this routine which effectively skips caching, has not failed me in over a year until now:

    # Don’t cache URIs containing the following segments
    if ($request_uri ~* “(/wp-admin/|/admin-*|/purge*|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|/buy/|/checkout*|/purchase-confirmation*|/welcome-member*|/feed/|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php|sitemap(_index)?.xml|[a-z0-9_-]+-sitemap([0-9]+)?.xml)”) {
    set $skip_cache 1;
    }

    • This reply was modified 7 years, 2 months ago by mleder.

    May I know, Did you disable all the plugins before migration. Because, sometimes plugins cause an issue after migration.

    If you want, you can give another try, just before the migration, disable all the plugins. after migration check whether you are able to login of admin page or not. If you succeed so far then just enable all the plugins one by one.

    Thread Starter mleder

    (@mleder)

    Actually, I just figured it out. I neglected to mention that I changed the prefix for all the tables upon import (for security reasons). What I didn’t do was run two queries on two tables and update all prefixes:

    SELECT * FROM newprefix_options WHERE option_name LIKE ‘%wp_%’

    AND

    SELECT * FROM newprefix_usermeta WHERE meta_key LIKE ‘%wp_%’

    When I did this, I was able to immediately login successfully!

    Thanks for your help.

    that’s great, you got the cause for an issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘After moving site – login returns to home page’ is closed to new replies.