Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm working with the best way to place adsense advertising.
I've written a module to do it the way I want, and now I'm getting this error.
Cannot modify header information - headers already sent by (output started at /usr/www/users/davidh/modules/adsense_inline/adsense_inline.module:52) in /usr/www/users/davidh/includes/common.inc on line 224.
Another line reported is at common.inc line 192. I am using drupal 4.6.2 (so that you know where the line#'s point).
In both cases the header() function is being called.
Can someone help me understand how to avoid this error? The code for my module and some discussion follows.
For a custom module I am developing, I am trying to find a way to capture the time a user spends viewing a node/page in real time. In this quest, I have been tinkering with the _init and _exit hooks - but that does not seem to be accomplishing the goal. Any ideas on how to accomplish this are greatly appreciated!
Whether I use the menu link or go to the direct url /admin/modules doesn't show up. When I could get the page I have a new module that won't show up on the list so that I can enable it. It's _node_name, all function names begin with, and the name of the file is insurance. I'm stumped. Thoughts? Suggestions?