|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
sadnic Smarty n00b
Joined: 18 Aug 2016 Posts: 1
|
Posted: Thu Aug 18, 2016 8:27 am Post subject: Fatal error after change smarty.config.inc.php file |
|
|
Hi,
so I use prestashop and I changed 2 lines in '..\config\smarty.config.inc.php' file and now I get these errors.
(I didn't change anything else!)
The lines I changed:
(1)
original:
require_once(_PS_SMARTY_DIR_.'Smarty.class.php');
changed to:
require_once(_PS_SMARTY_DIR_.'SmartyBC.class.php');
(2)
from
$smarty = new SmartyCustom();
to:
$smarty = new SmartyBC();
I have Product Properties Extension module.
Errors:
[1]
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/var/www/vhosts/MYWEBSITE/themes/warehouse/modules/blockcart/blockcart.tpl" on line 70 "{assign var='icpClass' value=$product|icp:id_cart_product}" unknown modifier "icp" <-- thrown in /var/www/vhosts/MYWEBSITE/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 70
[2]
Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/var/www/vhosts/MYWEBSITE/modules/pproperties/views/templates/admin/_configure/pproperties/templates.tpl" on line 12 "{l s='Add new' mod='pproperties'}" unknown modifier "pp_safeoutput" <-- thrown in /var/www/vhosts/MYWEBSITE/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 12 [PrestaShop] Fatal error in module file :/var/www/vhosts/MYWEBSITE/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:
Uncaught --> Smarty Compiler: Syntax error in template "/var/www/vhosts/MYWEBSITE/modules/pproperties/views/templates/admin/_configure/pproperties/templates.tpl" on line 12 "{l s='Add new' mod='pproperties'}" unknown modifier "pp_safeoutput" <-- thrown
I replaced the modified file with a copy of the original, but it still shows these errors.
I delete the caches but the page still not displayed and the errors still there.
Anyone could help me? |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Aug 18, 2016 2:27 pm Post subject: |
|
|
Judging by the code you've replaced, they do not use Smarty directly, and you should edit the definition of their SmartyCustom class instead. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|