I want to install the following script:
http://www.rswr.net/hlogoz-holiday-logo-changer/ on our home page. The script allows you to show a different logo (or any image) for each holiday.
I have placed the php include in head.tpl.
Code:
{include_php file="/home/user/website-www/html/include/hlogoz/hlogoz.php"}
To make sure I used the correct path, I first placed a test file in the same location (include/hlogoz/testfile.php) and it returned successfully when I visited our website's home page. However, when I use the code that calls hlogoz.php, I received the following error message upon visiting the home page:
Quote:
"Can't launch template engine"
|
I searched my x-cart files and found this error message to originate from x-cart's config.php file:
Code:
#
# Create Smarty object
#
if (!@include $xcart_dir."/smarty.php") {
echo "Can't launch template engine!";
exit;
}
$smarty->assign("http_location",$http_location);
$mail_smarty->assign("http_location",$http_location);
$smarty->assign("https_location",$https_location);
$mail_smarty->assign("https_location",$https_location);
$smarty->assign("xcart_web_dir",$xcart_web_dir);
$smarty->assign("current_location",$current_location);
$smarty->assign("php_url",$php_url);
$xcart_catalogs = array("admin"=>$current_location.DIR_ADMIN, "customer"=>$current_location.DIR_CUSTOMER, "provider"=>$current_location.DIR_PROVIDER, "partner"=>$current_location.DIR_PARTNER);
$smarty->assign("catalogs", $xcart_catalogs);
$mail_smarty->assign("catalogs", $xcart_catalogs);
$xcart_catalogs_secure = array("admin"=>$https_location.DIR_ADMIN, "customer"=>$https_location.DIR_CUSTOMER, "provider"=>$https_location.DIR_PROVIDER, "partner"=>$https_location.DIR_PARTNER);
$smarty->assign("catalogs_secure", $xcart_catalogs_secure);
What could be the problem?