Happy New Year, The foolab way.

Body

Happy new year all.
Alaa woke me up today saying that foolab is down. It was obvious that the codefilter.module "Which the drupal module used to highlight the php code." is not playing nice with drupal,I don't know why.
But Seeing an error about undefined functions is not a sign of good.
I don't know what happened, The site has been working for long time,
I tried to logout to find the error. It seems that it's happening to non logged in users, I searched drupal.org to find that this is a reported bug!
I don't know how many of you were affected by this error.
Anyway, I've disabled the following code in the module and everything is fine now.

<?
function codefilter_init() {  
drupal_set_html_head('<style type="text/css">@import url('. $GLOBALS[base_url] .'/modules/codefilte\r/codefilter.css);</style>');         
?>

I moved the code to the theme file.

<?
// Codefilter block.
if (function_exists("codefilter_help"))
{
$output .= '<style type="text/css">@import url('. $GLOBALS[base_url] .'/modules/codefilte\r/codefilte\r.css);</style>';
}
?>

Another thing just to fuck up my mind, the codefilter module prevents drupal from generating the node teaser, I wonder why ?

Add new comment

The content of this field is kept private and will not be shown publicly.