Weird error when using cn_title

Need some help with the script?

Weird error when using cn_title

Postby Goberg » Thu Jun 17, 2010 8:05 am

I get this error when I try to insert <?=cn_title(); ?> into my head section:

Code: Select all
Catchable fatal error: Object of class template could not be converted to string in /home/meditcom/public_html/boss/inc/functions.inc.php  on line 769


On line 769 i find this function:

Code: Select all
////////////////////////////////////////////////////////
// Function:   cute_cache
// Description: ??????????

function cute_cache($file, $uniqid = '', $ext = ''){
global $cache_file, $template;

   $cache_file = rootpath.'/cache/'.$file.($template ? '-'.$template : '').($uniqid ? '('.$uniqid.')' : '').($ext ? '.'.$ext : '').'.tmp';

   if (file_exists($cache_file) and cache){
      return file_read($cache_file);
   }

return false;
}



I include head.php at the beginning of the file, and I have activated the plugin for the functions. Any ideas on whats wrong?
Goberg
 
Posts: 79
Joined: Thu Jan 18, 2007 2:31 pm

Return to Help



Who is online

Users browsing this forum: No registered users and 1 guest

cron