Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I installed drupal 5.5 and then I installed the ad module but it wont work
all modules are active and only the page "/admin/content/ad" is accessable other pages are just blank.
I tested the dev version and the stable version but the result was the same
screenshot attached
Comments
Comment #1
Nels CreditAttribution: Nels commentedI'm having a similar problem with the current stable release of of Ad.
Unlike holydrupal, I see a list of ads I created, and the ads display fine when I'm logged in as superuser, but not when not logged in or logged in as a "regular" user.
I ran debug with
http://www.nashvillecityblogs.com/drupal/modules/conrib/ad/adserve.php?q=1&t=2&debug=2
and here's the result:
Comment #2
Nels CreditAttribution: Nels commentedIt looks like it's trying to pull the ad image files from the mythical //[drupalroot]/system/files/File.gif when the file actually exists at //[drupalroot]/files/File.gif
Comment #3
holydrupal CreditAttribution: holydrupal commentedso whats the solution :(
For weeks I am waiting for an answer!
any idea how we could fix this problem ?
Comment #4
Nels CreditAttribution: Nels commentedI was able to get ads to show to the anonymous users by adding the permission "View Uploaded Files".
This doesn't address the blank page issue.
@holydrupal: Have you looked at the Troubleshooting FAQ - Blank Page - White Screen of Death here: http://drupal.org/node/158043 ?
Comment #5
holydrupal CreditAttribution: holydrupal commentedI assume the issue is within the ad module not the drupal as far as my whole modules works fine except the ad module.
when I click one of the tabs of the ad page such as groups, it just show me a blank screen:
I don't know what this img have to do with ad module?!!!!
I am really exhausted :(
Please someone help me.
Comment #6
Jeremy CreditAttribution: Jeremy commentedFor a blank page, review the Apache log. There's no reason Drupal 5.5 should be an issue. Are you using symbolic links? If so, that's most likely your problem. With the development snapshot version, there's a DRUPAL_ROOT configuration option at the top of adserve.inc allowing you to support installations using symbolic links.
Comment #7
holydrupal CreditAttribution: holydrupal commentedThanks for your reply.
unfortunately I am using a shared hosting account and I couldn't access to my apache logs.
I installed drupal on a folder called "Persian" and the ad module is in "sites/all/modules" folder. I don't build any other website other than "Persian". I tried to change the drupal_root before but it doesn't worked.
There is no error in drupal's logs.
I hope we could solve the problem.
Please let me know if you need any further information.
regards,
Comment #8
Jeremy CreditAttribution: Jeremy commentedI have confirmed that the ad module works fine with Drupal 5.5. If you are getting a blank white screen, you will need to speak with your web host to get access to your apache error logs to determine what the error is.
Comment #9
holydrupal CreditAttribution: holydrupal commentedhere is my apache logs:
hope some one could help me.
Comment #10
Jeremy CreditAttribution: Jeremy commentedThat is your access_log. You need to review your error_log during the time that you saw the blank white pages.
Comment #11
holydrupal CreditAttribution: holydrupal commentedI found the problem which is so unusual!!!
I always connect to internet without proxy but today while I was surfing the site with a proxy software, The ad module and all the settings are working!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I don't have any idea!
please if anyone could guess the target of this problem let me know?
so unusual issue which caused big latency in my project.
Comment #12
Jeremy CreditAttribution: Jeremy commentedYou say it works with a proxy, or without? What are you trying to debug, the times it doesn't work, or the latency issues? More detail about what is going on is required in order to try and help you.
Again, if you're getting blank white pages, that will usually show up in the Apache error_log. Or, if there's a proxy in between you and the website, then refer to the proxy logs.
Comment #13
holydrupal CreditAttribution: holydrupal commentedthe module works fine when I'm using a proxy so most probably there is something with my ISP. I must check other ISPs to see if they are the same or not.
Comment #14
holydrupal CreditAttribution: holydrupal commentedI installed Firebug for investing about this issue.
does the above code will help u?
In the Tab "Net" in firebug it shows:
but there is no information in Tab "response" which I think it means a white page.(no info=white page)
the white page appear very quickly when I'm clicking on the ad module Tabs.
Comment #15
Jeremy CreditAttribution: Jeremy commentedWhen you get this white page, do any logs get added to the apache access_log or the apache error_log? If no, then your request isn't even getting to your web server. If yes, then there _must_ be an entry in the error_log, and this will explicitly tell you why Apache is failing to serve that specific PHP page.
Comment #16
holydrupal CreditAttribution: holydrupal commentedNo, I couldn't find any error log both in Cpanel and also in drupal watchdog, But I couldn't understand why this happen?
why only ad module tab wont work in website. I have installed many modules yet but yet none of them had the issue like this one?!
Couldn't understand what causing this problem !:
Comment #17
Jeremy CreditAttribution: Jeremy commentedOkay, now I know what your problem is.
You are on Windows, and you're running some firewall/ad blocker software that's filtering out any URL that has /ad/ in the URL. You need to either disable this software, or whitelist your website, or otherwise configure it to allow you to navigate your own website.
It's worth upgrading to the recently released 5.x-1.4 as well, as I added quite a few new sanity checks.
Comment #18
Jeremy CreditAttribution: Jeremy commentedThis could also be caused by AdBlocker on FireFox.
Comment #19
holydrupal CreditAttribution: holydrupal commentedWOOOOO!
yes, you were right!
the ad module is working with IE!!!
I definitively will upgrade to 1.4.
the module just wont in FF. how could I fix this issue in FF?
Comment #20
Jeremy CreditAttribution: Jeremy commentedIf it's only affecting FireFox, then it's most likely your usage of the AdBlock add-on. Try simply disabling it and see if the problem goes away. If so, then you'll probably want to whitelist your own website.
Comment #21
holydrupal CreditAttribution: holydrupal commentedIt just affect Firefox but I don't use AdBlock add-on. does it installed by default?
Comment #22
Jeremy CreditAttribution: Jeremy commentedThe problem is obviously outside of the ad module, I'm not sure how much more help I can be to you. All I can recommend is that you go through your firefox configuration until you figure out what is causing these pages to not display. I would start in Tools -> Add Ons, but review your entire installation if you don't find anything there.
Comment #23
ismaiel CreditAttribution: ismaiel commentedthe Problem is
the Kaspersky Internet Security
to Solve the Problem you have to Disable the Anti-Banner from
go to
Protection --- Firewall -- Uncheck Enable Anti-Banner
but this will not solve the problem for all visitors
Its seems that the main problem from the name of the module (ads)
Comment #24
Jeremy CreditAttribution: Jeremy commentedAd blockers are designed to block advertisements, pure and simple. The name of the ad module could be changed, as could the path that advertisements are served from, but ad blockers then simply need to update their list of blocked paths.
If people choose to enable ad blockers, I personally respect their decision to not view ads and do not make any attempt to work around this.
Comment #25
Jeremy CreditAttribution: Jeremy commentedUpdating the title of this issue, and marking as by design. The ad module is designed to serve ads, while ad blockers are designed to block ads.
Comment #26
silvanov CreditAttribution: silvanov commentedI'm looking at installing this module, and wondering if this issue was with a default firefox install, or with the mentioned Kaspersky Internet Security program. I'd hate to get my ads all set up and all firefox users not be able to see them.
Comment #27
Jeremy CreditAttribution: Jeremy commentedDefault firefox does not block ads, only if you install something like Adblock Plus along with an aggressive filter subscription.
Comment #28
iamnoskcaj CreditAttribution: iamnoskcaj commentedThis is a bummer, because my "ads" are actually INTERNAL "ads" that link to our own INTERNAL CONTENT.
Essentially I wanted to spotlight sections of the site -- so I thought of the graphics that I created as "ads" -- but if simple adblockers are going to filter this, then my frontpage will be pretty bare.
Off to find a different system... unless someone has a suggestion?
Comment #29
Jeremy CreditAttribution: Jeremy commentedI'd start by renaming the "ad" directory to something else. "ad/serve.php" is easy to match on. "foo/serve.php" much less so. (If you rename your ad directory, you may have to re-enable the module as the path will change. Nothing will be lost though, otherwise.)
Comment #30
ratinakage CreditAttribution: ratinakage commentedHi,
I am also very interested in the best way to solve this problem. My entire front page is going to be an image that will change randomly and lead you to various featured products on the site. It seems stupid that this would be blocked by Firefox AdBlock since I am using this module to show products on a shopping site. Anyone on this site is there to see products obviously.
AdBlock hides this image leaving my front page basically a black empty screen with a menu at the top and columns on the side.
Can you elaborate on instructions that might make AdBlock stop blocking my image. Here's the rendered HTML code in a browser without AdBlock.
Its a shame but if I can't solve this issue then I can't use this module.
Comment #31
Michael_Lessard_micles.biz CreditAttribution: Michael_Lessard_micles.biz commentedSee also the Ad module discussion here [ https://drupal.org/node/663742 ] which proposes various solutions and helpful methods, including a simple script asking the viewer to whitelist your site (i.e. I use Ad module to show not-for-profit banners and images).