Delysid
07-17-2012, 07:06 PM
Fatal error: Smarty error: : syntax error: unexpected {elseif} (Smarty_Compiler.class.php, line 495) in /home/geloo/public_html/imob/libs/Smarty.class.php on line 1092
This is what i get when i finish adding an ad on my site and i can't figure out what is the problem.
here is the [I]/free_return.php:
<?php
/*
*
* OxyClassifieds.com : PHP Classifieds (http://www.oxyclassifieds.com)
* version 6.0
* (c) 2009 OxyClassifieds.com (office@oxyclassifieds.com).
*
*/
require_once "include/include.php";
require_once "classes/mail_templates.php";
require_once "classes/mails.php";
require_once "classes/mail_settings.php";
require_once "classes/info.php";
//require_once "classes/actions.php";
require_once "classes/users_packages.php";
require_once "classes/packages.php";
require_once "include/payments.php";
require_once "classes/coupons.php";
require_once "classes/alerts.php";
require_once "classes/pictures.php";
global $db;
global $lng;
$smarty = new Smarty;
$smarty = common($smarty);
$smarty->assign("lng",$lng);
$smarty->assign("section","other");
global $config_debug;
$payment = new payment("free");
$info='';
$payment->process();
$info = $payment->getInfo();
$smarty->assign("info",$info);
$db->close();
if($db->error!='') { $db_error = $db->getError(); $smarty->assign('db_error',$db_error); }
$smarty->display('payment_return.html');
close();
?>
Thanks in advance.
PS: I also attached the newad.php (copied in txt) - this is the file with the steps to add an ad, and the problem could be also at step 6 - 7, final ones.
This is what i get when i finish adding an ad on my site and i can't figure out what is the problem.
here is the [I]/free_return.php:
<?php
/*
*
* OxyClassifieds.com : PHP Classifieds (http://www.oxyclassifieds.com)
* version 6.0
* (c) 2009 OxyClassifieds.com (office@oxyclassifieds.com).
*
*/
require_once "include/include.php";
require_once "classes/mail_templates.php";
require_once "classes/mails.php";
require_once "classes/mail_settings.php";
require_once "classes/info.php";
//require_once "classes/actions.php";
require_once "classes/users_packages.php";
require_once "classes/packages.php";
require_once "include/payments.php";
require_once "classes/coupons.php";
require_once "classes/alerts.php";
require_once "classes/pictures.php";
global $db;
global $lng;
$smarty = new Smarty;
$smarty = common($smarty);
$smarty->assign("lng",$lng);
$smarty->assign("section","other");
global $config_debug;
$payment = new payment("free");
$info='';
$payment->process();
$info = $payment->getInfo();
$smarty->assign("info",$info);
$db->close();
if($db->error!='') { $db_error = $db->getError(); $smarty->assign('db_error',$db_error); }
$smarty->display('payment_return.html');
close();
?>
Thanks in advance.
PS: I also attached the newad.php (copied in txt) - this is the file with the steps to add an ad, and the problem could be also at step 6 - 7, final ones.