Warning [Xoops]: Smarty error: unable to read resource: "db:xxx.html" in file class/smarty/Smarty.class.php line 1084?

Requested and Answered by Hervet on 2005/3/2 9:59:29

Warning [Xoops]: Smarty error: unable to read resource: "db:xxx.html" in file class/smarty/Smarty.class.php line 1084?

As you may know, Xoops uses templates created with Smarty. Templates can call other templates. For example a template "A" can, inside its code, call the template named "B" (with the Smarty instruction <{include file="db:xxx.html"}>) Then in the file named xoops_version.php, if the template A is described (with the lines begining with $modversion['templates'][1]['file']...) BEFORE the template B, then you can see this warning message. The module's designer should review the order of templates declarations.

This Q&A was found on XOOPS Web Application System : https://xoops.org/modules/smartfaq/faq.php?faqid=426