PDA

View Full Version : PHPBB2 Forum Error


ssskaya
12-08-2002, 12:13 AM
I have configured phpBB2 forum to my website.

It is a great forum program. But after when I inserted a new table at the top of the page (in order to provide a link back to the home page), the forums page started to give the following errors after when I open the page (as a script, not an error window):
--------------
Warning: Cannot add header information - headers already sent by (output started at /forum/index.php:5) in /forum/includes/sessions.php on line 182

Warning: Cannot add header information - headers already sent by (output started at /forum/index.php:5) in /forum/includes/sessions.php on line 183

Warning: Cannot add header information - headers already sent by (output started at /forum/index.php:5) in /forum/includes/page_header.php on line 449

Warning: Cannot add header information - headers already sent by (output started at /forum/index.php:5) in /forum/includes/page_header.php on line 450

Warning: Cannot add header information - headers already sent by (output started at /forum/index.php:5) in /forum/includes/page_header.php on line 451
----------------------

When I refresh the page they are all gone. But when I get to the page for the first time, it is always there.

The page is at: www.fiscalstudy.com/forum/

And the script of the page I uploaded for you is at: www.fiscalstudy.com/forum/error.txt

Your help is highly appreciated, because we plan to be online soon.

Thanks for your time.

Nightfire
12-08-2002, 12:59 AM
You have to edit the template, not the index page. You are trying to add html above sessions, cookies, etc which won't work. Find the correct template for the style you're using, then add the table where it needs to go.

It's probably

templates/subSilver/index_body.tpl

ssskaya
12-08-2002, 03:01 AM
how do I know for sure which one is the correct .tpl file?

Nightfire
12-08-2002, 03:04 AM
Just have to go through the tpl files in notepad or any other text editor. Find one that shows something that looks familier to the top of your page.

ssskaya
12-08-2002, 03:50 AM
so first I need to find the correct file.

then I need to put the same table at the top of the template page, which will apply it to all the other pages.

did I get it right?

ssskaya
12-09-2002, 01:17 PM
I searched the net and found the right file to edit. It is named:

overall_header.tpl

But it's way too different than the files I am used to.

I want to add the following table to the TOP of it.

I uploaded the original script for you at: http://fiscalstudy.com/originalheadertext.doc


<table border="0" cellpadding="0" cellspacing="0" width="750">
<tr>
<td align="center"
background="http://www.fiscalstudy.com/im/3399ff.jpg"><p
align="left"><font size="5"><strong>*FiscalStudy.com</strong></font></p>
</td>
<td align="right" valign="bottom"
background="http://www.fiscalstudy.com/im/3399ff.jpg"><a
href="http://www.fiscalstudy.com/">home</a></td>
</tr>
</table>


Thanks!

requestcode
12-09-2002, 06:33 PM
PHPBB2 has a forum at their site. You might try posting this question there. They should be able to help you out.