- 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
