I've been scratching my head on this one for a while now.... When I configure the ad module to use jQuery, and place an ad in (any) block region, I end up with a page rendering with a blank block region where the ad should be, and no other content of the page is visible. The HTML is there, but something in jQuery, which i have not managed to identify yet, fails to properly render the ad, which (i suspect) breaks some HTML someplace within the ad (or jQuery dies).

This bug seems to manifest itself regardless of the ad type (text, html, and image i have tested).

I cannot reproduce this with Firefox on the Mac, and I do not have access to Safari on Windows, so i cannot test it for that platform.

If I reconfigure the ad placement to render with javascript, all seems to function properly on both FireFox and Safari.

Comments

jeremy’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have an ad blocker enabled? This is the #1 reason why you'll get blank block region instead of an advertisement.

If you switch from jQuery to another display method, does the advertisement then appear?

bassplaya’s picture

I've tested it on Opera (9.20) as well and it's the same thing as with Safari.
Actually the screen goes totally blank but if you look at the source code, everything of that page is still there.
That page meaning: admin/content/ad/configure
To resolve that I went back to Firefox, changed it back to javascript and Opera and Safari worked well again.
I worked with the latest D6 release and the latest Advertisement module release as for 10/02/2009.I'm not a programmer at all but I hope this will help you with the insight of what to do.
Cheers for working on this module so hard !

jeremy’s picture

Now I'm confused. You're saying the entire page is blank at 'admin/content/ad/configure', or just the ad block? Is the ad block blank on every page, or just the admin page?

If it's the entire page, review the apache error log.

If it's just the block on a specific page, review the block configuration.

If it's just the block on every page, then review the source for that block and follow the directions in documentation/DEBUG.txt to collect more information, posting it here.

bassplaya’s picture

Hi Jeremy,

it's the entire page. like the WSOD but if you look at the source the code is there.. screen is whitish (using Garland).. don't know why..
this is part of code that was spitted out.. maybe this can help you:

<div id="block-ad-4" class="clear-block block block-ad">


  <div class="content">
<div class="advertisement group-tids-4" id="group-id-0">
 <script type="text/javascript">
 //<!--[CDATA[
  $(document).ready(function(){ jQuery("div#group-id-0").load("http://localhost:8888/sites/all/modules/ad/serve.php?m=jquery&q=1&t=4"); });
 //]]>
 </script>
</div>
</div>
</div>

I don't know where and how to review the apache error log, sorry.
I'm not that professional though I hope my input can help you out in creating a great module.

jeremy’s picture

Until we track this down, I recommend that you display ads using the JavaScript method! ;)

One thought would be to try using the Jquery Update module -- perhaps this is an issue with the version of jquery that ships with Drupal?

jeremy’s picture

Status: Postponed (maintainer needs more info) » Fixed

No feedback in further feedback in over two months, closing issue.

Status: Fixed » Closed (fixed)
Issue tags: -jQuery, -safari

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