Jump to content

error module extramanufacturer in presta 1.4


Engkus Kusnadi

Recommended Posts

i have error syntax

Manufacturer
Fatal error: Uncaught exception 'SmartyException' with message '{php} is deprecated, set allow_php_tag = true to enable' in C:\xampp\htdocs\prestashop\tools\smarty\plugins\block.php.php:21 Stack trace: #0 C:\xampp\htdocs\prestashop\tools\smarty\compile\e8e8b6d5d906d483c9d2b82a472696de5548c07c.file.extramanufacturer.tpl.php(26): smarty_block_php(Array, NULL, Object(Smarty_Internal_Template), true) #1 C:\xampp\htdocs\prestashop\tools\smarty\sysplugins\smarty_internal_template.php(433): include('C:\xampp\htdocs...') #2 C:\xampp\htdocs\prestashop\tools\smarty\sysplugins\smarty_internal_template.php(568): Smarty_Internal_Template->renderTemplate() #3 C:\xampp\htdocs\prestashop\tools\smarty\Smarty.class.php(339): Smarty_Internal_Template->getRenderedTemplate() #4 C:\xampp\htdocs\prestashop\classes\Module.php(823): Smarty->fetch('C:\xampp\htdocs...', NULL, NULL) #5 C:\xampp\htdocs\prestashop\modules\extramanufacturer\extramanufacturer.php(170): ModuleCore::display('C:\xampp\htdocs...', 'extramanufactur...') #6 [internal function in C:\xampp\htdocs\prestashop\tools\smarty\plugins\block.php.php on line 21

and my script manufacturer.php

function hookExtraLeft($params)
{
global $smarty;


$mn = Configuration::get('EXTRAMANUFACTURER_MN');
$mi = Configuration::get('EXTRAMANUFACTURER_MI');
$sn = Configuration::get('EXTRAMANUFACTURER_SN');
$si = Configuration::get('EXTRAMANUFACTURER_SI');

$id_product = intval(Tools::getValue('id_product'));
$product2 = new Product($id_product, true, intval($cookie->id_lang));


$smarty->assign(array(
'mn' => $mn,
'mi' => $mi,
'sn' => $sn,
'si' => $si,
'product2' => $product2


));

return $this->display(__FILE__, 'extramanufacturer.tpl');
}

do you know that this problem ??

Link to comment
Share on other sites

  • 4 weeks later...
  • 6 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...