SOLVED - dateformat error news

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
spike
Forum Members
Forum Members
Posts: 153
Joined: Thu Sep 25, 2008 5:02 pm

SOLVED - dateformat error news

Post 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
Last edited by spike on Fri Mar 06, 2009 11:42 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: dateformat error news

Post 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
spike
Forum Members
Forum Members
Posts: 153
Joined: Thu Sep 25, 2008 5:02 pm

Re: dateformat error news

Post 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
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: dateformat error news

Post by RonnyK »

Nope.... that is right..

Where is the {news} being called... That is where the dateformat-parameter should be taken out.

Ronny
spike
Forum Members
Forum Members
Posts: 153
Joined: Thu Sep 25, 2008 5:02 pm

Solved - dateformat error news

Post by spike »

Got it - thanks Ronny - didn't think to look in there.

have a nice day - gruss - spike
Rulle
Forum Members
Forum Members
Posts: 29
Joined: Wed Feb 28, 2007 12:33 pm

Re: SOLVED - dateformat error news

Post 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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: SOLVED - dateformat error news

Post 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
Locked

Return to “[locked] Installation, Setup and Upgrade”