andypeat Posted January 28, 2004 Posted January 28, 2004 I have been getting the following problems in the forums section of PHP-Nuke and was hoping that someone would be able to shed some light onto what was going on. thanks. Andy ----- start of errors ----- Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/header.php:32) in /home/***/public_html/includes/sessions.php on line 249 Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/header.php:32) in /home/***/public_html/includes/sessions.php on line 250 ***: Forums Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/header.php:32) in /home/***/public_html/includes/page_header.php on line 529 Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/header.php:32) in /home/***/public_html/includes/page_header.php on line 531 Warning: Cannot modify header information - headers already sent by (output started at /home/***/public_html/header.php:32) in /home/***/public_html/includes/page_header.php on line 532 ----- end of errors ----- Quote
TCH-Dick Posted January 28, 2004 Posted January 28, 2004 open sessions.php and page_header.php in notepad and make sure there arent any spaces after the closing > Quote
andypeat Posted January 28, 2004 Author Posted January 28, 2004 I've checked both files and and they there's no space at the end of the file. The permissions on these files are both 644 would this have any bearing on it, and the file manager won't let me change them. Any more clues? thanks Andy Quote
andypeat Posted January 28, 2004 Author Posted January 28, 2004 Here is a section from one of those files if that will help in the diagnosis. ---- section from "page_header.php" lines 529-531 header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0'); } header ('Expires: 0'); header ('Pragma: no-cache'); --- thanks Andy Quote
Lianna Posted January 29, 2004 Posted January 29, 2004 Andy, Are you using File Manager through cpanel to edit those files? If so, instead open in notepad or other local text editor and make sure that there are no spaces or carriage returns after the close. Then FTP the files and overwrite the existing. Quote
andypeat Posted January 29, 2004 Author Posted January 29, 2004 I've opened these files in dreamweaver and textedit but there's no space or return after the ?> (is this the correct two characters to be at the end?) Is it worth putting the two files somewhere so that you can check them? thanks andy Quote
andypeat Posted January 29, 2004 Author Posted January 29, 2004 Thanks for all the help, I've just come across this post which fixes the problem. <http://www.nukecops.com/postt2605.html> thanks andy Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.