Trouble with warning in wordpress after moving from localhost to live server
Hi Experts,
I am having trouble when migrating a wordpress site from localhost to live server on godaddy. I have done the following:
1) Install a clean version of WordPress on the remote server
2) Move the WordPress databases and change the URL
3) Reinstall plugins instead of copying
4) Copy your theme and uploaded files
After upload, and doing the above, I am getting warning messages:
Warning: Cannot modify header information - headers already sent by (output started at /home/content/n/e/d/neddynedson/html/easyweb/homecare/wp-content/themes/alliance/inc/right_news_widget.php:44) in /home/content/n/e/d/neddynedson/html/easyweb/homecare/wp-includes/pluggable.php on line 897
Warning: Cannot modify header information - headers already sent by (output started at /home/content/n/e/d/neddynedson/html/easyweb/homecare/wp-content/themes/alliance/inc/right_news_widget.php:44) in /home/content/n/e/d/neddynedson/html/easyweb/homecare/wp-includes/pluggable.php on line 897
Also getting teh same warning messages on two plugins I am using...please advise what the problem could be? Tried re-activating plugins and disabling still getting problems.
WordPressPHP
Last Comment
Ray Paseur
8/22/2022 - Mon
Kasonde Neddy
ASKER
Now I cannot seem to access my wordpress admin, getting error:
Warning: Cannot modify header information - headers already sent by (output started at /home/content/n/e/d/neddynedson/html/easyweb/homecare/wp-content/themes/alliance/inc/right_news_widget.php:44) in /home/content/n/e/d/neddynedson/html/easyweb/homecare/wp-includes/pluggable.php on line 897
Why did you close this question with a bad grade? Why not engage in a little dialog with the experts? We want to help, but we cannot if you won't work with us here!
Kasonde Neddy
ASKER
I used ob_start() inside the functions page, and the pages with those warnings coming up, I gave a B rating cause I looked into warning header issue and found an alternate solution which worked.
Ray Paseur
Suit yourself. OB_Start() is a little like putting black electrical tape over the "check engine" light on your dashboard. Something is wrong in this script. You just don't know what or when it will really blow up. With a little dialog we might have been able to help you find the real problem and the real solution. Going forward, you might find EE more helpful if you do not disengage so quickly.
Warning: Cannot modify header information - headers already sent by (output started at /home/content/n/e/d/neddyn
The link is below:
http://www.easywebzambia.com/homecare/wp-admin/