• Resolved alexn014

    (@alexn014)


    I just met with an old client.

    They wanted to change the URL of their site and did it through WordPress settings.

    Now we are unable to log in and I really need to solve this problem.

    I tried adding

    define(‘WP_HOME’,’https://example.com’);
    define(‘WP_SITEURL’,’https://example.com’); into the wp-config.php file, but I’m getting this:

    Fatal error: Call to undefined function update_option() in /home/content/72/6480072/html/wp-includes/functions.php on line 2

    Any help is greatly appreciated, this is a very serious time sensitive situation.

Viewing 15 replies - 1 through 15 (of 15 total)
  • kmessinger

    (@kmessinger)

    You should go back to the original wp-config.php.

    Then make the change in the dashboard>>settings>>general.

    Thread Starter alexn014

    (@alexn014)

    My problem is that I can’t log in, so I don’t have access to the dashboard.

    Abhishek Kumar

    (@abhishekfdd)

    You have to edit the site_url directly from the database in the options table

    Thread Starter alexn014

    (@alexn014)

    abhishekfdd, where would I find this options table in my file manager?

    kmessinger

    (@kmessinger)

    Going back to the original config file should give you access again.

    It was only after you made the changes that you get access to the dashboard?

    Thread Starter alexn014

    (@alexn014)

    My client changed the URL through WordPress, which caused the site to go blank and I could no longer log in. In an attempt to solve this I added the script into wp-config.php. This didn’t solve it and instead gave me an error, so I am still unable to log in and access the dashboard.

    kmessinger

    (@kmessinger)

    Try this
    https://codex.www.ads-software.com/Changing_The_Site_URL

    There are non dashboard ways to fix the problem at the above link.

    Abhishek Kumar

    (@abhishekfdd)

    For editing the table you need database access , you must be using application like phpmyadmin from there you can edit the options table check the link here https://wordpress.shadowlantern.com/how-change-wordpress-url-phpmyadmin/ .
    Make sure to take database backup first

    Thread Starter alexn014

    (@alexn014)

    kmessinger, that’s exactly what I did. I’ve tried the wp-config.php method and the functions.php method and I still get an error.

    kmessinger

    (@kmessinger)

    Thread Starter alexn014

    (@alexn014)

    I did as abhishekfdd suggested and I still have the error and I still can’t log in.

    kmessinger

    (@kmessinger)

    Rather than looking at the symptoms not being able to log in, lets look at the error. Update option and functions.php on line 2. Line 2 is commented out.

    I think that a reinstall of WordPress is needed.
    https://codex.www.ads-software.com/Upgrading_WordPress_Extended#Overview_of_the_Upgrade_Process

    You can turn off all the plugins using the file manager provided by your host or ftp.

    Thread Starter alexn014

    (@alexn014)

    I’m trying to backup my site files and my FTP doesn’t allow me to download. Any suggestion for this?

    Thread Starter alexn014

    (@alexn014)

    kmessinger, I reinstalled WordPress and I am still getting errors.

    This is what I now receive:

    Warning: require(/home/content/72/6480072/html/wp-includes/load.php) [function.require]: failed to open stream: No such file or directory in /home/content/72/6480072/html/wp-settings.php on line 21

    Fatal error: require() [function.require]: Failed opening required ‘/home/content/72/6480072/html/wp-includes/load.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/72/6480072/html/wp-settings.php on line 21

    Thread Starter alexn014

    (@alexn014)

    Upon further inspection I noticed that my FTP client wasn’t uploading all of the WordPress install and was aborting files. I added all files by hand and now the site is back up and I was able to log in! Thank you very much kmenssinger and abhishekfdd! You guys allowed me to remedy a very stressful situation.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘URL was changed now I can't log in’ is closed to new replies.