Hi,
the problem is that I have already changed and saved in the general tab and now I am getting an error message, is there a way of undoing this?
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
Backup your files and database just in case you make a mistake.
http://codex.ww.wp.xz.cn/WordPress_Backups
http://codex.ww.wp.xz.cn/Backing_Up_Your_Database
http://codex.ww.wp.xz.cn/Restoring_Your_Database_From_Backup
That link that Gangleri gave you is the best option. Look under the part of “Edit functions.php” and give that a try using update_option();
http://codex.ww.wp.xz.cn/Changing_The_Site_URL#Edit_functions.php
That will (hopefully) let you put the two values back without much fuss. If that works, then remove those two lines you added to functions.php.
If something goes really wrong then restore the file and/or database backup that you made (seriously, backups will save you hours of grief).