Jump to content

Localhost Fatal error: Uncaught --> Smarty: Unable to load template file


mechcalvin

Recommended Posts

I try to move my shop to local host, after apply a new theme, the following errors occur when i entered product page

Fatal error: Uncaught --> Smarty: Unable to load template file './product_pages/.tpl' in 'C:\EasyPHP-Devserver-17\eds-www\Homeplus/themes/theme1404/product.tpl' <-- thrown in C:\EasyPHP-Devserver-17\eds-www\Homeplus\tools\smarty\sysplugins\smarty_internal_templatebase.php on line 129

 

it is used full path result in "/" and "\" in the same sentence, anyone can help me to fix this?

Link to comment
Share on other sites

Thanks for your feedback, however when i open the product.tpl file, it only contains few lines

 

{include file="$tpl_dir./errors.tpl"}
{if $errors|@count == 0}
  {if $content_only}
    {include file='./quick-view.tpl'}
  {elseif isset($megalayoutProductInfoPage) && $megalayoutProductInfoPage}
    {assign var='path' value="./product_pages/`$megalayoutProductInfoPage`"}
    {include file=$path}
  {else}
    {include file='./product_pages/default.tpl'}
  {/if}
{/if}
Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...

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