Closed (fixed)
Project:
Advertisement
Version:
6.x-2.2
Component:
ad_image module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2011 at 11:34 UTC
Updated:
15 Mar 2011 at 02:21 UTC
Hi. Hope someone can point me in the right direction. I was running drupal 6.19 and using advertisment 6.22 and everything was fine , banners showing where and when they should have been. I only have 5 banner ads all in default ie have not set any groups or channels or stuff, just five banners rotating ,
After upgrading the drupal core , and cck and taxonomy access control and wysiwyg modules, the site is fine but ads are not showing.
This is the source of the browser for the ad script -
</div>
346</div> <!-- /block -->
347 </div>
348 <div id="content">
349 <div class="content-top"><div id="block-ad-0" class="block ">
350
351
352 <div class="content">
353<div class="advertisement group-tids-0" id="group-id-0">
354 <script type="text/javascript">
355//<![CDATA[
356 $(document).ready(function(){ jQuery("div#group-id-0").load("http://www.ulyssesmelb.com/sites/all/modules/ad/serve.php?m=jquery&q=1&t=0&u=node&l=home"); });
357 //]]>
358 </script>
359</div>
360</div>
361</div>
362</div>
and this is the debug as per the ad documentation -
ad_dir: '/*/*/public_html/sites/all/modules/ad'
debug: '2'
adcache: 'none'
nids: ''
tids: '0'
hostid: ''
url: 'node'
alias: 'home'
quantity: '1'
aid: '0'
ad_display: 'jquery'
--> Time mark: 21:40:51
Memory usage: 650.641 K
Drupal bootstrap '0'.
Drupal bootstrap complete.
Root drupal directory detected as '/*/*/public_html'.
/*/*/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 $
/*/*/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 $
/*/*/public_html/sites/all/modules/ad/adcache.inc:
/*/*/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 $
/*/*/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: 666.594 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: 666.594 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: 26,933.719 K
Invoking cache function 'adserve_cache_hook'.
adserve_cache function(get_cache)
Cache function 'ad_cache_none_get_cache' does not exist.
Memory usage: 26,934.008 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: 26,940.781 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: 26,943.305 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(host) id()
adserve_cache_id: unsupported type 'host'.
Searching default: 0
adserve_cache function(id)
Memory usage: 26,943.305 K
Invoking cache function 'adserve_cache_id'.
adserve_cache_id: type(default) id(0)
adserve_cache_id: SELECT a.aid FROM {ads} a LEFT JOIN {term_node} n ON a.aid = n.nid WHERE a.adstatus = 'active' AND n.tid IS NULL
adserve_cache_id: Ad '276' failed access check.
adserve_cache_id: Ad '277' failed access check.
adserve_cache_id: Ad '278' failed access check.
adserve_cache_id: Ad '368' failed access check.
adserve_cache_id: Ad '449' failed access check.
Total ads: '0'.
Already displayed: 0
adserve_cache function(validate)
Cache function 'ad_cache_none_validate' does not exist.
Memory usage: 28,694.961 K
Invoking cache function 'adserve_cache_validate'.
Validated ads: '0'.
adserve_invoke_hook hook(filter) action(intersect)
adserve_cache function(hook)
Memory usage: 28,694.961 K
Invoking cache function 'adserve_cache_hook'.
Invoking hook 'filter'.
Including file: '/*/*/public_html/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: 28,776.141 K
Invoking cache function 'adserve_cache_get_cache'.
adserve_cache function(get_cache)
Memory usage: 28,776.297 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: 28,776.641 K
Invoking cache function 'adserve_cache_hook'.
Invoking hook 'weight'.
Including file: '/*/*/public_html/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: 28,792.508 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: 28,792.508 K
Invoking cache function 'adserve_cache_display'.
adserve_cache function(increment)
Cache function 'ad_cache_none_increment' does not exist.
Memory usage: 28,792.508 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: 28,792.633 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: 28,792.977 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: 28,792.977 K
Invoking cache function 'adserve_cache_hook'.
Did not find hook 'exit_text'.
Function 'adserve_hook_exit_text' does not exist.
Memory usage: 28,793.031 K
Output: <!-- No active ads were found in 0 -->
Hope someone can help me out here please.
Comments
Comment #1
jeremy commentedIt's an access issue. See here from your debug output:
The ad module code that generates this message:
So it's failing the node_access('view') check.
Comment #2
fluxrider commentedThanks Jeremy for your input. I figured that part and have been all over the permissions checking them out , keeping in mind it worked fine under 6.19 . Apart from cck which has content permissions , but I dont think is related to ad module ?? the only node access I have set up is with Taxonomy access controll ( TAC ). The default is set for view access there but TAC has a default category of its own which I thought might be clashing so I set up the banners in a group and gave access to them in TAC but still it failed the node access and no ads displayed.
I guess the only thing left to do is turn off modules one by one untill I find the culprit. I cant figure though why the super user would not be seeing the ads. That makes no sence to me. No 1 user can see the ads in raw mode , though no one alse can see the raw version but why would super user not see the jquerry version . Strange to me.
Also , I cant figure out why advertisement module is the only thing not working after upgrade.
Got no idea what to try really.
One thing concerning is the ad-weight probability table is showing up in the scheme module as an extra ie Tables in the database that are not present in the schema.
Comment #3
fluxrider commentedWell , just to follow up on this now that I have it working again. The culprit was indeed TAC. It worked before because previous version of TAC had a bug that allowed unclassified items to be viewed under certain conditions. The latest version of TAC fixed that , and thus hid my ads.
I had the default global setting for TAC set at deny so viewers could not see any content that was unclassified. In other words , all content on my site had to have a associated taxonomy term or it would not display. ( this was set up way back in 4.7 days )
The ads now show after setting the global TAC to view. phew.