Jump to content

Fatal Error Smarty - Blank page after new theme installation


Recommended Posts

Hi, 

 

I installed a themes magari but when I check the front page , I have a blank page . 

 

I activate debug and I got 

 

Fatal error: Smarty error: [in /home/sabaartp/public_html/themes/magari/modules/blockcart/blockcart.tpl line 92]: syntax error: unrecognized tag: $link->getPageLink('cart', true, NULL, "delete&id_product={$product.id_product (Smarty_Compiler.class.php, line 446) in /home/sabaartp/public_html/tools/smarty_v2/Smarty.class.php on line 1095

 

I desactive some module prestalove for menu and O got 

Fatal error: Call to a member function addCSS() on a non-object in /home/sabaartp/public_html/modules/blockcart/blockcart.php on line 208

 

All file are very CMODH 7.7.7

 

Please someone can help ? 

 

website is sabaartplay.com

 

Thanks you . 

Edited by olivierColas (see edit history)
Link to comment
Share on other sites

hello

 

in blockcart.tpl instead of code that you've got in line 92 try to use this:

<a href="{$link->getProductLink($product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'html'}" title="{l s='Product detail' mod='blockcart'}">{$product.attributes_small}</a>

can you show please what you've got in line: 208 in file: in /home/sabaartp/public_html/modules/blockcart/blockcart.php

Link to comment
Share on other sites

 

Thank Vekia for your answer

 

I replace the Line 92 with this code that you gave me on my tpl file.

 

In file php

 

in line 208 , I have this 

 

$this->context->controller->addCSS(($this->_path).'blockcart.css', 'all');

 

 

hello

 

first error disappeared?

im asking because code;

$this->context->controller->addCSS(($this->_path).'blockcart.css', 'all');

looks well

Link to comment
Share on other sites

×
×
  • Create New...