Mister Denial Posted August 29, 2011 Share Posted August 29, 2011 Hello, I suddenly am getting this major error message whenever trying to add a second item to my basket: Warning: Function smartyTruncate() is deprecated in /tools/smarty/compile/45hkj5he4j324hr8u7324.file.product.tpl.php on line 1029 in shop/classes/Tools.php on line 1893 EDIT: these lines are: "><?php echo smartyTruncate(array('text'=>$_smarty_tpl->tpl_vars['product']->value['name'],'length'=>'10','encode'=>'true'),$_smarty_tpl);?> and trigger_error('Function <strong>'.$callee['function'].'()</strong> is deprecated in <strong>'.$callee['file'].'</strong> on line <strong>'.$callee['line'].'</strong><br />', E_USER_WARNING); Can someone please help me? What could this error be? I didn't have it before, so I am wondering if it is linked to the herfix patch? Any help would be very much appreciated! Best regards, Dan Link to comment Share on other sites More sharing options...
shokinro Posted August 29, 2011 Share Posted August 29, 2011 the Smarty method truncate is deprecated, it means it will not be used in the future. but it is still working at this moment. It is just warning, you can ignore it. If you don't want to see the warning, you need to change the 'display_errors' to 'off' in file /config/config.inc.php Link to comment Share on other sites More sharing options...
Mister Denial Posted August 29, 2011 Author Share Posted August 29, 2011 Hi shokinro, many many thanks for your help. That absolutely made my day! Just so I get it right, it basically means my template uses the "truncate" function, which will no longer be supported by Smarty at some point in the future, correct? So I won't have to worry about it until I update my PS shop to a version that really does no longer use "truncate", then my template will no longer work. Am I correct? Many thanks again for your help! Link to comment Share on other sites More sharing options...
shokinro Posted August 29, 2011 Share Posted August 29, 2011 I think you are correct. Link to comment Share on other sites More sharing options...
Mister Denial Posted August 29, 2011 Author Share Posted August 29, 2011 Ok, great, thanks for the info and your input, it helped me a lot! Have a great day and take care! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts