Home > fatal error > fatal error call to undefined function drupal_set_html_head

Fatal Error Call To Undefined Function Drupal_set_html_head

that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Issues Fatal error: Call to undefined function: drupal_set_html_head() Closed fatal error call to undefined function drupal_add_html_head (fixed)Project:Drupal coreVersion:x.y.zComponent:module systemPriority:CriticalCategory:Bug reportAssigned:UnassignedReporter:johan sorensenCreated:August 24, 2004 - 14:52Updated:September 18, 2005 - 22:01 fatal error call to undefined function field_attach_load() drupal 7 Log in or register to update this issue When users aren't logged into my drupal system, the following error message appears at the bottom: Fatal error: Call to undefined function: drupal_set_html_head() in /home/cocoa/public_html/modules/codefilter/codefilter.module on line 15 As seen on the bottom on this site: http://www.cocoa.se/ however, when a user is logged in it doesn't throw that error. (I'm running drupal 4.4.2) Comments Comment #1 anj CreditAttribution: anj commented December 14, 2004 at 11:08am I fixed this by moving the offending line (21) drupal_set_html_head('style type="text/css">@import url(' . $GLOBALS[base_url] . '/modules/codefilter/codefilter.css);'); out of the codefilter_init function, and placing it at the start of the codefilter_filter function. The drupal_set_html_head function is not declared when the modules are initialized, and anyway, I think it makes more sense for the module to only patch the HTML headers if it is actually being invoked for that page. Unless I've misunderstood and codefiler_filter can be called more than once per page, in which case we might end up with the same stylesheet being included many times (depending on how drupal_set_html_head works). Cheers, The Stoat. Log in or register to post comments Comment #2 anj CreditAttribution: anj commented December 14, 2004 at 11:09am I fixed this by moving the offending line (21) drupal_set_html_head('style type="text/css">@import url(' . $GLOBALS[base_url] . '/modules/codefilter/codefilter.css);'); out of the codefilter_init function, and placing it at the start of the codefilter_filter function. The drupal_set_html_head function is not declared when the modules are initialized, and anyway, I think it makes more sense for the module to only patch the HTML headers if it is actually being invoked for that page. Unless I've misunderstood and codefiler_filter can be called more than once per page, in which case we might end up with the same stylesheet being included many times (depending o

that make connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes Ubercart Text Based Best Sellers BlocksIssues Fatal error: Call to undefined function drupal_set_html_head() in modules/uc_product_blocks/uc_product_blocks.module on line ActiveProject:Ubercart Text Based Best Sellers BlocksVersion:5.x-1.0Component:CodePriority:NormalCategory:Bug reportAssigned:bakyildizReporter:satoCreated:January 30, 2009 - 00:40Updated:December 20, 2012 - 18:06 Log in or register to update this issue Got the following https://www.drupal.org/node/10317 error. Fatal error: Call to undefined function drupal_set_html_head() in xxx/modules/uc_product_blocks/uc_product_blocks.module on line 7 Need your help to figure out whats wrong with my site.http://www.ubercart.org/forum/support/6956/fatal_error Comments Comment #1 bakyildiz CreditAttribution: bakyildiz commented February 12, 2009 at 8:12pm Assigned: Unassigned » bakyildiz Is it possible to insert the following https://www.drupal.org/node/366465 line into xxx/modules/uc_product_blocks/uc_product_blocks.module file after function uc_product_blocks_init() { require_once './includes/common.inc'; Should look like function uc_product_blocks_init() { require_once './includes/common.inc'; drupal_set_html_head('

 

© Copyright 2019|winbytes.org.