PDA

View Full Version : debugging statements


damonp
20th August 2004, 07:33 AM
Viewing image only banners doesn't work because something is messing up sending the header.

Going to the following url:
/affiliate/scripts/sb.php?a_aid=2&a_bid=5

I get:


DBG: update pa_impressions set all_imps_count='14', unique_imps_count='1' where dateimpression='2004-08-20 00:00:00' and bannerid='5' and affiliateid='2'

Warning: Cannot modify header information - headers already sent by (output started at /www/vhosts/domain.com/htdocs/affiliate/fw/global_funcs.php:232) in /www/vhosts/domain.com/htdocs/affiliate/scripts/BannerViewer.class.php on line 117

If I comment out line 232 in global_funcs.php the dbg line goes away, but still get gibberish like there is a stray newline somewhere.

Anyone else have this problem?

v1.3.1 updated on Tuesday.


damonp

mark
20th August 2004, 11:47 AM
Hello,

it is an error in script.
You can correct it by editing the file /scripts/BannerViewer.class.php, and removing the line with

dbg($sql);


from the end of saveImpression() function.
Or you can download and apply the last patch (I included it there).

I apologize for this.

with regards,

mark

damonp
20th August 2004, 10:37 PM
thanks a bunch
:wink:


damonp