Get your favorite beverage, sit back, and join in the discussion
You are not logged in.
While viewing a story in a seperate window, i came across two sets of two apache warnings, namely a division by zero and invalid supplied arguments in a foreach() statement on line 21 and 41 of ad_display.php respectively. The warnings appeared at the top and bottom of the page, which i guess is where the ads go. I was viewing the page on my (android) phone,but i don't see how that would cause an internal error. The ads on ither pages work fine, by the way.
Hope it helps,
DNDW
Offline
I'll look into it after some much-needed sleep. Thanks for letting me know.
Eric Storm
Offline
This issue, which was caused by a variable not being set, should be fixed now.
Eric Storm
Offline
The warnings are gone, but there are no ads. This was the first time I read stories in a seperate window so i'm not sure if there are supposed to be any, but then, why would that script be there if they aren't?
Offline
What I actually did to fix the problem was to remove the ad script from that page. The error was caused by me not having set the "number of ads" variable before calling the script. I decided that, since you had seen the ads in the "normal" story window, you didn't need to see them again. I may be doing away with the ads entirely in version 2.0 of the site. They're not earning me any revenue, and I don't think too many people are making donations just to get rid of the ads, so... *shrugs*
Eric Storm
Offline