"Smarty error: unable to read resource: "module_db_tpl:Cataloger;""

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
NRGy
Forum Members
Forum Members
Posts: 17
Joined: Tue Jun 23, 2009 10:30 am
Location: Tashkent

"Smarty error: unable to read resource: "module_db_tpl:Cataloger;""

Post by NRGy »

Hi,
When I call Cataloger module in another page's content area, it shows like that error "string(65) "Smarty error: unable to read resource: "module_db_tpl:Cataloger;""".
I don't know what to do?
Thanx for answers.
NaN

Re: "Smarty error: unable to read resource: "module_db_tpl:Cataloger;""

Post by NaN »

How did you call the module?
There is a template missed in the database.
User avatar
NRGy
Forum Members
Forum Members
Posts: 17
Joined: Tue Jun 23, 2009 10:30 am
Location: Tashkent

Re: "Smarty error: unable to read resource: "module_db_tpl:Cataloger;""

Post by NRGy »

Module's name Cataloger.
I used help's instructions. There're written
The syntax for a "most recently added" list is like:

{cms_module module='Cataloger' action='recent' sub_template='my_sub_template'}, where sub_template is the template to use to render the list. There are two optional parameters, count='3' alias='page_alias', where count is the number of items to include, and page_alias indicates the top of the tree (e.g., a place in your menu hierarchy, typically a category page) in which to look for new items. A special value for "page_alias" is "/", which means to use all pages in the site.

and when I added this code "{cms_module module='Cataloger' action='recent'}", it showed me
that error in below.
Am I should use template. I don't know what to do ???
Thanx for your help NaN :) 
NaN

Re: "Smarty error: unable to read resource: "module_db_tpl:Cataloger;""

Post by NaN »

I haven't used Cataloger yet.
It seems that if no template is specified a default template is used that doesn't exist.
???
So did you try to specify a template when calling the module?
User avatar
NRGy
Forum Members
Forum Members
Posts: 17
Joined: Tue Jun 23, 2009 10:30 am
Location: Tashkent

Re: "Smarty error: unable to read resource: "module_db_tpl:Cataloger;""

Post by NRGy »

When I looked inside db, there're 3 or 4 templates.
And I tried to call one of them. But there is no result ???.
Coldman
Power Poster
Power Poster
Posts: 318
Joined: Sun Jun 22, 2008 5:33 am

Re: "Smarty error: unable to read resource: "module_db_tpl:Cataloger;""

Post by Coldman »

NRGy you need to specify your sub_template

Code: Select all

{cms_module module='Cataloger' action='recent' sub_template='YOUR TEMPLATE' count='3' alias='/'}
Important Code of Conduct
Why don't use CMSMS Docs or search?
Do you read Help?
Admin for Swedish Translations Team
Moderator Swedish Forum
After your problem is solved, push the green button
User avatar
NRGy
Forum Members
Forum Members
Posts: 17
Joined: Tue Jun 23, 2009 10:30 am
Location: Tashkent

Re: "Smarty error: unable to read resource: "module_db_tpl:Cataloger;""

Post by NRGy »

Hi Coldman,
I used this code

Code: Select all

{cms_module module='Cataloger' action='random' sub_template='Category-Table-based' count='4'}
and also

Code: Select all

{cms_module module='Cataloger' action='recent' sub_template='Category-Table-based' count='4'}
but, there're no result. No error, no result. I don't know what to do ???
Coldman
Power Poster
Power Poster
Posts: 318
Joined: Sun Jun 22, 2008 5:33 am

Re: "Smarty error: unable to read resource: "module_db_tpl:Cataloger;""

Post by Coldman »

You need alias='/' or alias='YOUR CATEGORY"
Coldman wrote: NRGy you need to specify your sub_template

Code: Select all

{cms_module module='Cataloger' action='recent' sub_template='YOUR TEMPLATE' count='3' alias='/'}
Last edited by Coldman on Sun Aug 16, 2009 11:10 am, edited 1 time in total.
Important Code of Conduct
Why don't use CMSMS Docs or search?
Do you read Help?
Admin for Swedish Translations Team
Moderator Swedish Forum
After your problem is solved, push the green button
Post Reply

Return to “Developers Discussion”