WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] accidentally changed URL under General Settings..now can't access dashboard

[Resolved] accidentally changed URL under General Settings..now can't access dashboard

Viewing 15 replies - 1 through 15 (of 26 total)
  • WPyogi
    Forum Moderator

    @wpyogi

    You’ll need to use one of the methods in the link you posted above – here:

    http://codex.wordpress.org/Changing_The_Site_URL

    to change those settings back.

    What, specifically did you try?

    More specifically this is what I tried: (I did the edit function.php first)

    – went into FileManager, then clicked on the “wordpress” folder
    – clicked on the “wp-includes” and clicked on “functions.php”
    – entered the following right after “<?php”

    update_option(‘siteurl’,’http://example.com/blog’);
    update_option(‘home’,’http://example.com/blog’);

    saved this modification.

    reloaded http://www.amar-international.com/wordpress/wp-login.php and it gave me a weird (not the same login page I remembered) login page. When I entered the username and password, the page loads to a page with the Home, About, Services, etc. all in a row; but when you click on any of them nothing happens.

    WPyogi
    Forum Moderator

    @wpyogi

    Did you use your URL instead of “example.com/blog”

    – went into FileManager, then clicked on the “wordpress” folder
    – clicked on the “wp-includes” and clicked on “functions.php”
    – entered the following right after “<?php”

    update_option(‘siteurl’,’http://example.com/blog’);
    update_option(‘home’,’http://example.com/blog’);

    saved this modification.

    You need to use Theme fuctions.php file not wp-includes fuctions.php file.

    You need replace with your urls http://www.amar-international.com/wordpress

    oh yes of course.

    update_option(‘siteurl’,’http://www.amar-international.com/wordpress);
    update_option(‘home’,’http://www.amar-international.com/wordpress’);

    so the root folder doesn’t have “Theme” functions.php.

    The root folder does have “htdocs” folder. Inside this folder there is no “Themes” folder. There is a “wordpress” folder. Inside this “wordpress folder” there is no “Themes” folder. There is a “functions.php” as mentioned earlier. There is a folder called “wp-content” which does have “themes” folder, but no “functions.php”.

    WPyogi & govpatel thank you so much for helping. I’m sure all of this could be resolved via phone tech support. But this forum will do. I’ll b on until this is resolved. Oh and I’ve backup up the FTP files.

    esmi
    Forum Moderator

    @esmi

    What theme are you using?

    esmi, I do not know what theme? Will it say in the directory?

    All themes should have functions.php file which will be in httdocs/wordprees/wp-content/themes/your theme.

    The other way to check if you have correct urls is to go database if you are familiar I have video on how to reset urls on my site

    esmi
    Forum Moderator

    @esmi

    You appears to be using the redie-30 theme. Check that theme’s folder in wp-content/themes.

    Looking at your code I see
    <link rel="stylesheet" href="http://www.amar-international.com/wp-content/themes/redie-30/style.css" type="text/css" media="screen" />
    which does not have wordpress in url where wordpress is installed.

    Ok. I see.

    So I did find the “functions.php” I applied the following

    update_option(‘siteurl’,’http://www.amar-international.com/wordpress);
    update_option(‘home’,’http://www.amar-international.com/wordpress’);

    with the “wordpress”..loaded a couple of time and it gave me an error

    Parese error: syntax error, unexpected ‘,’ in/data/10/0/141/114/793440/user/813114/htdocs/wordpress/wp-content/themes/redie-30/functions.php on line 2

    Then when I removed this “update_option…” the company login loads, but again I cannot log into the dashboard.

    Without the “wordpress” inserted in the URL, so below:

    update_option(‘siteurl’,’http://www.amar-international.com’);
    update_option(‘home’,’http://www.amar-international.com/’);

    I get this:
    Parse error: syntax error, unexpected ‘,’ in /data/10/0/141/114/793440/user/813114/htdocs/wordpress/wp-content/themes/redie-30/functions.php on line 2

    oh..i did include an apostrophe in the above updated_option..just so you know.

    I figured that if I can get into the dashboard then I can fix this mess I’ve created. I should have read the “Changing The Site URL” (http://codex.wordpress.org/Changing_The_Site_URL) before actually making the change in the General Settings of the dashboard.

    You can not change the urls in Settings>>>General with out moving your wordpress files folders in root if that is what you want so you do not have wordpress in urls.

    The other way is to use wordpress from a directory and you will find instructions here

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘[Resolved] accidentally changed URL under General Settings..now can't access dashboard’ is closed to new replies.