Can someone help, please?
I’ve just messed up my site which I’ve had “under construction” for a few months, but not yet launched. I thought I followed instructions from WP Forum and YouTube tutorials correctly for changing my domain name as follows:
I did a database backup of my blog. Then logged into CPanel, then into phpMySQL. Went to my active child theme: twentytwelve. Only one file there: style.css. I added a new file: functions.php. Edited this empty file by typing in the following three lines (nothing else):
/*Changing domain names in hard-wired fashion*/ update_option(‘siteurl’,’http://smartgridix.com’);
(Sudden thought: should I have enclosed those lines between
At first, I commented out all of the three lines — then I got brave, and changed to commenting out only the first text line describing the action (as above), presumably making active the two lines of ‘update_option’ commands. I saved this active file (as I had saved previously the fully commented inactive three lines).
I went to Dashboard>Settings>General and changed my home and site URLs to smartgridix.com. I saved these changes.
I then typed in the new URL, “smartgridix.com/wp-admin” to Mozilla browser and the following error message came up:
/* Changing domain names in hard-wired fashion update_option(‘siteurl’,’http://smartgridix.com’); update_option(‘home’,’http://smartgridix.com’);*/
Warning: Cannot modify header information – headers already sent by (output started at /home/dompeter/public_html/wp-content/themes/MyTwentyTwelveChild/functions.php:9) in /home/dompeter/public_html/wp-includes/pluggable.php on line 876
Panicking (this happens easily when making coding changes, at least to me), I uploaded/restored my saved database files using my C-Panel, but still get the same error message above.
I’d really appreciate a helping hand, as I am now stuck and cannot access my web site. I spent two days reading and watching how-to YouTube videos on how to do this domain name change, and I still screwed up!
My only other option is to recreate the web-site/blog from scratch with a fresh copy of WP and with the new URLs but it seems to me that that should not be necessary…..
Many thanks and sorry for longish message.
- The topic ‘Changing Domain Name Failure’ is closed to new replies.