-1

Warning: Cannot modify header information - headers already sent by

Getting that error after I upload my WordPress theme from my localhost to a live website.

1 Answers1

0

See How_do_I_solve_the_Headers_already_sent_warning_problem? > FAQ Troubleshooting « WordPress Codex

(This error) is usually because there are spaces, new lines, or other stuff before an opening tag, typically in wp-config.php.

kerrin
  • 3,376
  • 1
  • 26
  • 36
  • Its a problem with the functions.php file not the wpconfig file. – small aaron Nov 10 '17 at 23:29
  • As the link goes on to say, 'This could be true about some other file too, so please check the error message, as it will list the specific file name where the error occurred'. Follow the steps given, but with the functions.php file. – kerrin Nov 10 '17 at 23:32
  • I have already followed all those steps. Still no fixes. But if i remove all the functions i have created the problem goes away. This is confusing, because its working fine on my localhost – small aaron Nov 10 '17 at 23:43
  • Is your localhost the same operating system as the live site? Or is it Windows vs Linux? – kerrin Nov 10 '17 at 23:47
  • Both are on Linux. The only difference is the wordpress versions. The live site is on 4.8.3. and the localhonst on 4.8.1. Could that be causing the problem? – small aaron Nov 10 '17 at 23:49