Posted by drueditor on October 6, 2009 at 12:30pm
| Project: | Advertisement |
| Version: | 6.x-2.x-dev |
| Component: | ad module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
I installed and activated the ad module and components
Created an advertisement and uploaded it to my site
Created and activated a new block for the advertisement
But advertisment is not displayed on the block
Comments
#1
I installed and activated the ad module and components
Created an advertisement and uploaded it to my site
Created and activated a new block for the advertisement
But advertisment is not displayed on the block.
I ran update.php and got the following:
The selected file D:\my\online\site.com\tmp\fil1C80.tmp could not be copied.
What do I need to do in order to display my ads?
#2
Was this a fresh install of the ad module, or an upgrade? I see from your tmp path that it is a Windows system -- what web server are you using?
Please follow the directions found in documentation/DEBUG.txt ad post the output here.
#3
Upgraded from Drupal 6.12 to 6.14 and did a re-install of ad module.
Hosting on Windows system on an IIS server
The debug report came up as follows:
ad_dir: 'd:\...\sites\all\modules\ad'
debug:'2'
adcache:'none'
nids:"
tids:"
hostid:"
url:"
quantity:'3'
aid:'0'
ad_display:'javascript'
Hope the above details is what you had asked for?
#4
When collecting debug info, you have to convert all the
&'s to just a plain&as explained in DEBUG.txt. It appears you did not do so above, and thus you have not collected any useful debug data.#5
Having the same problem, an image ad in a block doesn't display on Windows XP using IIS. The output block looks like this copied from Firebug:
<div id="group-id-tids-1" class="advertisement group-tids-1"><script src="http://drupaldefault/sites/all/modules/ad/serve.php?q=5&t=1&u=admin%2Fbuild%2Fblock%2Flist" type="text/javascript">
1Failed to load source for: http://drupaldefault/sites/all/modules/ad/serve.php?q=5&t=1&u=admin%2Fbuild%2Fblock%2Flist
</script>
</div>
The "1Failed to load source for: http://drupaldefault/sites/all/modules/ad/serve.php?q=5&t=1&u=admin%2Fbuild%2Fblock%2Flist" printout originates from Firebug and is not present when viewing source in a browser. However, this may give some indication of what the problem might be.
I try to collect debug info using the URL http://drupaldefault/sites/all/modules/ad/serve.php?q=5&t=1&u=admin%2Fbu... from the view source of the browser, but this fails. Adding the "&debug=2" at the end of the URL doesn't display anything useful either.
Tried all types of display modes (Javascript, JQuery, etc), none will display the image ad.
Grateful for any ideas.
ps. I have read the thread on the issue "Ad image won't display in block when served with IIS" without finding an answer to my problem.
#6
I'm having the same problem on a fresh install of Drupal + Advertisement (with Image Ad enabled). I'm developing on my local machine using WAMP. Set up the exact same thing 2 months ago without difficulty.
I am trying to display the image ads inside blocks. When I copy the URL found in the source to the browser, as instructed, it tells me:
document.write('\x3c!-- No active ads were found in t2 --\x3e');Both my ads are marked as 'active' and are assigned to the correct group.
When I add "&debug=2":
ad_dir: 'C:/wamp/www/CHBA/sites/all/modules/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: '2'
hostid: ''
url: 'node/46'
alias: 'home'
quantity: '1'
aid: '0'
ad_display: 'javascript'
--> Time mark: 15:27:22
Memory usage: 534.758 K
Drupal bootstrap '0'.
Drupal bootstrap complete.
Root drupal directory detected as 'C:\wamp\www\CHBA'.
C:/wamp/www/CHBA/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 $
C:/wamp/www/CHBA/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 $
C:/wamp/www/CHBA/sites/all/modules/ad/adcache.inc:
C:/wamp/www/CHBA/sites/all/modules/ad/ad.module: // $Id: ad.module,v 1.2.2.29.2.83.2.16.2.36 2009/11/23 06:40:02 Jeremy Exp $
C:/wamp/www/CHBA/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: 542.141 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: 545.195 K
Invoking cache function 'adserve_cache_open'.
Drupal bootstrap '8'.
--> Time mark: 15:27:23
Memory usage: 13,051.445 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: 13,053.742 K
Invoking cache function 'adserve_cache_hook'.
adserve_cache function(get_cache)
Cache function 'ad_cache_none_get_cache' does not exist.
Memory usage: 13,055.180 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: 13,058.883 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: 13,055.336 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(host) id()
adserve_cache_id: unsupported type 'host'.
Searching tids: 2
adserve_cache function(id)
Memory usage: 13,055.352 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(tids) id(2)
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(2)
adserve_cache_id: Ad '75' failed access check.
Total ads: '0'.
Already displayed: 0
adserve_cache function(validate)
Cache function 'ad_cache_none_validate' does not exist.
Memory usage: 13,694.523 K
Invoking cache function 'adserve_cache_validate'.
Validated ads: '0'.
adserve_invoke_hook hook(filter) action(intersect)
adserve_cache function(hook)
Memory usage: 13,697.109 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: 13,697.109 K
Invoking cache function 'adserve_cache_hook'.
Invoking hook 'weight'.
Including file: 'C:\wamp\www\CHBA/sites/all/modules/ad/weight/probability/ad_weight_probability.inc'.
Invoking 'ad_weight_probability_cache_filter'.
adserve_cache function(get_cache)
Memory usage: 13,711.898 K
Invoking cache function 'adserve_cache_get_cache'.
ad_weight_probability cache_filter gcd()
Weighted ads: '0'.
adserve_invoke_hook hook(select) action(first)
adserve_cache function(hook)
Memory usage: 13,711.242 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: 13,705.711 K
Invoking cache function 'adserve_cache_display'.
adserve_cache function(increment)
Cache function 'ad_cache_none_increment' does not exist.
Memory usage: 13,709.359 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: 13,714.336 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: 13,713.086 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: 13,713.086 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'exit_text'.
Function 'adserve_hook_exit_text' does not exist.
Memory usage: 13,709.672 K
document.write('\x3c!-- No active ads were found in t2 --\x3e');
It was noted in issue Ad image won't display in block when served with IIS that a similar/related problem was fixed in a development snapshot. Is there a patch in the meantime? Or maybe I'm just missing something obvious?
Any help would be greatly appreciated!
#7
Please upgrade to the 6.x-2.2 version of the module and see if this solves your problem. Issues with path recognition on Windows were solved in that release.
#8
Probably duplicate:
#556402: image ads only display in raw mode
#9
As mentioned in my post, I installed the module 3 days ago. It is the 6.x-2.2 version.
#10
6.x-2.2 was released today, so it would have been rather difficult to install it three days ago.
#11
I assumed ad-6.x-2.2-rc1.tar was what you were referring to. I'll download whatever's latest and see what happens.
Thanks -
#12
Sadly, no such luck. The ads still aren't showing up.
Here's the debug report from .../AAA/sites/all/modules/ad/serve.php?q=1&t=5&u=node%2F46&l=home&debug=2:
ad_dir: 'C:/wamp/www/AAA/sites/all/modules/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: '5'
hostid: ''
url: 'node/46'
alias: 'home'
quantity: '1'
aid: '0'
ad_display: 'javascript'
--> Time mark: 14:27:30
Memory usage: 534.758 K
Drupal bootstrap '0'.
Drupal bootstrap complete.
Root drupal directory detected as 'C:\wamp\www\AAA'.
C:/wamp/www/AAA/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 $
C:/wamp/www/AAA/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 $
C:/wamp/www/AAA/sites/all/modules/ad/adcache.inc:
C:/wamp/www/AAA/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 $
C:/wamp/www/AAA/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: 542.141 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: 545.195 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: 12,554.938 K
Invoking cache function 'adserve_cache_hook'.
adserve_cache function(get_cache)
Cache function 'ad_cache_none_get_cache' does not exist.
Memory usage: 12,556.734 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: 12,561.281 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: 12,558.133 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(host) id()
adserve_cache_id: unsupported type 'host'.
Searching tids: 5
adserve_cache function(id)
Memory usage: 12,558.133 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(tids) id(5)
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(5)
adserve_cache_id: Ad '95' failed access check.
Total ads: '0'.
Already displayed: 0
adserve_cache function(validate)
Cache function 'ad_cache_none_validate' does not exist.
Memory usage: 13,299.898 K
Invoking cache function 'adserve_cache_validate'.
Validated ads: '0'.
adserve_invoke_hook hook(filter) action(intersect)
adserve_cache function(hook)
Memory usage: 13,302.484 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: 13,302.484 K
Invoking cache function 'adserve_cache_hook'.
Invoking hook 'weight'.
Including file: 'C:\wamp\www\AAA/sites/all/modules/ad/weight/probability/ad_weight_probability.inc'.
Invoking 'ad_weight_probability_cache_filter'.
adserve_cache function(get_cache)
Memory usage: 13,316.781 K
Invoking cache function 'adserve_cache_get_cache'.
ad_weight_probability cache_filter gcd()
Weighted ads: '0'.
adserve_invoke_hook hook(select) action(first)
adserve_cache function(hook)
Memory usage: 13,316.117 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: 13,310.586 K
Invoking cache function 'adserve_cache_display'.
adserve_cache function(increment)
Cache function 'ad_cache_none_increment' does not exist.
Memory usage: 13,314.313 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: 13,319.250 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: 13,318.023 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: 13,318.023 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'exit_text'.
Function 'adserve_hook_exit_text' does not exist.
Memory usage: 13,314.609 K
document.write('\x3c!-- No active ads were found in t5 --\x3e');
Drupal 6.14
- Settings: defaults
- ad of type 'image' is created
- ad is assigned to group
- ad is marked 'active'
- ad block (group block, not default) displays in template, but no ad found ("Failed to load source for: http://127.0.0.1/AAA/sites/all/modules/ad/serve.php?q=1&t=6&u=node%2F46&l=home")
Ad modules installed:
- Ad
- Ad Report
- Ad Weight Probability
- Image Ad
If there's anything else I can tell you, let me know.
#13
Here's the issue:
adserve_cache_id: type(tids) id(5)
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(5)
adserve_cache_id: Ad '95' failed access check.
It seems you currently only have created 1 ad with a tid of 5 (the ad has a nid of 95), however you do not have permission to view this ad. Be sure to grant the appropriate permissions.
#14
I'm a super admin.
The session id that's being served up by drupal bootstrap '8' in serve.php results in an anonymous uid '0' being pulled from the session table, whereas in the site itself the session id is correct.
Any ideas?
#15
I have the same issue with the latest version.
I can only view my ad in raw mode. When I am logged in, i can see it in every mode though. And i've checked 'show advertisements' for anonymous users...
--- EDIT: LOL ! Obviously this is the first time I build a website with advertisement. I had Ad block plus turned on in firefox. Fixed! :)
#16
Well, it appears everything works great as long as "show advertisements" is checked for anonymous users. If it isn't, it doesn't matter which role I'm logged in under, or whether that role has permission to view advertisements, advertisements will not display at all unless this permission is granted for anonymous users. Is this a requirement, for some reason, and I'm just failing to see the logic in it?
Anyway - this is clearly related to the strangeness I mentioned above, which is that, somewhere along the line, a different session id is referenced/assigned and $user->uid becomes '0', which of course results in "Ad '96' failed access check".
This is when the display type is set to Javascript, by the way. In raw it works as expected. I don't have Ad block plus. I've tried disabling add-ons and fussed with Firefox's security settings to no avail.
Cheers -
#17
Updating status...
#18
I can only agree with gamutalarm. The displaying of an ad, in my case an image ad, works as expected as long as the guest/anonymous user is assigned the following access rights:
This is very confusing since it should not be necessary when logged in as the root user.
#19
I had 2 External Ads and 1 HTML Ad in a Drupal 6.14 site using Advertisement 2.1. Today, when I updated both (to Drupal 6.15 and to Advertisement 2.2), the External Ads stopped being displayed while the HTML Ad (local) continued all right.
A strange fact is that when I open the ads nodes (even in the view tab), they are there, being displayed normally. But within the content, in the group blocks, they just not appear!
Here is what is being displayed now in the update page:
Hope we can discover the problem fast.
#20
So, trying to get the 2 ads to be displayed again I've gathered more information about it:
Finally, I tried changing the necessary columns directly in the db and got all working again.
#21
Should this be posted as a separate issue? It seems unrelated to the original thread. (And I should probably change the issue title to something more specific, since we've managed to narrow down the problem somewhat.)
#22
permissions granted to all roles
But No luck.
#23
#24
I'm experiencing this same problem. My installation is Drupal 6.16 with Ad 6.x-2.2. When I attempt to debug per your documentation/DEBUG.txt instructions, "serve.php" does not appear in the page's source code.
Additionally, ad block does not display on the page unless I override the default block title on the ad group's block configuration page.
These permissions are enabled for all roles:
The ad has been approved on its settings page.
The ad is an image ad and the display type has been set to "Raw" on the Ad module settings.
I do not have "Ad block" installed on my computer.
The "Recent log entries" page indicates no errors or warnings.
Update: Nevermind. I re-read the ad's settings page and discovered the ad needs to be set to "active," not just "approved." Stupid mistake; I'm new to the ad module and I suppose there's a learning curve.
#25
I am experiencing what appears to be this same bug on Drupal 6.17/Ad 6.x-2.2.
With Ad set to "Raw" mode, the ad block displays my test ad properly.
With Ad set to "JavaScript" mode, the block appears (I set a block title, so I can easily tell it's there), but no ads are displayed.
I do not run any dedicated ad-blocker. I do use NoScript, but the site is whitelisted and NoScript shows that all scripts on the page are being allowed to run.
Adding debug=2 to the ad/serve.php URL returns the output:
ad_dir: '/home/carecons/public_html/sites/all/modules/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: '16'
hostid: ''
url: 'community'
alias: 'community'
quantity: '1'
aid: '0'
ad_display: 'javascript'
--> Time mark: 11:41:55
Memory usage: 649.078 K
Drupal bootstrap '0'.
Drupal bootstrap complete.
Root drupal directory detected as '/home/carecons/public_html'.
/home/carecons/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/carecons/public_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/carecons/public_html/sites/all/modules/ad/adcache.inc:
/home/carecons/public_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/carecons/public_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: 659.836 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: 661.383 K
Invoking cache function 'adserve_cache_open'.
Drupal bootstrap '8'.
#26
The advice in #18 worked like a charm for me. Why do the permissions for the anonymous and authenticated users matter when logged in as uid 1?
Thanks.
#27
#18 does not address my issue. Both "anonymous user" and "authenticated user" roles have "access content" and "show advertisement" permissions.
Not to mention that showing ads in "Raw" mode, but not in "JavaScript" mode is a bug regardless of permissions - if you don't have permission to view JavaScript ads, then you shouldn't logically have permission to view Raw ads either. Content-based permissions should only affect which content you can view, not the delivery methods which can be used to view it.
#28
I'm having a similiar issue, I have set all the permissions but the ad does not show up. The block does, but no ad. I ran the debug and got the following:
ad_dir: '/home/users/web/b2656/as.mmsnycco/public_html/drupal2010/sites/all/modules/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: '0'
hostid: ''
url: 'node'
alias: 'node'
quantity: '1'
aid: '0'
ad_display: 'jquery'
--> Time mark: 14:38:46
Memory usage: 401.477 K
Drupal bootstrap '0'.
Drupal bootstrap complete.
Root drupal directory detected as '/hermes/web10/b2656/as.mmsnycco/public_html/drupal2010'.
/home/users/web/b2656/as.mmsnycco/public_html/drupal2010/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/users/web/b2656/as.mmsnycco/public_html/drupal2010/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/users/web/b2656/as.mmsnycco/public_html/drupal2010/sites/all/modules/ad/adcache.inc:
/home/users/web/b2656/as.mmsnycco/public_html/drupal2010/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/users/web/b2656/as.mmsnycco/public_html/drupal2010/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: 404.523 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: 405.371 K
Invoking cache function 'adserve_cache_open'.
Drupal bootstrap '8'.
Any help is HIGHLY appeciated
#29
Same issue. Ads in Raw mode work. Otherwise no.
I'm running a private intranet and serving ads internally. I read about anonymous users fix, but that wouldn't work for our build.
#30
Updated to the most recent dev version (6.x-2.x-dev) and the problem remains.
#31
Changing user permissions did not fix the issue. All tests lead directly to the Raw display type setting soley.
#32
I have the same problem as many here, the ads does not show. I only get this
<div class="content"><!-- No active ads were found in t96 --></div>and I really don't know what to do.
- version = "6.x-2.2"
- The image ad is active
- The ad is in the correct group
- The group block is placed in the correct region
- Permissions are set for node access and show advertisement
- No ad blocker
- None of JavaScript, jQuery, IFrame, Raw work
- I checked the DB and the nid is equal to aid
debug output:
ad_dir: '/home2/delatse/public_html/example.com/sites/all/modules/features/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: '96'
hostid: ''
url: 'admin/content/ad/configure'
alias: 'admin/content/ad/configure'
quantity: '1'
aid: '0'
ad_display: 'jquery'
--> Time mark: 14:24:09
Memory usage: 650.164 K
Drupal bootstrap '0'.
Drupal bootstrap complete.
Root drupal directory detected as '/home2/delatse/public_html/example.com'.
/home2/delatse/public_html/example.com/sites/all/modules/features/ad/serve.php: // $Id: serve.php,v 1.1.2.2.2.1.2.1 2009/02/23 22:39:02 jeremy Exp $
/home2/delatse/public_html/example.com/sites/all/modules/features/ad/adserve.inc: // $Id: adserve.inc,v 1.1.2.31.2.8.2.10 2009/11/23 19:12:41 Jeremy Exp $
/home2/delatse/public_html/example.com/sites/all/modules/features/ad/adcache.inc:
/home2/delatse/public_html/example.com/sites/all/modules/features/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 $
/home2/delatse/public_html/example.com/sites/all/modules/features/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: 660.273 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: 661.914 K
Invoking cache function 'adserve_cache_open'.
Drupal bootstrap '8'.
--> Time mark: 14:24:10
Memory usage: 30,901.898 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: 30,902.539 K
Invoking cache function 'adserve_cache_hook'.
adserve_cache function(get_cache)
Cache function 'ad_cache_none_get_cache' does not exist.
Memory usage: 30,904.391 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: 30,908.125 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: 30,907.758 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(host) id()
adserve_cache_id: unsupported type 'host'.
Searching tids: 96
adserve_cache function(id)
Memory usage: 30,908.211 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(tids) id(96)
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(96)
Total ads: '0'.
Already displayed: 0
adserve_cache function(validate)
Cache function 'ad_cache_none_validate' does not exist.
Memory usage: 30,909.734 K
Invoking cache function 'adserve_cache_validate'.
Validated ads: '0'.
adserve_invoke_hook hook(filter) action(intersect)
adserve_cache function(hook)
Memory usage: 30,910.273 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: 30,910.406 K
Invoking cache function 'adserve_cache_hook'.
Invoking hook 'weight'.
Including file: '/home2/delatse/public_html/example.com/sites/all/modules/features/ad/weight/probability/ad_weight_probability.inc'.
Invoking 'ad_weight_probability_cache_filter'.
adserve_cache function(get_cache)
Memory usage: 30,933.008 K
Invoking cache function 'adserve_cache_get_cache'.
ad_weight_probability cache_filter gcd()
Weighted ads: '0'.
adserve_invoke_hook hook(select) action(first)
adserve_cache function(hook)
Memory usage: 30,930.039 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: 30,926.641 K
Invoking cache function 'adserve_cache_display'.
adserve_cache function(increment)
Cache function 'ad_cache_none_increment' does not exist.
Memory usage: 30,929.156 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: 30,932.016 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: 30,931.578 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: 30,931.984 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'exit_text'.
Function 'adserve_hook_exit_text' does not exist.
Memory usage: 30,930.742 K
Output:
#33
Ditto
Well the number following the T is different which is some type of id I assume.
I so want to use this module but after 6 hours or trying to get it to work I had to move on.
Obvously lots of people can only get RAW to work which is also my case. Other modules that use various jquery features work fine on my server.
Any help would be appreciated
Follow up.... I did find that if both node and Ad permission are on for anonymous then the first ad as least is displayed. Now trying to figure out whey more are not displayed.
This looks like a great module....sure hope to get it working because I have to set permission for a 3rd party to manage the content and all the other tools would be difficult for a novice user.
btw here is my debug dump before the permission change and as you can see it retrieved no records with the query.
ad_dir: '/home/myacctid/public_html/drupal/sites/all/modules/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: '5'
hostid: ''
url: 'node'
alias: 'node'
quantity: '1'
aid: '0'
ad_display: 'jquery'
--> Time mark: 15:46:07
Memory usage: 655.648 K
Drupal bootstrap '0'.
Drupal bootstrap complete.
Root drupal directory detected as '/home/myacctid/public_html/drupal'.
/home/myacctid/public_html/drupal/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/myacctid/public_html/drupal/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/myacctid/public_html/drupal/sites/all/modules/ad/adcache.inc:
/home/myacctid/public_html/drupal/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/myacctid/public_html/drupal/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: 665.578 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: 667.219 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: 21,236.828 K
Invoking cache function 'adserve_cache_hook'.
adserve_cache function(get_cache)
Cache function 'ad_cache_none_get_cache' does not exist.
Memory usage: 21,238.672 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: 21,245.430 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: 21,246.148 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(host) id()
adserve_cache_id: unsupported type 'host'.
Searching tids: 5
adserve_cache function(id)
Memory usage: 21,246.602 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(tids) id(5)
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(5)
adserve_cache_id: Ad '21' failed access check.
adserve_cache_id: Ad '22' failed access check.
Total ads: '0'.
Already displayed: 0
adserve_cache function(validate)
Cache function 'ad_cache_none_validate' does not exist.
Memory usage: 22,487.219 K
Invoking cache function 'adserve_cache_validate'.
Validated ads: '0'.
adserve_invoke_hook hook(filter) action(intersect)
adserve_cache function(hook)
Memory usage: 22,487.758 K
Invoking cache function 'adserve_cache_hook'.
Invoking hook 'filter'.
Including file: '/home/myacctid/public_html/drupal/sites/all/modules/ad/channel/ad_channel.inc'.
Invoking 'ad_channel_cache_filter'.
ad_channel_cache: adserve_cache_filter
adserve_cache function(get_cache)
Memory usage: 22,575.305 K
Invoking cache function 'adserve_cache_get_cache'.
adserve_cache function(get_cache)
Memory usage: 22,577.023 K
Invoking cache function 'adserve_cache_get_cache'.
ad_channel_cache: returning non-premiere advertisements from randomly selected channel
Filtered ads: '0'.
adserve_invoke_hook hook(weight) action(first)
adserve_cache function(hook)
Memory usage: 22,572.539 K
Invoking cache function 'adserve_cache_hook'.
Invoking hook 'weight'.
Including file: '/home/myacctid/public_html/drupal/sites/all/modules/ad/weight/probability/ad_weight_probability.inc'.
Invoking 'ad_weight_probability_cache_filter'.
Weighted ads: '0'.
adserve_invoke_hook hook(select) action(first)
adserve_cache function(hook)
Memory usage: 22,592.383 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: 22,588.984 K
Invoking cache function 'adserve_cache_display'.
adserve_cache function(increment)
Cache function 'ad_cache_none_increment' does not exist.
Memory usage: 22,591.406 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: 22,594.266 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: 22,593.781 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: 22,594.188 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'exit_text'.
Function 'adserve_hook_exit_text' does not exist.
Memory usage: 22,592.945 K
Output:
#34
I've been considering using this module and noticed this issue.
I just posted a similar message in another issue and think it might also be relevant here.
Yes, you might be getting this error on Drupal 6.13 through 6.15 inclusive.
A solution that was committed to Drupal 6.16 was from the patches to address the db_rewrite_sql causing issues with DISTINCT
For MySQL,
http://drupal.org/node/284392
Further refinements for PostGres SQL,
http://drupal.org/node/735120
However, during this development another thread began to discuss that the problem may actually be resulting from the handling of node_access table joins.
http://drupal.org/node/681760
It has taken some time for this latter issue to gain traction but there seems to be some solid recent discussion in the thread.
This problem might be a good one to shed more light on the issues.
Before upgrading to Drupal 6.16 or 6.17 try applying the patches directly to you Drupal 6.13, 6.14 or 6.15 and test whether or not each patch solves the problem or just one of them; the patch for DISTINCT and the patch for table joins.
Hope that helps.
Izzy
#35
Thanks for the quick feedback Izzy but I have a fresh install of 6.17 ....
#36
@freestone, have you tried the table joins patch? That is not in 6.16 or 6.17 and might be what you need.
Interestingly, that patch also fixed the problems that the Distinct patch fixed on tests I ran.
#37
subscribing...hoping for a fix, as the previous drupal core patch discussion went right over my head.
#38
Please accept my apologies for not being clearer in what I was suggesting.
I have not tested the advertisement module yet myself but hope to as soon as time permits.
Coming across this thread made me pause.
Honestly, I don't even fully understand the problem and may be totally off base.
But, seeing mention of problems with JOIN it resonated for me with the thread http://drupal.org/node/681760 on node_access table joins. And this may be totally unrelated in which case the focus can get back to the real problem.
However, if you have a test setup with this problem, even with Drupal 17 or 16 which have the distinct patch, would you consider applying the node_access_subselects patch to see what it does?
The most recent patch is in comment #37
http://drupal.org/node/681760#comment-3155816
I hope this is easier to understand.
Thanks,
Izzy
#39
i am having the same issues.
this module works fine if i have view node content on for anon users... however i don't want any content to be able to be viewed by anon users.
This must be a bug???
Anybody got the answer?
#40
Izzy in post 34 and 38 gave possible solutions ... the patch she indicates might change the query so that it retrieves the records. I have not looked at this yet since it is ok for my users to see the Ads if they have not yet logged in.
If you install the patch and it fixes the issue please let us all know.
#41
Please check the adblock in firefox. I disable the add-on and the problem is gone !
#42
How do you disable 'add-on'?
#43
subscribing.... I can verify that the 6.16 and 6.x2-2 will not work with the NODE | Access Content permission not available to ANON user. BUT, this totally goes against the grain.
I want to expose the ad, not my content.
With NODE |Access Content denied to ANON you recieve the following error in the last line of the debug:
document.write('\x3c!-- No active ads were found in xxx --\x3e');
Please let us know when\if a workaround \ patch \ fix has been completed. I don't think this should not be a bounty issue since it is a basic flaw in the project.
It is to bad, this looks to be an awesome module. Can anyone recommend a replacement to this module for ad mgmt until this issue is resolved?
thanks
#44
Unsubscribing....uninstalling.....cool module but ....fundamental issues....using rotor banner and it is working fine...yea no statistics but it works.
#45
@elastiv, in comment #43
I don't know if this is a module issue or a Drupal configuration issue.
As I understand Drupal, for anonymous users to view any content they need node content access permissions. It is then necessary to use some other node access control if you want private and public content. I know I found that to be a bit counter intuitive when first learning Drupal.
I could be misunderstanding something about Drupal or your point.
#46
If you have a private site, do you allow anonymous access to everyone just to show ads?
#47
@bsmith451
Depends on the site configuration.
To create a private site that allows anonymous to view only some content needs some access control.
If you use organic groups, specific content can be made public or not.
Anonymous user permissions are set to allow node access for content, otherwise Drupal won't let them see anything.
Organic groups then exposes content that is public and hides what is not.
Presumably, if ad content type is set to be a group post, the ads can be shown to specific groups only or made public if desired.
Does that help or am I missing something?
#48
#49
I had this same (or a similar) issue and I resolved it by installing http://drupal.org/project/nodeaccess and using the default values to show nodes of the "ad" type to anonymous users.
For the 'view' $op, ad_access returns false or nothing, and in node_access the call to hook_access is followed by a check of node_access_grants. Without the nodeaccess module, there were no grants.
#50
I was having a similar issue as well. However, I was able to get ads to display on a second installation with the same basic configuration. So I was mystified that I couldn't get an image ad to display on both. After reading a number of posts here, I tried changing the display type to RAW and the test ad finally appeared. So then I tried changing the display type back to javascript and--whoops!--the ad still displayed... where it had not when set to Javascript before.
Not a very scientific assessment... really just a noob shot in the dark. I'm only just trying this module out for the first time, so it remains to be sen whether the behavior resurfaces. But I thought it might be worth posting in case this helps someone else.
#51
Same result as #50: Ads wouldn't display locally (even though they display properly remotely) even with Anonymous having access; using version 6.x-2.x-dev on Drupal 6.19
Changed to RAW --> they displayed fine locally.
Switched back to JQuery --> they display locally now.
#52
#50's solutions worked for me too, rggoode you DA MAN!
#53
I had the same issue, everything worked great on my development server. But when I launched the site and added more "Ads" or changed the current "Ads" it wouldn't display.
I recieved "Failed access check" in my debug information. And I couldn't solve it so I hacked the module.
I commented out the lines 239, 241-244 in adcache.inc which checks for permission.
#54
I am going monkey with this one...
- ad is active
- ad is in the right group (there is only one group, one ad, different classes)
- all profiles have permissions to see
- no adblock plus or anything enabled
- local server (wamp)
- ad setting in raw
- block has title and it displays
doing the
/sites/all/modules/ad/serve.php?q=1&t=5&u=node%2F46&l=home&debug=2i get:ad_dir: 'C:/wamp/www/publiscorts/sites/all/modules/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: '5'
hostid: ''
url: 'node/46'
alias: 'home'
quantity: '1'
aid: '0'
ad_display: 'javascript'
--> Time mark: 20:58:58
Memory usage: 769.828 K
Drupal bootstrap '0'.
Override i18n_variables: 'Array'
Drupal bootstrap complete.
Root drupal directory detected as 'C:\wamp\www\publiscorts'.
C:/wamp/www/publiscorts/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 $
C:/wamp/www/publiscorts/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 $
C:/wamp/www/publiscorts/sites/all/modules/ad/adcache.inc:
C:/wamp/www/publiscorts/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 $
C:/wamp/www/publiscorts/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: 776.797 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: 777.281 K
Invoking cache function 'adserve_cache_open'.
Drupal bootstrap '8'.
PHP: errno(8): Undefined index: HTTP_REFERER ; Line 140 in [C:\wamp\www\publiscorts\sites\all\modules\ip2locale\ip2locale.module]
PHP: errno(8): Undefined index: ip2locale_debug ; Line 153 in [C:\wamp\www\publiscorts\sites\all\modules\ip2locale\ip2locale.module]
PHP: errno(8): Undefined index: ip2locale_debug ; Line 432 in [C:\wamp\www\publiscorts\sites\all\modules\ip2locale\ip2locale.module]
PHP: errno(8): Undefined variable: cc ; Line 418 in [C:\wamp\www\publiscorts\sites\all\modules\ip2locale\ip2locale.module]
PHP: errno(8): Undefined index: ; Line 418 in [C:\wamp\www\publiscorts\sites\all\modules\ip2locale\ip2locale.module]
PHP: errno(8): Undefined variable: cc ; Line 418 in [C:\wamp\www\publiscorts\sites\all\modules\ip2locale\ip2locale.module]
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: 17,195.250 K
Invoking cache function 'adserve_cache_hook'.
adserve_cache function(get_cache)
Cache function 'ad_cache_none_get_cache' does not exist.
Memory usage: 17,195.805 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: 17,200.359 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: 17,200.484 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(host) id()
adserve_cache_id: unsupported type 'host'.
Searching tids: 5
adserve_cache function(id)
Memory usage: 17,200.688 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(tids) id(5)
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(5)
Total ads: '0'.
Already displayed: 0
adserve_cache function(validate)
Cache function 'ad_cache_none_validate' does not exist.
Memory usage: 17,201.227 K
Invoking cache function 'adserve_cache_validate'.
Validated ads: '0'.
adserve_invoke_hook hook(filter) action(intersect)
adserve_cache function(hook)
Memory usage: 17,201.461 K
Invoking cache function 'adserve_cache_hook'.
Invoking hook 'filter'.
Including file: 'C:\wamp\www\publiscorts/sites/all/modules/ad/channel/ad_channel.inc'.
Invoking 'ad_channel_cache_filter'.
ad_channel_cache: adserve_cache_filter
adserve_cache function(get_cache)
Memory usage: 17,266.023 K
Invoking cache function 'adserve_cache_get_cache'.
adserve_cache function(get_cache)
Memory usage: 17,266.719 K
Invoking cache function 'adserve_cache_get_cache'.
ad_channel_cache: returning non-premiere advertisements from randomly selected channel
Filtered ads: '0'.
adserve_invoke_hook hook(weight) action(first)
adserve_cache function(hook)
Memory usage: 17,264.352 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: 17,264.688 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: 17,263.695 K
Invoking cache function 'adserve_cache_display'.
adserve_cache function(increment)
Cache function 'ad_cache_none_increment' does not exist.
Memory usage: 17,264.633 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: 17,265.695 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: 17,265.547 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: 17,265.680 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'exit_text'.
Function 'adserve_hook_exit_text' does not exist.
Memory usage: 17,265.180 K
document.write('\x3c!-- No active ads were found in t5 --\x3e');
anyone solved the issue with this characteristics?
also, if I set raw display, but the debug shows
ad_display: 'javascript'. is that a bug?any help is much appreciated
#55
I deleted all classes and containers and published a new ad and it displayed.
some kind of problem or misconfiguration with the container-class paradigm I guess
#56
hi ppl,
even i had the same issue..just figured it out..checkout your browser, if it has ad blocker installed..disable it and then try again..it worked fine for me..
#57
The root of the problem is the adserve_cache_id() function does a node_access check. During javaScript or JQuery callbacks, the $user is set to Anonymous, so the access checks all fail. The user object wouldn't make much sense if the callback is being sent to an ad-server that does not share the same user database as the site the user is viewing.
Short term, it makes sense to skip the access check altogether (patch attached) and answer the question of who can be served an ad in the block configuration. (If the block is visible, an ad will be served.) Longer term, the callback will need to to be passed some $_GET variables to specify taxonomy and other targeted-ad criteria.
#58
While #57 kinda works, it doesn't work consistently across all delivery methods. IMHO, the permission stuff *never* worked properly, so I would like to change it to drop the "Show Advertisements" permission entirely.
#59
This is a more comprehensive patch. This drops the "Show Advertisements", adds in "View Any Advertisements" and "View Own Advertisements". The View perm changes mean you can only see the node if you own it or can view any, but everyone is always served active ads. It seems to make it work better across delivery methods, too.
#60
@John #59 is looking good.
I just did basic testing, but this actually solves a problem I was having with certain ads that I did not want available for public viewing (because they create an "impression" if the node is opened and they show up in default "Popular Content" block counters); yet I still want them to be served by the module as ads.
I will test it more thoroughly, but I like this so far.
#61
Update: It appears to break image ads. I see broken image tags now; they displayed fine before. When you click the ad, it takes you to the Login page of the site running the module.
In image module, I have:
view original images permission to everyone
I am forwarding debut output.
BTW, I think a short term workaround could be to change it to an HTML ad that uses img src which points to the image that is accessible to everyone anyway.
Update#2: The other workaround is to give everyone access to all the ads (which basically reverts you to the old behavior and removes the "private ad" capability that this was offering)
#62
OK. This one allows anyone to access the ad/redirect/% URLs. You'll need to flush the menu cache after applying this one, but it should take you to the main page. BTW, I'm testing this with only Ad and Image Ad enabled (no ad cache) and image requests pass through Drupal. On the Performance admin page, Block Cache is disabled, Page Cache is Normal.
#63
@John, almost there.
- The Ad is "private" (i.e., Anonymous users can't view the ad nodes in the originating site)
- The redirect that the ad point to, works
- But, the image (for image ads) will not display; Anonymous users don't appear to have access to the images after this patch either. (even though View original image permission is given to Anonymous)
- Modules Enabled: Ad Owners, report, Weight probability, External Ad, HTML Ad, Image, Ad, Remote Ads, and Text Ad
- Caching mode: Normal
- Cache was cleared after applying patch
- Private download method
#64
Yes, it seems this patch breaks sites using the private download method. Private download will also impact site performance as every ad will need to go through Drupal. I would suggest the Private Download module as a short term fix.
#65
OK, I'll look into it, but I am hesitant to add yet another module into the mix.
That plus I am not sure of the effect of switching from Private to Public download method midstream as there are "dire" warnings on the download method admin page, i.e. "Changing the download method will modify all download paths and may cause unexpected problems on an existing site."
So I need to fully understand the impact of switching download methods on data integrity.
#66
There may be a side effect of this patch:
Since patching, whenever I create a block, the Block Visibility settings go blank upon initial save and I have to re-input and save again for them to remain.
I THINK this patch is the culprit because I made no other system changes and have never seen this behavior prior.
(Caveat emptor: I have had a similar issue with setting the Ad scheduled dates #973540: Scheduling issues; so take it with a grain of salt)
I will back out the patch and confirm later tonight.
#67
subscribing
Drupal 6.20
Ad 6.x-2.2
Would be great to get this working. Basically the block I am displaying as "sponsors" in the screen shot is empty but I have created and made 3 ads active (screenshot attached). If I can help testing an patch, no problem. Willing to help in anyway.
#68
@anonymous07 -- I see the "User specific visibility settings" and "Page specific visibility settings" completely blank, too. In the past, they had set some reasonable defaults. However, I can disable the ad module and move the ad module directory out of the modules directory and that still happens. This weekend, I'll build a fresh site and add in modules until I see it happen.
@bkilma -- Ad 6.x-2.2 requires the Anonymous user to have the "Show Advertisements" permission for any ads to appear. This patch removes that requirement, among other things. There have been enough other patches since 2.2 was released that this may not apply cleanly to the 6.x-2.2 release. If you want to help, consider coming up to the 6.x-dev version. (See Git Instructions for Ad Module or download the latest dev tarball from the Ad project page.)
#69
@anonymous07 -- I think we're looking at two different things. In my case, when I crete a block at admin/build/block/add, the default values of a new block's visibility settings are unset (nothing selected). However, i see the same thing on a clean install of Drupal. When I save the new block, the visibility settings are preserved.
#70
As requested I have now moved up to 6.x-2.x-dev. However issue remains. Block appears but no images. Permissions are set to allow all user view (screen shot attached).
Also adding the screen shot of the empty block as well as my 3 adverts that are setup and active.
Again, anything I can do to help, please let me know
#71
A couple cycles through #50 did it for me.
#72
Spoke too soon. Worked for awhile, now ads no longer displaying.