The problem when I finish Installing care 2x and try to open main page it gives me this error:
Session: connection failed
Fatal error: Cannot access empty property in /home/a3407783/public_html/gui/smarty_template/smarty_care.class.php on line 75
and this file code:
PHP Code:
<?php
/**
* SETUP Smarty for CARE2X
*
* SMARTY.PHP
* 19.12.2003 Thomas Wiedmann
* Converted to smarty_care.class.php by Elpidio Latorilla 2003-12-25
* For global smarty template class
*/
global $root_path, $templatedir, $default_template, $sDocRoot, $LDCloseAlt, $cfg, $lang, $pgt, $GLOBAL_CONFIG;
$this->smarty();
$this->root_path = $root_path;
# Set the root path
$this->assign('root_path',$root_path);
# Path to the smarty care templates and classes
$this->sDocRoot = $root_path.'gui/smarty_template';
# Set the template
# First check if the user config template is available
if(isset($cfg['template_smarty'])&&!empty($cfg['template_smarty'])){
$this->templatedir=$cfg['template_smarty'];
}else{
# Else get try to get the global config template
if(!isset($GLOBAL_CONFIG)||!is_array($GLOBAL_CONFIG)) $GLOBAL_CONFIG=array();
# create global config object
if(!isset($GLOBAL_CONFIG['template_smarty'])){
include_once($root_path.'include/care_api_classes/class_globalconfig.php');
$gc=& new GlobalConfig($GLOBAL_CONFIG);
# Get the global template config
$gc->getConfig('template_smarty');
}
# If the global config template is not available, use hard coded template theme
if(!isset($GLOBAL_CONFIG['template_smarty'])||empty($GLOBAL_CONFIG['template_smarty'])){
if(isset($template_theme)) $this->templatedir=$template_theme; // use this theme if the global item is not available
else $this->templatedir = $this->$default_template;
}else{
$this->templatedir=$GLOBAL_CONFIG['template_smarty'];
}
}
# Last check if the template directory does not exist, use default template (last resort)
//if(!file_exists("$this->sDocRoot/tempates/$this->templatedir/.")) $this->templatedir=$this->default_template;
# Set the flags
$this->bInitGUI = $bInit;
$this->bShowCopyright = $bShowCopy;
$this->bLoadJS = $bLoadJS;
# Added for the html tag direction
$this->assign('HTMLtag',html_ret_rtl($this->lang));
# Set colors
$this->assign('top_txtcolor',$this->cfg['top_txtcolor']);
$this->assign('top_bgcolor',$this->cfg['top_bgcolor']);
$this->assign('body_bgcolor',$this->cfg['body_bgcolor']);
$this->assign('body_txtcolor',$this->cfg['body_txtcolor']);
$this->assign('bot_bgcolor',$this->cfg['bot_bgcolor']);
# Set title bar buttons
$this->assign('gifBack2',createLDImgSrc($this->root_path,'back2.gif','0') );
$this->assign('gifHilfeR',createLDImgSrc($this->root_path,'hilfe-r.gif','0') );
$this->assign('gifClose2',createLDImgSrc($this->root_path,'close2.gif','0') );
$this->assign('LDCloseAlt',$this->LDCloseAlt );
# Set default href of the title bar buttons
# By default, the back button uses the javascript
$this->assign('pbBack','javascript:window.history.back()');
# By default the help button points to the main help window
$this->assign('pbHelp',"javascript:gethelp()");
# By default the break/close button points to the main startframe
$this->assign('breakfile',$this->root_path.'main/startframe.php'.URL_APPEND);
# By default the toolbar title is empty
//$this->assign('sToolbarTitle','');
# By default the window title is Care2x
$this->assign('title','Care2x');
That would be somewhat difficult to daignose as I have not used the software you are asking about. However, I believe the error refers to this line (75):
This is syntactically invalid, $default_template should not be prefixed by a dollar sign. It is possible that your server configuration is incompatible with the care2x software (ie: you may be running a too-recent version of PHP!).
Well I am quite aware what it is, but I am not going to download and install it. The issue you are experiencing is a syntax error - correct it or use a server configuration that is compatible with your software.
__________________
If I have been helpful, use the "thank" button - It makes me happy!
xconspirisist.co.uk - homepage of my online alias technowax.net - a community for people interested in all forms of modern technology.