When I run a report on a channel, no image is shown.

The URL that is created is like this:
img src="/ad_report/0/bargraph/admin/200908010000/200908312359"

It looks like somewhere in the code, that image is being called literally from the root directory, but I can't seem to find where that gets called.

Can anyone throw me a bone here?

Comments

jeremy’s picture

Component: ad_channel module » ad_report module
Category: bug » feature

This is true when running reports for groups, too. At this time, images are only generated when a report is against a specific node. The node id is specified as the second parameter, which in this case is '0' preventing any image from being displayed.

Marking as a feature request, and assigning to the ad_report component.

djudd’s picture

Thanks Jeremy.

Is there a way to disable the broken image? My sales staff is very confused and I'd at least like to limit the number of phones calls I get saying "the image is broken".

jeremy’s picture

Not without hacking the code, unfortunately. But I intend to simply fix the image, if possible, for the next release. I'm currently traveling, so it may take me a little while.

jeremy’s picture

Status: Active » Fixed

Fixed:
http://drupal.org/cvs?commit=271718

Be sure to review the changelog before updating. The ad_report module now depends on the chart api:
http://drupal.org/project/chart

When updating the ad module, running update.php may take a _very_ long time if you have a large ad_statistics table, and during that time it's possible that ads may not display.

djudd’s picture

Jeremy, this is a feature request, I know, but is there any way you could give us the ability to set a daily cap for ads? For example, if someone purchases 10,000 ads in a month, and wants them to run in smaller blocks throughout the month, give us a way to only give 325 impressions of that ad per day?

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.