• Hi,

    Firstly, I must apologise – I made some changes to the General – URL settings and basically pointed it to a folder that does not exist.

    I added the /home to one of the following : Site URL or Home URL.
    Subsequently, I followed instructions on WP support site and managed to get the site up (6 hour battle) by editing wp-config.php

    The site is up and running now; and I can login and access the settings page. However, the buttons are greyed out; by removing the 2 lines in wp-config, the page is not accessible, and leaving it in wp-config, its greyed out.

    I recognise that editing wp-config is a temporary solution to get the site up and running.

    Is there a way to recover from this and put the URL settings back to non-greyed out?

    Thank you in advance.
    Dephy

Viewing 6 replies - 1 through 6 (of 6 total)
  • You can try editing the entries in the database directly rather than the method you used initially. Make sure to make a couple backups of your database before making any changes to it. You can get a step-by-step here:
    http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database

    Thread Starter dephyoon

    (@dephyoon)

    I checked the database, the record of the URL in the database is correct.

    do i need to first remove the ‘define’ statements in wp-login.php?

    thanks loads.

    Remove those statements from wp-config.php since you won’t need access to your site via admin to check the db. Also make sure to check both ‘siteurl’ and ‘home’ option values in the wp_options table. The page I linked you to above (scroll towards the top of that page) explains their relationship if you’re not sure what your setup calls for.

    I think you should never modify wp-login.php.

    Edit here as I had written some before Bill posted last:
    He is correct, you need to verify both fields set correctly

    If you mean wp-config.php, yes, remove or correct the two define statements, they will override and grey-out the database settings in wp-admin.

    Thread Starter dephyoon

    (@dephyoon)

    @bill : I did check both the entries in database. its the same url as the ‘define’ statements i use. I tried removing the statements, again the website (and dashboard & login pages) become inaccessible, too many redirects.

    @st Even : yes; I meant wp-config.php; when I remove that, i cannot access the website or wordpress dashboard. so i had to put back the two ‘define’ statements.

    any other ideas where to look?

    Then another problem came up :
    I copied the URL to login to the database. http://mysql.xxxxx.com on browser. then found i could not logout (sigh). My little knowledge is becoming a dangerous thing. By closing the browser, can I assume the session will time out eventually?

    thanks again.

    You are welcome.

    This from the codex page referenced above:

    Note: Both settings should include the http:// part and should not have a slash “/” at the end.

    Sometimes it’s better to have them greyed out, prevents another admin (and you ;| ) from accidental modification. I think it’s OK to run “forever” like that.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How do I edit the URL in General-Settings?’ is closed to new replies.