I hate to request help on something that seems so simple but I am not able to get this module to show any advertisements. I have the following ad modules installed on my Drupal 6.10 install: ad, ad click filter, embed, file cache, notify, report, external, html and image.

I've created an ad group for header ads, and created an HTML ad with the appropriate google adsense code and assigned that ad to the header ad group. The header ad module is active in the appropriate spot. I've set perms so that all roles are shown ads. I'm also using the javascript display method (I've tried them all, for some reason Raw HTML gives me a 1x1 png?)

I know the ads work as I've had them working in just a regular box with the script code pasted in (though it's a little on the flakey side), I'd rather go with this module.

Here is the output from the serve.php debug=2 script:

ad_dir: '/home/tmotoday/public_html/sites/all/modules/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: ''
hostid: ''
url: ''
quantity: '1'
aid: '0'
ad_display: 'javascript'
--> Time mark: 16:51:50
Memory usage: 394.586 K
Drupal bootstrap '0'.
Drupal bootstrap complete.
Root drupal directory detected as '/home/tmotoday/public_html'.

/home/tmotoday/public_html/sites/all/modules/ad/serve.php: // $Id: serve.php,v 1.1.2.2.2.1.2.1 2009/02/23 22:39:02 jeremy Exp $
/home/tmotoday/public_html/sites/all/modules/ad/adserve.inc: // $Id: adserve.inc,v 1.1.2.31.2.8.2.7 2009/04/09 14:06:27 jeremy Exp $
/home/tmotoday/public_html/sites/all/modules/ad/adcache.inc:
/home/tmotoday/public_html/sites/all/modules/ad/ad.module: // $Id: ad.module,v 1.2.2.29.2.83.2.16.2.21 2009/04/16 14:24:53 jeremy Exp $
/home/tmotoday/public_html/sites/all/modules/ad/ad.install: // $Id: ad.install,v 1.2.2.4.2.27.2.7.2.4 2009/04/03 17:01:02 jeremy Exp $

adserve_cache function(get_ad_ids)
Cache function 'ad_cache_none_get_ad_ids' does not exist.
Memory usage: 401.223 K
Invoking cache function 'adserve_cache_get_ad_ids'.
Entering default adserve_display.
adserve_cache function(open)
Cache function 'ad_cache_none_open' does not exist.
Memory usage: 401.621 K
Invoking cache function 'adserve_cache_open'.
Drupal bootstrap '8'.
--> Time mark: 16:51:51
Memory usage: 18,005.391 K
Drupal bootstrap complete.
Hostid: 'none'.
adserve_invoke_hook hook(init) action(first)
adserve_cache function(hook)
Cache function 'ad_cache_none_hook' does not exist.
Memory usage: 18,005.445 K
Invoking cache function 'adserve_cache_hook'.
adserve_cache function(get_cache)
Cache function 'ad_cache_none_get_cache' does not exist.
Memory usage: 18,005.582 K
Invoking cache function 'adserve_cache_get_cache'.
adserve_cache function(build_hooks)
Cache function 'ad_cache_none_build_hooks' does not exist.
Memory usage: 18,008.586 K
Invoking cache function 'adserve_cache_build_hooks'.
Did not find hook 'init'.
Function 'adserve_hook_init' does not exist.
adserve_cache function(id)
Cache function 'ad_cache_none_id' does not exist.
Memory usage: 18,008.586 K
Invoking cache function 'adserve_cache_id'.
Unsupported type 'host'.
Searching default: 0
adserve_cache function(id)
Memory usage: 18,008.586 K
Invoking cache function 'adserve_cache_id'.
Total ads: '0'.
Already displayed: 0
adserve_cache function(validate)
Cache function 'ad_cache_none_validate' does not exist.
Memory usage: 18,008.738 K
Invoking cache function 'adserve_cache_validate'.
Validated ads: '0'.
adserve_invoke_hook hook(filter) action(intersect)
adserve_cache function(hook)
Memory usage: 18,008.738 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'filter'.
Invoking 'adserve_hook_filter'.
Filtered ads: '0'.
adserve_invoke_hook hook(weight) action(first)
adserve_cache function(hook)
Memory usage: 18,008.770 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'weight'.
Invoking 'adserve_hook_weight'.
Weighted ads: '0'.
adserve_invoke_hook hook(select) action(first)
adserve_cache function(hook)
Memory usage: 18,008.770 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'select'.
Invoking 'adserve_hook_select'.
No more advertisements available.
Selected ads: '0'.
adserve_cache function(display)
Cache function 'ad_cache_none_display' does not exist.
Memory usage: 18,008.770 K
Invoking cache function 'adserve_cache_display'.
adserve_cache function(increment)
Cache function 'ad_cache_none_increment' does not exist.
Memory usage: 18,008.801 K
Invoking cache function 'adserve_cache_increment'.
adserve_cache_increment action(count) aid() hostid()
Drupal bootstrap '8'.
Drupal bootstrap complete.
adserve_invoke_hook hook(increment_extra) action(merge)
adserve_cache function(hook)
Memory usage: 18,008.895 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'increment_extra'.
Function 'adserve_hook_increment_extra' does not exist.
adserve_cache_increment extra()
adserve_cache function(close)
Cache function 'ad_cache_none_close' does not exist.
Cache function 'adserve_cache_close' does not exist.
adserve_invoke_hook hook(init_text) action(append)
adserve_cache function(hook)
Memory usage: 18,009.152 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'init_text'.
Function 'adserve_hook_init_text' does not exist.
adserve_invoke_hook hook(exit_text) action(append)
adserve_cache function(hook)
Memory usage: 18,009.152 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'exit_text'.
Function 'adserve_hook_exit_text' does not exist.
Memory usage: 18,009.152 K
document.write('\x3c!-- No active ads were found in 0 --\x3e');

If there is any more information that you need just ask. Thanks for any help.

Comments

jeremy’s picture

Status: Active » Postponed (maintainer needs more info)

What is the path you're using when collecting this debug? You are not setting a tid or a nid, so it's trying to find ads in the default group -- it is finding none, and it is telling you so.

knytphal’s picture

Thanks for looking at this Jeremy, but I think that we have decided to go another route on ads.

jeremy’s picture

Status: Postponed (maintainer needs more info) » Fixed

No longer an issue, closing.

Status: Fixed » Closed (fixed)

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