Redirected site from instructions/no login (27 posts)

  1. Dana
    Posted 2 years ago #

    I have moved my wordpress site, well actually duplicated it. It's here http://ufochick.com
    and here http://profile.mytwinflame.info

    I am really confused. I downloaded the wordpress files from bravenet (my host) then uploaded them into UFOchick.com. (all on the same host)
    The UFO site was working but the links/tabs took you to the old site. But I could access everything the links were just profile.mytwinflame.info links and addresses once you left the UFO mainpage.

    So I went to the instructions here on how to move a site and changed the theme code then put it back like directed to. All the links changed and everything is great but I can't log in and my members can't.

    So I have 2 sites running off one database as best I can tell. I have about 1000 hours into the site and am afraid of losing it.

    Could my issue be that 2 sites are running? How can I just disable the one site if that is the issue? I am afraid of losing stuff.

    Any suggestions? I've got people who need to log in to their accounts. No one can log in from me to the members. It's a non for profit site.

    Oh and when I try to log in on the page it says "not found".

  2. jayseae
    Posted 2 years ago #

    Is ufochick.com the new site? I ask, because it looks like profile.mytwinflame.info has links to ufochick.com.

    If all you did was download the information from one site and upload it to the other, then the links will naturally point to the other one.

    Though it sounds like you then changed the theme, which would fix your links - but not necessarily your login.

    To do that, you would need to actually login to the new site (which I think is ufochick.com, so I'm really not sure).

    Looking at the source of your login page (because that's the only one I looked at), there are icons, backgrounds and other items that come from profile.mytwinflame.info. Also, you have some redirects that go to:


    It looks like maybe this plugin has something to do with it, so you'll want to check that. And make sure all your assets are pointing to the right place in your various templates from your theme, because it doesn't look like they are right now.

    If you have these values hardcoded, you might want to consider using the wp_upload_dir function instead, so if you move at any point, you don't need to change things.

  3. esmi
    Forum Moderator
    Posted 2 years ago #

    Did you review the relevant instructions in Moving_WordPress?

  4. Dana
    Posted 2 years ago #

    Yes I used the instructions but now I cannot find the exact instruction page I used.

    After I moved a copy of the site to UFOchick.com the site would come up on UFOchick.com (which is the important thing because people need the info) but once they clicked any link it took them to the old site.

    I hunted and hunted through this site. Much of it is over my head I'm sorry to say. The directions I used (from here) said I could finish changing the links from profile.mytwinflame.info to UFOchick.com by changing the theme's (Mantra) (I think this is the right file, I'm trying to remember) wp-config.PHP file by adding script and then saving, loading the site and then removing the script.

    Sure enough all the public pages load as UFOchick.com now. BUT I cannot log in.

    I have manually searched through files trying to find what is wrong..no luck.

    To clarify I am trying to move the site to UFOchick.com. I have a lot of traffic there already.

    I have userpro a purchased plugin running. I don't want to delete it because it includes all the people who have signed up for the site. It is similar to buddypress.

    If I can just get logged in I think I can figure out the rest.

    Thank you for any suggestions. :) I have been trying to follow directions.

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    now I cannot find the exact instruction page I used.

    Try reviewing the page at the link I posted above.

  6. Dana
    Posted 2 years ago #

    It is not that one I will hunt through my history

  7. esmi
    Forum Moderator
    Posted 2 years ago #

    The page I posted a link to is THE canonical reference for moving a site. any other tutorial that you might have read elsewhere cannot be really be trusted.

  8. Dana
    Posted 2 years ago #

    meanwhile any idea on how to get logged in? What file to access? The site is moved I just cannot get logged in as an administrator.

  9. Dana
    Posted 2 years ago #

    This is what I used to move the rest of the site.


  10. jayseae
    Posted 2 years ago #

    The login page is at wp-login.php at the new domain and you should see a WordPress login page. (I didn't add a direct link, to try and minimize any extra, unwanted activity to that page - but if you still can't find it let me know for more details.)

    However, that page isn't styled, which makes it seem like you may be missing something else.

    It looks like the CSS from the wp-includes directory is working:


    But the CSS from the wp-admin doesn't work:


    That would likely indicate a permissions problem, or (somewhat less likely) that it doesn't exist and simply can't display the file. Still another possibility is that it's related to one (or more) plugins. You may want to try disabling them and seeing if that helps the situation.

  11. esmi
    Forum Moderator
    Posted 2 years ago #

    This is what I used to move the rest of the site.

    You need to follow the instructions in Moving_WordPress. Your site was not moved correctly.

  12. Dana
    Posted 2 years ago #

    If I try to log in it takes me to the hosting company's page and says I do not have permission to access the information. So I tried logging in with the hosting company then doing the login, still does not work.

    If I login from my site it says "not found"

    How do I disable plugins if I cannot login?

  13. esmi
    Forum Moderator
    Posted 2 years ago #

    Try resetting the plugins folder by FTP or phpMyAdmin.

  14. Dana
    Posted 2 years ago #

    Ok changed the file name to plugins.hold. No change.

    My htaccess file is the same as it always has been.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

  15. jayseae
    Posted 2 years ago #

    There are still a bunch of graphics with links to http://profile.mytwinflame.info/, but they are probably not causing the problem (directly) - however, that doesn't mean that they aren't a symptom of a move gone awry.

    If you have disabled the plugins directory and there is still a problem, you should check the other permissions (notably the wp-admin directory), because it is still inaccessible:


    And it is returning a 404 error (not found), not 403 error (not authorized).

    The CSS alone isn't going to prevent you from logging in, but it does indicate that there is a problem accessing the directory, and even if you do login successfully via the unstyled form, you won't be able to get past it since the directory is inaccessible.

    If you find that the directory permissions are correct, you should also check for an authentication file. Look in the .htaccess file for a line similar to this one:

    AuthUserFile /usr/something/something/.htpasswd

    The part at the end is the file name. The part prior to the end is the path to the file - similar to Windows (or whatever operating system you use).

    If that line is there, and .htaccess cannot find that file, then that explains the problem. Make sure the path and file name are correct. It would indicate why this comes up when requesting something in wp-admin:

    "You must be a registered member to view this part of UFOchick.com. Please click the register tab for the private part of our site."

  16. Dana
    Posted 2 years ago #

    Thank you I will check the files shortly.

    The site is loading perfectly. The message you got is correct because you have to be a registered member to access that part of my site.

    The issue is just that I cannot login.

    There is NO line like that in the HTaccess file. I copied mine above.

  17. jayseae
    Posted 2 years ago #

    I do understand what you are saying.

    The problem is that the login form submits its results to a script within the wp-admin directory, which appears to be protected in some way. But there needs to be a way to submit the request to an unprotected form first, in order to access that resource, and that's just not there.

    Namely, since that directory appears protected, and the only way to get to it is by logging in, it's a bit of a catch-22.

    If you could log into another directory, then there would not be a problem - you would log in to (some other directory, which isn't protected), and then you would have access to the resource: In this case, wp-admin. But since you can't, it's stuck. You can't log in, and you can't access the way to log in. So one thing or the other will have to give.

    Since we don't have access to the system, it's a bit of a guessing game for us here. There are a limited number of likely options as to why the directory may not be accessible:

    - The directory may not have the correct permissions (generally 755).

    - The directory may have authentication turned on (this is the file I mentioned in the previous post).

    - Something else might be preventing access, such as a plugin (and it might use one or both of the other methods).

    Since you have disabled the plugins, by renaming them, and you have checked the permissions, and you have checked for the existence of an authentication file, it's likely not any of those.

    But by checking to see if a file is available to someone browsing (this is the CSS link I have posted), it means simply accessing the directory, or even a file in the directory, is causing problems.

    A 404 error - not found - is being thrown. This is a server error. The "you must be" message is a part of that, and is likely configured somewhere on your server (possibly in your theme).

    Ultimately, it means that the one issue you are having is that you can't access the wp-admin directory, which is what you need to do to login. Anything you submit via wp-login.php simply won't be processed until that is corrected, and that is what needs to be corrected.

  18. Dana
    Posted 2 years ago #

    I can access all the files through the host. There has to be something broken.

    This happened when I followed these instructions.

    Edit functions.php

    If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

    1. FTP to the site, and get a copy of the active theme's functions.php file. You're going to edit it in a simple text editor (like notepad) and upload it back to the site.

    2. Add these two lines to the file, immediately after the initial "<?php" line.

    Use your own URL instead of example.com, obviously.

    3. Upload the file back to your site, in the same location. FileZilla offers a handy "edit file" function to do all of the above rapidly; if you can use that, do so.

    4. Load the login or admin page a couple of times. The site should come back up.

    5. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.


    After these instructions from wordpress.org the links were fixed but the login was broken.

    Can you aim me at something in the theme file that would have been broken by doing this?

  19. jayseae
    Posted 2 years ago #

    I really don't have much additional direction for you. But here is some more detail, in case it helps.

    Look at this:


    (Shows the wp-admin CSS.)

    Then look at this:


    (404 page, telling you to log in.)

    Look at this:


    (Redirects you to the login page.)

    Then look at this:


    (403 unauthorized error from the server.)

    At least one of the problems is that the wp-admin directory is preventing you from logging in. Fix that and you can move on to fixing the asset errors.

    If you can't find it on your own, you should ask your host for help looking for permissions (as described above), or you may need to hire someone (note that link is to WordPress jobs - they may or may not be able to help you with a hosting issue).

  20. jayseae
    Posted 2 years ago #

    In comparing IPs, your new site is on one host (Bravehost?) and your old one is on another (GoDaddy?). I don't know if you wanted to secure the wp-admin directory, or they did, or it happened unintentionally (through a plugin perhaps), but it seems to be at least a part of the problem.

    If you want to secure the wp-admin directory, there is a section about doing so - and it specifically talks about using Basic Authentication, rather than securing it (which would be using permission-based security), which could break functionality, which appears to be what we're seeing here.

  21. Dana
    Posted 2 years ago #

    The sites are both on one host. The database settings are the same. I have contacted my hosting company (bravenet) they are pretty good about helping, I've tried here and then posted on the manta theme forum.

    So far nothing has helped. I guess the next move is to delete the theme and replace it with the original wordpress one and then see if I can log in, if so them reload mantra and redo all the settings and custom colors.

    I've spent about 30 hours going through files and comparing can't find any discrepancies between the backed up files and the current files so far.

  22. jayseae
    Posted 2 years ago #

    I only mentioned two hosts because your IP addresses resolve to different locations.

    Just as a technicality, don't delete your theme, because then you may lose data (and the time spent on it). It would be better to deactivate it instead. Since you cannot log in, try renaming it via FTP (or a control panel). This may render your outward-facing site inoperable for a time, but it may also allow you to log in, if it is indeed the problem.

    Immediately after you rename it, try logging in and if it works, try reactivating a default theme, such as Twenty Fourteen.

  23. Aaron "The Monkey" Leal
    Posted 2 years ago #

    Hey terry,

    Its Aaron here I was going through your site, I noticed that it could be the plugin issue or its could be a DNS issue. You can go to this Link about plug-ins and other common issues.

    Thanks, Aaron.

  24. Dana
    Posted 2 years ago #

    Ok, my hosting service got back with me. They said;

    It looks like you don't have any files in the admin folder:

    These do appear on the practice site, but this is forwarding directly over to the address at UFOchick.com which doesn't exist:

    You are missing files for the WordPress installation on UFOchick.com

    Soooooo.....What is the best way to re-load wordpress without losing data from the backend/hosting files?

  25. jayseae
    Posted 2 years ago #

    Overlooked that one, sorry. Missing files can certainly resolve as 404 errors, since that is what they are, but didn't think of that as an option for 403 errors!

    Nonetheless - the wp-admin directory shouldn't contain any actual content (and it certainly doesn't contain any content now, regardless). There are scripts, but they are typically not modified by users.

    The best way to get you up and running is going to be to copy the contents of the existing directory from your other site over to the new one.

    I'd say there is an above average chance that will get you going again. If not, then it's onto the next item at that point.

  26. Dana
    Posted 2 years ago #

    I will explain what was wrong so others will know and I have one more question.

    Ok I copied the missing files over to the correct place. I still could not login.

    So I went to my backup files and used notepad++ (a must have free program) to compare the login files. Sure enough there was a difference in the lines of about 5 lines of script. So I copied and saved both files then deleted the file that was currently being used and put in the old file.

    Presto I was in.

    So last issue. I have somewhere lost the members pics. I know they are still stored on the test site files but it now directs to the new site.

    Which files will contain the pics? I assume as long as I reload them and they are named the same it will just fix itself?

  27. Dana
    Posted 2 years ago #

    Oh to clarify on the pictures. I had it set to download them on my database. NOT link them.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.