jrgrafisk Posted July 23, 2019 Share Posted July 23, 2019 Hi This morning i decided to update www.nettotruck.dk from 1.6.x to 1.7.6.0. I initially had some problems getting the 1-click upgrade to fire, but eventually, after extracting the files directly to my FTP it worked. However, it seems that it did not upgrade the database, which by now has given me a headache. I get a lot of "smarty errors" (see below). Disabling the modules did not do the trick, neither did a deletion of smarty cache files. Other forum posts didn't help me, so now I'm stuck... Do you have any solutions? (1/1) SmartyCompilerException Syntax error in template "file:/customers/0/8/2/nettotruck.dk/httpd.www/modules/blockuserinfo/blockuserinfo.tpl" on line 39 "{convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)}" unknown tag 'convertPrice' in smarty_internal_templatecompilerbase.php line 39 at Smarty_Internal_TemplateCompilerBase->trigger_template_error('unknown tag \'convertPrice\'', 39, true)in smarty_internal_templatecompilerbase.php line 1753 at Smarty_Internal_TemplateCompilerBase->compileTag2('convertPrice', array(array('price' => '$_smarty_tpl->tpl_vars[\'cart\']->value->getOrderTotal(false,$_smarty_tpl->tpl_vars[\'blockuser_cart_flag\']->value)')), array())in smarty_internal_templatecompilerbase.php line 565 at Smarty_Internal_TemplateCompilerBase->compileTag('convertPrice', array(array('price' => '$_smarty_tpl->tpl_vars[\'cart\']->value->getOrderTotal(false,$_smarty_tpl->tpl_vars[\'blockuser_cart_flag\']->value)')))in smarty_internal_templateparser.php line 2270 at Smarty_Internal_Templateparser->yy_r25()in smarty_internal_templateparser.php line 3383 at Smarty_Internal_Templateparser->yy_reduce(25)in smarty_internal_templateparser.php line 3479 at Smarty_Internal_Templateparser->doParse(15, '}')in smarty_internal_smartytemplatecompiler.php line 128 at Smarty_Internal_SmartyTemplateCompiler->doCompile('{** 2007-2016 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to [email protected] so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <[email protected]>* @copyright 2007-2016 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*}<!-- Block user information module HEADER --><div id="header_user" {if $PS_CATALOG_MODE}class="header_user_catalog"{/if}> <ul id="header_nav"> {if !$PS_CATALOG_MODE} <li id="shopping_cart"> <a href="{$link->getPageLink($order_process, true)|escape:\'html\'}" title="{l s=\'View my shopping cart\' mod=\'blockuserinfo\'}" rel="nofollow">{l s=\'Cart\' mod=\'blockuserinfo\'} <span class="ajax_cart_quantity{if $cart_qties == 0} hidden{/if}">{$cart_qties}</span> <span class="ajax_cart_product_txt{if $cart_qties != 1} hidden{/if}">{l s=\'Product\' mod=\'blockuserinfo\'}</span> <span class="ajax_cart_product_txt_s{if $cart_qties < 2} hidden{/if}">{l s=\'Products\' mod=\'blockuserinfo\'}</span> <span class="ajax_cart_total{if $cart_qties == 0} hidden{/if}"> {if $cart_qties > 0} {if $priceDisplay == 1} {assign var=\'blockuser_cart_flag\' value=\'Cart::BOTH_WITHOUT_SHIPPING\'|constant} {convertPrice price=$cart->getOrderTotal(false, $blockuser_cart_flag)} {else} {assign var=\'blockuser_cart_flag\' value=\'Cart::BOTH_WITHOUT_SHIPPING\'|constant} {convertPrice price=$cart->getOrderTotal(true, $blockuser_cart_flag)} {/if} {/if} </span> <span class="ajax_cart_no_product{if $cart_qties > 0} hidden{/if}">{l s=\'(empty)\' mod=\'blockuserinfo\'}</span> </a> </li> {/if} <li id="your_account"><a href="{$link->getPageLink(\'my-account\', true)|escape:\'html\'}" title="{l s=\'View my customer account\' mod=\'blockuserinfo\'}" rel="nofollow">{l s=\'Your Account\' mod=\'blockuserinfo\'}</a></li> </ul> <p id="header_user_info"> {l s=\'Welcome\' mod=\'blockuserinfo\'} {if $logged} <a href="{$link->getPageLink(\'my-account\', true)|escape:\'html\'}" title="{l s=\'View my customer account\' mod=\'blockuserinfo\'}" class="account" rel="nofollow"><span>{$cookie->customer_firstname} {$cookie->customer_lastname}</span></a> <a href="{$link->getPageLink(\'index\', true, NULL, "mylogout")|escape:\'html\'}" title="{l s=\'Log me out\' mod=\'blockuserinfo\'}" class="logout" rel="nofollow">{l s=\'Sign out\' mod=\'blockuserinfo\'}</a> {else} <a href="{$link->getPageLink(\'my-account\', true)|escape:\'html\'}" title="{l s=\'Log in to your customer account\' mod=\'blockuserinfo\'}" class="login" rel="nofollow">{l s=\'Sign in\' mod=\'blockuserinfo\'}</a> {/if} </p></div><!-- /Block user information module HEADER -->', true)in smarty_internal_templatecompilerbase.php line 481 at Smarty_Internal_TemplateCompilerBase->compileTemplateSource(object(SmartyDevTemplate), false, null)in smarty_internal_templatecompilerbase.php line 404 at Smarty_Internal_TemplateCompilerBase->compileTemplate(object(SmartyDevTemplate))in smarty_template_compiled.php line 184 at Smarty_Template_Compiled->compileTemplateSource(object(SmartyDevTemplate))in smarty_template_compiled.php line 141 at Smarty_Template_Compiled->process(object(SmartyDevTemplate))in smarty_template_compiled.php line 105 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, null, null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch(null, null, null, null, false, true, false)in SmartyDevTemplate.php line 40 at SmartyDevTemplateCore->fetch()in Module.php line 2409 at ModuleCore->display('/customers/0/8/2/nettotruck.dk/httpd.www/modules/blockuserinfo/blockuserinfo.php', 'blockuserinfo.tpl')in blockuserinfo.php line 72 at BlockUserInfo->hookDisplayTop(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 970 at HookCore::coreCallHook(object(BlockUserInfo), 'hookdisplayTop', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' =>object(Cart), 'altern' => 1))in Hook.php line 355 at HookCore::callHookOn(object(BlockUserInfo), 'displayTop', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 907 at HookCore::exec('displayTop', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null)in smarty.config.inc.php line 167 at smartyHook(array('h' => 'displayTop'), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83 at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayTop'), object(SmartyDevTemplate)))in 185a9cb72fbc5c49034d55d5c53c1af324264cff_2.file.header.tpl.php line 136 at Block_19411161485d3700a4ef3821_14908552->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_19411161485d3700a4ef3821_14908552), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_19411161485d3700a4ef3821_14908552))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_19411161485d3700a4ef3821_14908552', 'header_top')in 185a9cb72fbc5c49034d55d5c53c1af324264cff_2.file.header.tpl.php line 36 at content_5d3700a4efd946_58690627(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('file:_partials/header.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 0, false)in 4de9f58c1e1b2760ed9b9d7fdf2bf560e61ed885_2.file.layout-both-columns.tpl.php line 188 at Block_2797811625d3700a4e0c7f6_01276016->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248 at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_2797811625d3700a4e0c7f6_01276016), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184 at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_2797811625d3700a4e0c7f6_01276016))in smarty_internal_runtime_inheritance.php line 156 at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_2797811625d3700a4e0c7f6_01276016', 'header')in 4de9f58c1e1b2760ed9b9d7fdf2bf560e61ed885_2.file.layout-both-columns.tpl.php line 62 at content_5d3700a4e30bf7_53072383(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 2b5c9f58b9d444ff055e2722c168d3052ce78fb5_2.file.layout-full-width.tpl.php line 42 at content_5d3700a4ddc8a7_08218068(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in d226b9e22ddcfe8f8ead612a0ea3fd4b7de579f6_2.file.page.tpl.php line 33 at content_5d3700a4da5be6_67221693(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render()in smarty_internal_template.php line 385 at Smarty_Internal_Template->_subTemplateRender('page.tpl', null, 'layouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125 at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'page.tpl')in 7e5add65cba2b770a2dbc76b217e63e8077b36aa_2.file.index.tpl.php line 33 at content_5d3700a4d6e529_18358317(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123 at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114 at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216 at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232 at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'layouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116 at Smarty_Internal_TemplateBase->fetch('index.tpl', null, 'layouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40 at SmartyDev->fetch('index.tpl', null, 'layouts/layout-full-width.tpl')in FrontController.php line 683 at FrontControllerCore->smartyOutputContent('index.tpl')in FrontController.php line 667 at FrontControllerCore->display()in Controller.php line 311 at ControllerCore->run()in Dispatcher.php line 515 at DispatcherCore->dispatch()in index.php line 28 Link to comment Share on other sites More sharing options...
jrgrafisk Posted July 30, 2019 Author Share Posted July 30, 2019 I rebuild my shop from scratch. Link to comment Share on other sites More sharing options...
JBW Posted August 8, 2019 Share Posted August 8, 2019 You had still old 1.6. modules active, 1.7. requires new modules and tempates Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now