• Resolved raspberryh

    (@raspberryh)


    Hi guys,

    I developed a WP site at domainname.com/new. Now I have copied everything from /new into the root directory. The site is somewhat functioning properly, but I can’t login to wp-admin.

    If I go to the OLD URL, domainname.com/new/wp-admin, I can log in, but then once I change my site URL in the settings to domainname.com (take out the /new), then it redirects to domainname.com/wp-login.php. When I try to login there with the same u/p, it says that I have the wrong u/p. So it is impossible to login from there.

    I tried many of the things posted on the forums, and nothing seems to work. I also tried hard-coding the site URL in wp-login.php via
    //FIXME: do comment/remove these hack lines. (once the database is updated)
    update_option(‘siteurl’, ‘https://www.domainname.net’ );
    update_option(‘home’, ‘https://www.domainname.net’ );

    but it is still broken.

    Please help asap as this is for a client ??

    Oh also, I can not access the database to go in and change things (I know, it sucks).

    Thank you,
    H

Viewing 12 replies - 1 through 12 (of 12 total)
  • Elan Technosys

    (@elantechnosys)

    Moving WordPress

    URL?????

    Thread Starter raspberryh

    (@raspberryh)

    I’m hesitant to share the URL on the public forum, because then in the future if someone searches for the company name, this post might come up and I just think it would be kind of weird. Is the URL necessary?

    Elan Technosys

    (@elantechnosys)

    When I try to login there with the same u/p, it says that I have the wrong u/p.

    You told that that’s why I asked for URL

    Thread Starter raspberryh

    (@raspberryh)

    Well what I mean is, when I try to log in at /wp-login.php with the usual credentials, it says I have the wrong username/password. Although, that u/p DOES work when I log in at /new/wp-admin. So I don’t know why it doesn’t work at /wp-login.php.

    Elan Technosys

    (@elantechnosys)

    Try /wp-admin

    also are you able to change the password on https://www.domainname.net/wp-admin ?

    Thread Starter raspberryh

    (@raspberryh)

    At /wp-admin all I get is a 500 server error. No idea why.

    Elan Technosys

    (@elantechnosys)

    Try to contact your host because that is 500 internal server error.

    Thread Starter raspberryh

    (@raspberryh)

    Hey good news!!! Finally got access to the database. Bad news – When I look at the options table, the site URL is set to the correct value. ?? So the problem is not the site URL option in the database.

    Thread Starter raspberryh

    (@raspberryh)

    I don’t think it has anything to do with the host. A PHP script can cause a 500 server error…

    Thread Starter raspberryh

    (@raspberryh)

    I looked at the server logs & found this error:
    Cannot redeclare get_temp_dir()

    from wp-includes/functions.php

    so I’m going to investigate.

    Elan Technosys

    (@elantechnosys)

    Can you tell on which file you found that error message?

    Thread Starter raspberryh

    (@raspberryh)

    It’s fixed!! I think somehow I got some old files mixed in there maybe, I am not sure. I recopied the files from wp-includes and wp-admin and now I am not getting the server error.

    Thanks guys!!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Moved WP directory, can't access admin’ is closed to new replies.