Jump to content

unusual Smarty Error: Unable to load template after module update


Remitur

Recommended Posts

Just after a commercial module update, it happens an unusual Smarty error in logs:

Smarty Error: Unable to load template 'file:templates/orderforms/modern/category-chooser.tpl' in '/var/www/example.com/public_html/templates/orderforms/modern/products.tpl'

Very strange, because:

  • AFAIK, no modification to any .tpl file occurred
  • just copying the content of category-chooser.tpl and pasting it inside products.tpl has been sufficient to fix the issue

Being the commercial module encrypted, I can't go deeper in investigating, so I can just guess:

Is it possible that some kind of hook in the commercial module "moves" the current directory from  /var/www/example.com/public_html/ to something like (i.e.)  /var/www/example.com/public_html/modules/addons/mymodule/ , and so the relative path  file:templates/orderforms/modern/category-chooser.tpl is no valid anymore?

Any experience about this kind of issues?

 

 

Link to comment
Share on other sites

If that commercial module is mine, that's my fault. I used a chdir() in the wrong place so Smarty thinks that the root is /lang instead of /. Re-download and replace all files. This should fix the problem. Sorry.

Edited by Kian
Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated