Avatar of Kasonde Neddy
Kasonde Neddy
 asked on

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

Avatar of undefined
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


The link is below:

http://www.easywebzambia.com/homecare/wp-admin/
ASKER CERTIFIED SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Kasonde Neddy

ASKER
Thanks
Jason C. Levine

There's definitely some issue with that particular widget.  Which one is it?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Ray Paseur

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.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.