Jump to content

Recommended Posts

Posted

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 -----

Posted

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

Posted

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

Posted

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.

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...