Page 1 of 1
Unable to load template module_db_tpl 'News;summary'
Posted: Thu Jun 26, 2014 8:34 am
by giapippo
hello to all
when the load on a news site should be in the database error and the site crashes
with this error:

?
CMS Made Simple
Oops!
Sorry, it looks like something went wrong and an error has occurred.
Don’t worry, it can happen to any of us.
ERROR: at line 127 in file /mounted-storage/home130/sub003/sc86204-UJOC/maxoro.it/lib/smarty/sysplugins/smarty_internal_templatebase.php:
Message:
Unable to load template module_db_tpl 'News;summary'
View Full Trace ↓
Re: Unable to load template module_db_tpl 'News;summary'
Posted: Thu Jun 26, 2014 8:57 am
by giapippo
this is the summary news template
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
{if $entry->postdate}{/if}
<div class="col-sm-4 col-xs-6 item">
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">
<img src="{$entry->file_location}/{$entry->fieldsbyname.immagine->value}" alt=""/ width="100%">
<div class="item-desc">
<h4>{$entry->title|cms_escape}</h4>
</div></a>
</div>
{/foreach}
<!-- End News Display Template -->
Re: Unable to load template module_db_tpl 'News;summary'
Posted: Thu Jun 26, 2014 9:03 am
by Jo Morg
There is an {if ...} missing at the very beginning...

Re: Unable to load template module_db_tpl 'News;summary'
Posted: Thu Jun 26, 2014 9:12 am
by giapippo
sorry wrong copy and paste:
{if $pagecount > 10000}
<p>
{if $pagenumber > 1}
{$firstpage} {$prevpage}
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
{$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
{if $entry->postdate}{/if}
<div class="col-sm-4 col-xs-6 item">
<a href="{$entry->moreurl}" title="{$entry->title|cms_escape:htmlall}">
<img src="{$entry->file_location}/{$entry->fieldsbyname.immagine->value}" alt=""/ width="100%">
<div class="item-desc">
<h4>{$entry->title|cms_escape}</h4>
</div></a>
</div>
{/foreach}
<!-- End News Display Template -->
Re: Unable to load template module_db_tpl 'News;summary'
Posted: Thu Jun 26, 2014 9:17 am
by Jo Morg
giapippo wrote: ...wrong copy and paste...
I though as much

.
giapippo wrote:Unable to load template module_db_tpl 'News;summary'
Are you sure that you are calling the template by the correct name? It seems like the template has been renamed, or that you may have a typo on the template name...
Re: Unable to load template module_db_tpl 'News;summary'
Posted: Thu Jun 26, 2014 9:25 am
by giapippo
hello, I wrote to the provider, and now it works
the template has changed its name but it 'as the default
the site works
www.maxoro.it but occasionally slows and crashes