简体   繁体   中英

PHP Error Message, Wordpress Theme

I have a blog at: http://www.techonomic.com/

I created my own theme, and after porting to a new host, I get the following messages while trying to log in:

Warning: Cannot modify header information - headers already sent by (output started at /customers/c/5/c/techonomic.com/httpd.www/wp-content/themes/techonomic/functions.php:59) in /customers/c/5/c/techonomic.com/httpd.www/wp-includes/functions.php on line 861

Warning: Cannot modify header information - headers already sent by (output started at /customers/c/5/c/techonomic.com/httpd.www/wp-content/themes/techonomic/functions.php:59) in /customers/c/5/c/techonomic.com/httpd.www/wp-includes/functions.php on line 862

The trouble is, its hard to tell whats on those lines because funtions.php is only about 100 lines long, but obviously the code is making it longer when executed.

thanks for your help

Turn on output buffering. You probably have it disabled on your new server

Open up the file /customers/c/5/c/techonomic.com/httpd.www/wp-content/themes/techonomic/functions.php , go to line 59, and figure out what is outputting data before the headers are sent. It could be an error message for a failing function call, or any number of other things outputting data prematurely.

Bottom line: You cannot output any data to the browser before trying to change the HTTP headers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM