Viewing 7 replies - 1 through 7 (of 7 total)
  • It sounds like you uploaded the theme owner’s database without doing a find and replace of the site’s url to use your local? Is that possible?

    Because that is the only thing I could think of. The theme shouldn’t be redirecting admin (does the theme include changes to the admin theme as well). Also are there any plugins in the plugin folder?

    Thread Starter Kate

    (@katendarcy)

    First, thanks for your response. : ) However, I didn’t upload their DB. It was the theme folder only. As soon as I switched themes, the Dashboard did change a little, almost like there was an error maybe? I’ve tried deleting the theme and I restarted the computer, but it’s still re-directing to their URL.

    Even after completely deleting the theme? Very strange.

    Just to be sure:

    You had a fresh install of WP.
    Added the new theme to the themes folder.
    Logged into Admin and activated the theme.
    WP started redirecting.

    Deleted the theme folder completely, and it still redirects?

    Is there anything missing there? Or anything that is different?

    Thread Starter Kate

    (@katendarcy)

    Actually it wasn’t a fresh install. I was using a test DB I have locally and just attempted to switch the theme.

    About the theme: You’re correct, I deleted it. But, again, I couldn’t log in to actually “switch” the theme back to what I started with.

    That’s the part that puzzles me. I only switched the theme. Since the theme is now gone but it still redirects, obviously it’s something that was changed in WPs settings/DB, but I’m just not sure what.

    Make sense? (Thanks again!)

    Yeah… Anything is possible.

    Seems like the theme must have something in it that is changing the database url settings. If that is the case, the theme wouldn’t be useable outside of the basic url without changes. (I haven’t ever seen anything like that or reason for it).

    If you just want to fix your test installation, you could manually go into your database (eg: using phpmyadmin), and update the wp_options table.

    i believe the “siteurl” and “home” rows should do it, but you would probably be best to export the database, do a find and replace for their url, and then reupload it.

    Thread Starter Kate

    (@katendarcy)

    “Seems like the theme must have something in it that is changing the database url settings…”

    It’s a little puzzling to me too. The funny part is that the fix for the person ended up being relatively simple! Anyways, thanks for the suggestion. I’ll give that a try. Take care, and thanks again for your time.

    Thread Starter Kate

    (@katendarcy)

    Thanks jcow: I made the changes in the DB. I’m still having some issues logging in, but hopefully I’ll get that squared away. (I’m “logged in” but it doesn’t re-direct me away from login.php).

    Anyway, once I fixed that I went and looked into the theme and the issue ended up being two lines in functions.php that were added, both using “update_option” to set the siteurl and home, as you stated. Thanks again!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can’t Login – Redirecting to Another Site – Ideas?’ is closed to new replies.