My friends, I have a problem with my template, because I’m giving this error:
Fatal error: Smarty error: [in frontend / pages / indexJournal.tpl line 39]: syntax error: unrecognized tag ‘break’ (Smarty_Compiler.class.php, line 590) in / var / www / html / ojsufrn / lib / pkp /lib/vendor/smarty/smarty/libs/Smarty.class.php on line 1094
I do not know how to solve it! Any idea what that might be?
What does line 39 of frontend/pages/indexJournal.tpl read as?
{* Announcements *}
{if $numAnnouncementsHomepage && $announcements|@count}
<div class="cmp_announcements highlight_first">
<h2>
{translate key="announcement.announcements"}
</h2>
{foreach name=announcements from=$announcements item=announcement}
{if $smarty.foreach.announcements.iteration > $numAnnouncementsHomepage}
-> 39 {break}
{/if}
{if $smarty.foreach.announcements.iteration == 1}
{include file="frontend/objects/announcement_summary.tpl" heading="h3"}
<div class="more">
{else}
<article class="obj_announcement_summary">
<h4>
<a href="{url router=$smarty.const.ROUTE_PAGE page="announcement" op="view" path=$announcement->getId()}">
{$announcement->getLocalizedTitle()|escape}
</a>
</h4>
<div class="date">
{$announcement->getDatePosted()}
</div>
</article>
{/if}
{/foreach}
</div><!-- .more -->
</div>
{/if}
This {break}
command is Smarty 3.x syntax, which is only available in OJS 3.1.2 or later. Are you currently using 3.1.2, or an earlier version?
I understand, the version that is giving this error is OJS 3.1.1.2! Thanks!