• Hi.

    I know the whole ‘moving wordpress’ issue has been raised a billion times and that the WP codex has support info too, BUT I’ve been through all of that as well as a gazillion other forums and help pages all telling me to try numerous solutions; none of these have resolved my problem and I’m so overwhelmed by trying all of that, that I thought I’d just ‘put it out there’ and ask for help specific to my issue.

    If I sound a little tense it’s BECAUSE I AM!!! Sorry.

    So, I’ll break down the steps I’ve taken and the outcome I want.

    Goal: Move site https://www.tuckshopmemories.com from current host (Virtual Names) to new host (1 and 1) but keep domain registered with old host (Virtual Names).

    What I did:
    1. Used filezilla to download everything from OLD server
    2. Exported DB using myPHP
    3. Created new DB on NEW host’s server
    4. Imported OLD DB export into new DB
    5. Edited wp-config to match new DB (including db host address as 1 and 1 place the db on a seperate server)
    6. Used filezilla to upload files downloaded in step 1 but with edited wp-config
    7. Set OLD host to redirect (masked) domain to new host

    Problem: I can’t login at wp-login. This is the error I get:-

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/42/d636644370/htdocs/blog/wp-config.php:1) in /homepages/42/d636644370/htdocs/blog/wp-login.php on line 390

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/42/d636644370/htdocs/blog/wp-config.php:1) in /homepages/42/d636644370/htdocs/blog/wp-login.php on line 403
    Tuckshop Memories

    ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.

    What I’ve tried:
    1. Changing my password in the DB
    2. Deactivating all plugins by amending their folder names in filezilla
    3. Deactivating theme by same method (I know, but I thought I’d give it a go!)
    4. Creating new user via myPHP
    5. Following forgotten password link (this works but when I follow the link in the email it leads to a white page)
    6. Generated new SALT info and saved to edited wp-config

    For now I’ve reactivated my OLD server version of the site until this is fixed.

    p.s the sire works, you can navigate it and most of the images and links are working, you just can’t login.

    …..help?…..

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

    (@macmanx)

    You have unexpected whitespace (either a space or an entire line) on line 1 of the wp-config.php file. See this guide for more info.

    Alternatively, replacing the file by essentially re-building it from the wp-config-sample.php file a fresh download may resolve the issue.

    Thread Starter thintin

    (@thintin)

    Thanks for the reply James.

    This is one of the solutions I’ve already tried, but I did as you suggested and built a new wp-config from the sample.

    The lines of text have now gone from the top of the page (the ones about the header) but the error box is still above the login area saying that cookies are blocked due to unexpected output.

    I’m still unable to login ??

    this is the new site location so that you can see the error:-

    feel free to create a new user if it helps.

    Moderator James Huff

    (@macmanx)

    Hm, it’s possible that other files were similarly damaged during transfer.

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, 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 thintin

    (@thintin)

    Hi.

    Update time…

    I tried what you said, still the same.

    So I:-
    1, renamed my wp-content folder (so it wasn’t used)
    2, uploaded the default wp-content folder
    3, deleted my wp-config (so that I could perform a fresh install)
    4, deleted my DB and created a new one
    5, ran the install and, as you’d expect, everything worked and I had a new, empty installation.

    So then I…
    6, exported the new, empty DB as a reference
    7, imported my old DB

    Result: broken site.

    So I…
    8, restored my old wp-content folder
    9, dropped all tables from the DB and imported the blank ‘backup’

    So then I had a working, clean install of WP and my wp-content folder in place but no DB.

    Then I tried…
    10, Using Notepad++ to edit the old DB and change all instances of the old URL to the new one; then imported it (this was a something a few guides suggest).

    It didn’t work.

    After recovering my monitor from where it landed in the petunias and arranging for an emergency glazier to replace my study window, I came back here, in readiness for the next suggestion…keep em coming; I WILL NOT BE BEATEN BY THIS!

    Current situation: Clean install but with my old wp-content folder.

    Moderator James Huff

    (@macmanx)

    Can you double-check the siteurl and home values in the database? https://codex.www.ads-software.com/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database

    Thread Starter thintin

    (@thintin)

    I have already changed them to match the hosting address, but I did notice in the posts table that they all still have GUIDs with the site URL rather than the host address.

    I tried adding a 301 redirect to my htaccess for anything looking for the original URL but that didn’t work (and felt like a bodge job rather than a fix)

    A guy on fiverr says he can fix it for just that, $5, I’m sorely tempted to take him up on the offer but would that feel like defeat…..

    Moderator James Huff

    (@macmanx)

    Ok, and the site is still broken with /wp-content/plugins/ renamed to /wp-content/plugins.broken/ and with /wp-content/themes/[current-theme]/ renamed to /wp-content/themes/[current-theme].broken/ ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Moved hosting to '1 and 1' now can't login’ is closed to new replies.