Page 1 of 1

Error when viewing pic with comments

PostPosted: Tue Mar 11, 2008 12:41 am
Author: chopper
I just noticed this error. When viewing a picture in the albums that has a comment, I get this error:

Warning: sprintf() [function.sprintf]: Too few arguments in /home/tbill110/public_html/profilcp/def/def_userfuncs.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/tbill110/public_html/profilcp/def/def_userfuncs.php:228) in /home/tbill110/public_html/includes/page_header.php on line 1156

Warning: Cannot modify header information - headers already sent by (output started at /home/tbill110/public_html/profilcp/def/def_userfuncs.php:228) in /home/tbill110/public_html/includes/page_header.php on line 1158

Warning: Cannot modify header information - headers already sent by (output started at /home/tbill110/public_html/profilcp/def/def_userfuncs.php:228) in /home/tbill110/public_html/includes/page_header.php on line 1159


the code for def_userfuncs.php (I'll show lines 222-231)
[code]     if ( $map_txt )     {         $res .= $map_lnk ? sprintf( $lnk, $txt ) ]

public_html/includes/page_header.php lines 1148-1159
[code]// Work around for "current" Apache 2 + PHP module which seems to not// cope with private cache control settingif (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2')){     header ('Cache-Control]
Any Ideas?

SOLVED Re: Error when viewing pic with comments

PostPosted: Tue Mar 11, 2008 12:57 am
Author: chopper
I found the problem. A modification I did 2 months ago on the user cp. I will be using the state flag field as an awards icon and hiding the input from all but the admin I left out 2 fields on the code rewrite.