Ads not displaying when using javascript or iframe method
| Project: | Advertisement |
| Version: | 5.x-1.5-rc2 |
| Component: | adserve.php |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Hi,
I am trying to get the ad module to work with javascript for better statistics tracking. I have installed the latest rc2 on drupal 5.6 and I am using php 5.1.6. I have read some the previous support issues where similar cases were reported with ads not being displayed when symbolic links are being used in the the webserver document root. This is definatively *not* the case in my situation as there are no symlinks anywhere. I have also tried configured the DRUPAL_ROOT setting in adserve.inc but it does not make any difference.
Here's the debug output of a failed display:
ad_dir: '/var/www/html/bbdrupal.baanboard.com/web/modules/ad'
debug: '2'
adcache: 'file'
nids: ''
tids: '26'
hostid: ''
url: ''
quantity: '1'
aid: '0'
ad_display: 'javascript'
Attempting to include cache include file '/var/www/html/bbdrupal.baanboard.com/web/modules/ad/cache/file/ad_cache_file.inc'.I don't know how to interpret these debugging values or to which way they might indicate errors anywhere.
What could be the problem here?
Regards,
Pat.

#1
It seems that you've not included all of the output -- there should be more debug after "Attempting to include cache include file". If not, then this suggests an installation problem. Be sure that the above file exists at the path the ad module expects it. If it does, be sure the file is readable by your web server process.
Review your web server error log (ie, Apache's error_log, not Drupal's watchdog log) and see if there are any errors there.
Statistics tracking is accurate for all display methods, including raw. (The online help needs to be updated to reflect this.)
#2
Hi Jeremy,
I double checked the debug output and my original posting confirmed what I thought: there wasn't anymore output displayed. I then checked the apache server logs and there are no errors during the page generation.
I then dropped back to previous stable version of the ad module at v1.4 and this generated similar - albeit in a different order - output:
Attempting to include cache include file '/var/www/html/bbdrupal.baanboard.com/web/modules/ad/cache/file/ad_cache_file.inc'.ad_dir: '/var/www/html/bbdrupal.baanboard.com/web/modules/ad'
debug: '2'
cache: 'file'
nids: ''
tids: '26'
hostid: ''
quantity: '1'
aid: '0'
method: 'javascript'
path: '/var/www/html/bbdrupal.baanboard.com/drupal_attach_store'
files: '3'
The cache include file is definitively readable by the 'apache' user. Are there any other debugging options I could try?
Regarding click tracking/statistics: if the 'raw' method provide consistent and reliable data even with the standard Drupal caching switched on, I'd be happy to stick the 'raw' method. Nevertheless, it could be any interesting issue to get sorted for other people in similar situations?
PS: I forgot to mention that I am very happy with the 'ad' module as a whole otherwise. KUDOS for your great work!
Regards,
Pat.
#3
I'm not sure what to tell you, it seems to be silently failing. At this point, I'd likely start adding additional debug trying to figure out where it's failing, though I'd really expect to see an error in your error_log. In particular, see if it gets past including the include file? If so, does it get past calling into the include file? If not, start adding debug output there, etc...
#4
Hi Jeremy,
Okay I will try to do some poking around. Could you try to tell me in brief what I would be supposed to see in a working debug output?
Regards,
Pat.
#5
If you poke around through the issue queue, you'll find a large number of samples from other people following DEBUG.txt... For example, here and here...
#6
Hi Jeremy,
Just an update from my side: I was never able to find out why my debugging only contained part of the story. But the ads themselves are working fine, so I am OK to close this ticket.