Hallo,
nu ik met een bestelwebsite bezig ben, loop ik tegen de volgende foutcode aan:
Parse error: syntax error, unexpected '{' in /home/bpg/domains/bpg.nl/public_html/bouwhof/bestemmingsmap/index.php on line 57
Lijn 57 is de eerste regel die hieronder volgt, die begint met try {
if ($dir=='/'||$dir=='\\') {
$shop_root_dir.='/';
} else {
if (strpos($dir,'\\')==false) {
$dir=str_replace('\\','/',$dir);
}
$shop_root_dir.=$dir.'/';
}
$tpl->assign('http_pref',$shop_root_dir);
try {
$group_seo_name = get_seo_name_assoc_array ("groups");
$tpl->xmlArray2Smarty($group_seo_name);
$tpl->xmlArray2Smarty($conf->data['LV_OPTIONS']);
$tpl->xmlArray2Smarty($conf->data['LV_TEXT']);
$tpl->xmlArray2Smarty(array('LV_LANGUAGES_SELECTION'=>$conf->data['LV_LANGUAGES_SELECTION']);
if ($pg->exists("action"))
{
$action = $pg->action;
} else {
$action = "";
}
Als ik nu line 57 wijzig door { weg te laten, geeft het de volgende foutmelding weer:
Parse error: syntax error, unexpected T_VARIABLE in /home/bpg/domains/bpg.nl/public_html/bouwhof/bestemmingsmap/index.php on line 58
Alvast bedankt!
542 views