attached_node does not like cache
zigazou - September 7, 2006 - 17:05
| Project: | Attached Node |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
if I enable Drupal's cache mechanism, every page I try to download as anonymous user is completely blank (0 bytes) and the following error is added to the error log file of Apache :
PHP Fatal error: Call to undefined function drupal_set_html_head() in /var/www/html/modules/attached_node/attached_node.module on line 31
If I disable cache, everything works fine.
The attached_node.module file has the following mark :
$Id: attached_node.module,v 1.12 2006/08/13 18:12:15 javanaut Exp $

#1
I have changed the function to be:
/**
* Adds attached_node stylesheet to html head section of pages
*/
function attached_node_init() {
global $base_url;
if (function_exists('drupal_set_html_head')){
drupal_set_html_head("");
}
}
and all appears well. Without this test, RSS feeds are empty too.