Page 1 of 1

Bug fix required for News Module - urgent

Posted: Tue Dec 05, 2006 11:19 pm
by tonyg
Hi, I am posting this as a new request, as an older request posted some months ago by others with a similar problem seems to have been forgotten or otherwise not fixed.

CMSMS V0.13 News Module has a bug which causes an error string(43) "Smarty error: eval: missing 'var' parameter" to be displayed when a news item is viewed in the detail template. This seems to be pretty widespread and is currently affecting one of my client CMSMS websites. It affects even the standard (default) news templates.

You can see the problem in action at http://www.mraqld.org and click on any news item in the righthand feature panel.

I suspect it is a problem handling a specific character but I am not really sure what the 'var' parameter does, except that if I remove it, nothing is displayed at all.

My news detail template is as follows:

Code: Select all

<h3 id="NewsPostDetailTitle">{eval var=$entry->title}</h3>

<hr id="NewsPostDetailHorizRule">

{if $entry->formatpostdate}
	<p id="NewsPostDetailDate">
		{$entry->formatpostdate}
	</p>
{/if}

<p id="NewsPostDetailContent">
	{eval var=$entry->content}
</p>

<p id="NewsPostDetailPrintLink">
	{$entry->printlink}
{if $return_url != ""}
             | {$return_url}

{/if} 
 | {cms_selflink page='30' text='See more news'}
</p>


{cms_module module="comments" modulename="News"  pageid=$entry->id emailfield=1 websitefield=1 spamprotect=1 notify="president@mraqld.org"}
My news module placement code is:

Code: Select all

{cms_module module='news' number='3' moretext='Read article' dateformat='%d/%m/%Y' detailpage='latest_news'} 
The 'latest_news' page looks like:

Code: Select all

{cms_module module='news' dateformat='%d/%m/%Y' entry='content' detailpage='latest_news' returntext='Back to Latest News' moretext='Read article'}

Need help urgently!

TonyG
www.mraqld.org

Re: Bug fix required for News Module - urgent

Posted: Wed Dec 06, 2006 2:01 am
by Elijah Lofgren
Sorry to say this, but I tried using those above calls and the template and was unable to reproduce. (I'm running the SVN version CMS Made Simple version 1.0.3, but I don't see anything changed in News module since 1.0.2)

Maybe try on another install of CMSMS and see if you get the same problem.

Hope this helps,

Elijah

Re: Bug fix required for News Module - urgent

Posted: Sun Dec 10, 2006 4:45 pm
by Elijah Lofgren
Seems to be working now after the upgrade to CMSMS 1.0.2