"Cannot modify header information – headers already sent" …
-
Greetings!
I have a small WordPress install that I tried to change the Site Address (URL) from http://www.MySite.com/Wordpress to http://www.MySite.com, but didn’t get a change in redirection behavior (www.MySite.com still just delivered a placeholder image instead of pointing to the WordPress install). So, foolishly I also changed the WordPress Address (URL) variable to http://www.MySite.com and was promptly locked out of functionality.
I then edited functions.php using
update_option('siteurl','http://your.site.url:port/blog'); update_option('home','http://your.site.url:port/blog');
to get access back to my site, which worked, and then removed those lines from the file and saved it on the server.
I refreshed the page, everything seemed to be working fine, so I went to bed. Now this morning, I’m getting the following error message:
Warning: Cannot modify header information - headers already sent by (output started at /home/UserName/www/www/wordpress/wp-content/themes/ThemeName/functions.php:1) in /home/UserName/www/www/wordpress/wp-content/plugins/woocommerce/classes/class-wc-session-handler.php on line 63
I have insured that there is no whitespace at either the beginning or end of functions.php. I even rolled back the functions.php file to a version from 24hrs prior to making the edits via my host’s cPanel, with no effect.
Can someone please point me in the right direction?
- The topic ‘"Cannot modify header information – headers already sent" …’ is closed to new replies.