Bug fix required for News Module - urgent

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
tonyg

Bug fix required for News Module - urgent

Post 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
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Bug fix required for News Module - urgent

Post 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
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Bug fix required for News Module - urgent

Post by Elijah Lofgren »

Seems to be working now after the upgrade to CMSMS 1.0.2
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Locked

Return to “CMSMS Core”