Error when using <?=cn_title(); ?>

Need some help with the script?

Error when using <?=cn_title(); ?>

Postby Goberg » Fri Jun 18, 2010 6:03 am

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


I get this code when I try to use the <?=cn_title(); ?> tag anywhere on my site. I have of course activated the CN Functions plugin and included the head.php file at the top of my file.

Around line 769 I find this function:
Code: Select all
////////////////////////////////////////////////////////
// Function:   cute_lang
// Description: ????? ????????? ??????

function cute_lang($module = ''){
global $mod, $config_lang;

   if (!file_exists($global = rootpath.'/inc/lang/'.$config_lang.'/global.ini')){
      $global = rootpath.'/inc/lang/en/global.ini';
   }

   if (!file_exists($local = rootpath.'/inc/lang/'.$config_lang.'/'.($module ? $module : $mod).'.ini')){
      $local = rootpath.'/inc/lang/en/'.($module ? $module : $mod).'.ini';
   }

   if (file_exists($global)){
      $lang = parse_ini_file($global, true);
   }

   if (file_exists($local)){
      $lang = array_merge($lang, parse_ini_file($local, true));
   }

return $lang;
}


Any ideas on how to fix this? It would be bad for my site if I can't use the <?=cn_title(); ?> tag :(
Goberg
 
Posts: 79
Joined: Thu Jan 18, 2007 2:31 pm

Postby Goberg » Mon Jun 21, 2010 4:14 am

I am sorry for posting so many times. The forum gave me a mysql error when i submited so i didn't think it was going through.

Sorry
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