Page 1 of 1
SOLVED - dateformat error news
Posted: Fri Mar 06, 2009 10:27 am
by spike
Just done an install with the 1.5.3-full package and nothing else - am receiving following error on the front page news box
Warning: Parameter dateformat is not known by module News dropped in /home/httpd/docs/carsintl/lib/misc.functions.php on line 1359
can any shed some light on this - this was to be a major install - I don't want to go any further if there's something dodgy in there.
thanks in advance
gruss - spike
Re: dateformat error news
Posted: Fri Mar 06, 2009 11:20 am
by RonnyK
You probably upgraded, as in the 1.5.2 the dateformat parameter was dropped. Check your news templates, both summary and detail, and change all "formatpostdate" to "postdate".
For the specific error you have, remove the "dateformat" parameter that you use in the calling of news, {news..... dateformat=""}
Ronny
Re: dateformat error news
Posted: Fri Mar 06, 2009 11:29 am
by spike
Hello Ronny,
This is neither update nor upgrade - but a complete new install of " 1.5.3-full "
I just looked through all the default templates
they all read
{if $entry->postdate}
{$entry->postdate|cms_date_format}
{/if}
is this where I need to change?
spike
Re: dateformat error news
Posted: Fri Mar 06, 2009 11:33 am
by RonnyK
Nope.... that is right..
Where is the {news} being called... That is where the dateformat-parameter should be taken out.
Ronny
Solved - dateformat error news
Posted: Fri Mar 06, 2009 11:41 am
by spike
Got it - thanks Ronny - didn't think to look in there.
have a nice day - gruss - spike
Re: SOLVED - dateformat error news
Posted: Fri Apr 10, 2009 3:50 pm
by Rulle
Just about to update to the 1.5.4, in fact i have done it on one of my smaller sites. I have also made theese changes as you mention Ronny, but is the date all gone in the newsmodule now?
One of my other sites also uses the news module, and there is the date quite important, so don't want to update if the date isn't in the module there after.
Re: SOLVED - dateformat error news
Posted: Fri Apr 10, 2009 6:14 pm
by RonnyK
Nope.... the date is still there, only the "formatpostdate" is dropped, and replaced with "postdate"...
The parameter {news dateformat=....} isnt in anymore, but you can style the date-format, using the :
{$entry->postdate|cms_date_format}
in the summary/detailtemplate.
Ronny