Hi,

I've researched the issues, but can't seem to find anything that is helping me resolve this one.

I have installed the advertisement module, done a bunch of configuration based on the instructions, submitted some ads, and it all looks great and works as expected - as long as you are logged in.

If you are not logged in, the two blocks I have showing on the home page do not show up. Rather - the blocks show up they are just empty.

Below is the debug code that hopefully will tell someone what I might be doing wrong. I've checked permissions at all the relevant places I can think of multiple times.

The bit in the debug code that looks like it might hold a clue is:

adserve_cache_id: SELECT a.aid FROM {ads} a INNER JOIN {term_node} n ON a.aid = n.nid WHERE a.adstatus = 'active' AND n.tid IN(444)
adserve_cache_id: Ad '673' failed access check.
adserve_cache_id: Ad '675' failed access check.
adserve_cache_id: Ad '677' failed access check.
adserve_cache_id: Ad '678' failed access check.

The fully debug code is below.

I'd greatly appreciate any help.

Erik.

ad_dir: '/home/greenerp/greenerphotography.org/html/sites/all/modules/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: '444'
hostid: ''
url: ''
alias: ''
quantity: '1'
aid: '0'
ad_display: 'javascript'
--> Time mark: 20:42:43
Memory usage: 639.586 K
Drupal bootstrap '0'.
Drupal bootstrap complete.
Root drupal directory detected as '/home/greenerp/greenerphotography.org/html/'.

/home/greenerp/greenerphotography.org/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/greenerp/greenerphotography.org/html/sites/all/modules/ad/adserve.inc: // $Id: adserve.inc,v 1.1.2.31.2.8.2.10 2009/11/23 19:12:41 Jeremy Exp $ 
/home/greenerp/greenerphotography.org/html/sites/all/modules/ad/adcache.inc: 
/home/greenerp/greenerphotography.org/html/sites/all/modules/ad/ad.module: // $Id: ad.module,v 1.2.2.29.2.83.2.16.2.37 2009/11/30 16:24:08 Jeremy Exp $ 
/home/greenerp/greenerphotography.org/html/sites/all/modules/ad/ad.install: // $Id: ad.install,v 1.2.2.4.2.27.2.7.2.8 2009/10/20 23:31:22 jeremy Exp $ 

adserve_cache function(get_ad_ids)
Cache function 'ad_cache_none_get_ad_ids' does not exist. 
Memory usage: 652.219 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: 653.500 K
Invoking cache function 'adserve_cache_open'.
Drupal bootstrap '8'.
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: 2,407.531 K
Invoking cache function 'adserve_cache_hook'.
adserve_cache function(get_cache)
Cache function 'ad_cache_none_get_cache' does not exist. 
Memory usage: 2,408.953 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: 2,410.633 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: 2,409.344 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(host) id()
adserve_cache_id: unsupported type 'host'.
Searching tids: 444
adserve_cache function(id)
Memory usage: 2,409.883 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(tids) id(444)
adserve_cache_id: SELECT a.aid FROM {ads} a INNER JOIN {term_node} n ON a.aid = n.nid WHERE a.adstatus = 'active' AND n.tid IN(444)
adserve_cache_id: Ad '673' failed access check.
adserve_cache_id: Ad '675' failed access check.
adserve_cache_id: Ad '677' failed access check.
adserve_cache_id: Ad '678' failed access check.
Total ads: '0'.
Already displayed: 0
adserve_cache function(validate)
Cache function 'ad_cache_none_validate' does not exist. 
Memory usage: 7,493.703 K
Invoking cache function 'adserve_cache_validate'.
Validated ads: '0'.
adserve_invoke_hook hook(filter) action(intersect)
adserve_cache function(hook)
Memory usage: 7,494.367 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: 7,494.555 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: 7,494.953 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: 7,492.055 K
Invoking cache function 'adserve_cache_display'.
adserve_cache function(increment)
Cache function 'ad_cache_none_increment' does not exist. 
Memory usage: 7,494.438 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: 7,497.227 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: 7,496.555 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: 7,496.898 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'exit_text'.
Function 'adserve_hook_exit_text' does not exist. 
Memory usage: 7,495.563 K
document.write('\x3c!-- No active ads were found in t444 --\x3e');

Comments

broncomania’s picture

subscribe there are also a lot of other bugs. this module is not for production use in my opinion. it also didnt work with vertićal tabs module and if i you save an add the author entry disapears or is changed to guest. Then if you save, the ads are changed to expired and a lot more of other things that didnt work. It's sad ...

erikhopp’s picture

Hi,

Just wondering if anybody has looked at this. I'm trying to figure out if my case is unique or if everybody is experiencing this issue with regard to anonymous ad presentation.

Thanks for any assistance.

Erik.

robmil29’s picture

Status: Fixed » Active

I have the same issue, but only on the home page. Another weird thing is that if I am running ubuntu they show up as they should. In windows they do not display, no matter the browser. For now I'm just using CJ ads for the frontpage.

erikhopp’s picture

Status: Active » Fixed

I'm not sure why this fixed my problem, but when I enable ad caching, the ads now show up for anonymous users. It seems counter-intuitive to me, but I was poking around trying things and that seems to have worked. I hope this helps someone.

robmil29’s picture

Status: Active » Fixed

Oh, and btw, I'm pretty certain my issue is something with google ads, not the module.

Status: Fixed » Closed (fixed)

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