Jump to content

Blank Product Pages After Upgrade To 1.5.3 From 1.3.6


Recommended Posts

I am trying this on my local Mac

 

I have used 1click auto upgrade to upgrade from 1.3.6 to 1.5.3 ( expert option). Everything is fine at the backend and the home page front end. But when I go to any product page or any category I get a blank page. I have tried the following already

  • Deleting the smarty cache
  • Changed folder permissions to 755
  • Disabled Friendly URL and disabled cache

When I enabled logging define('_PS_MODE_DEV_', true); I get the following error on the browser

 

Fatal error

: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/Users/abcd/Sites/

abcd

/themes/prestashop/category.tpl" on line 1 "{include file=$tpl_dir./breadcrumb.tpl}" - Unexpected "/", expected one of: "{" , "$" , "identifier" , INTEGER' in /Users/abcd/Sites/abcd/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:627 Stack trace: #0 /Users/abcd/Sites/

abcd

/tools/smarty/sysplugins/smarty_internal_templateparser.php(3154): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /Users/

abcd

/Sites/

abcd

/tools/smarty/sysplugins/smarty_internal_templateparser.php(3219): Smarty_Internal_Templateparser->yy_syntax_error(39, '/') #2 /Users/

abcd

/Sites/

abcd

/tools/smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(39, '/') #3 /Users/

abcd

/Sites/

abcd

/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php(171): Smarty in

/Users/abcd/Sites/abcd/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php

on line

627

 

This is how my manufacturer.tpl looks like. This must be generated by autoupgrade because when I compare this to the default 1.5.3 tpl it is very different

 

[/b]
[b]{include file=$tpl_dir./breadcrumb.tpl}[/b]
[b]<h2>{l s='List of products by manufactures:'} {$manufacturer->name|escape:'htmlall':'UTF-8'}</h2>[/b]
[b]{include file=$tpl_dir./errors.tpl}[/b]
[b]{if $products}
{include file=$tpl_dir./product-sort.tpl}
{include file=$tpl_dir./product-list.tpl products=$products}
{include file=$tpl_dir./pagination.tpl}
{else}
<p class="warning">{l s='No products for this manufacturer.'}</p>
{/if}[/b]
[b]
Edited by petethecat (see edit history)
Link to comment
Share on other sites

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...