Page 1 of 1

error codes on header

PostPosted: Thu Jan 15, 2009 8:39 am
Author: danieln
Guys,

I am having these codes at the top of the page once i logged in.

---------------------------------------------
Warning: sprintf() [function.sprintf]: Too few arguments in /home/pleoroom/public_html/forum/includes/page_header.php on line 1675

Warning: Cannot modify header information - headers already sent by (output started at /home/pleoroom/public_html/forum/includes/page_header.php:1675) in /home/pleoroom/public_html/forum/includes/page_header.php on line 2317

Warning: Cannot modify header information - headers already sent by (output started at /home/pleoroom/public_html/forum/includes/page_header.php:1675) in /home/pleoroom/public_html/forum/includes/page_header.php on line 2321

Warning: Cannot modify header information - headers already sent by (output started at /home/pleoroom/public_html/forum/includes/page_header.php:1675) in /home/pleoroom/public_html/forum/includes/page_header.php on line 2323
--------------------------------------

Any idea what's causing this? I've disabled the ctracker but still the error codes appear.

Re: error codes on header

PostPosted: Fri Jan 16, 2009 7:02 pm
Author: danieln
Anyone with any idea about this please?

Re: error codes on header

PostPosted: Fri Jan 16, 2009 7:50 pm
Author: Watcher
sorry i dont know what it means just wait till someone that does know posts here

Re: error codes on header

PostPosted: Fri Jan 16, 2009 7:56 pm
Author: Helter
what mods have you added? That error just says that you have a file that either is missing the php close tag, or has info after the close tag. It can even be caused by blank lines after the close tag.

Re: error codes on header

PostPosted: Sun Jan 18, 2009 8:45 pm
Author: danieln
Hi,

I'm just using the full site with no new addons. But I have commented out this section

----------------
if ( $userdata['session_logged_in'] && $ctracker_config->settings['pw_control'] == 1 )

{

if ( time() > $userdata['ct_last_pw_reset'] )

{

$template->assign_block_vars('ctracker_message', array(

'ROW_COLOR' => 'FFDFDF',

'ICON_GLOB' => $images['ctracker_note'],

'L_MESSAGE_TEXT' => sprintf($lang['ctracker_info_pw_expired'], $ctracker_config->settings['pw_validity']),

'L_MARK_MESSAGE' => '',

'U_MARK_MESSAGE' => '')

);

}

}
----------------------

The error codes does not appear any more now, but I'm not sure if this is the right thing to do?

Re: error codes on header

PostPosted: Sun Jan 18, 2009 9:56 pm
Author: Helter
that is not correct. If you have not added any mods, then there is a problem with your page_header because there are only 1406 lines in it