Re: Need to fix Warning: DateTime::setTimezone() expects parameter in joomla 3

567 views
Skip to first unread message

Lemings

unread,
Dec 27, 2012, 3:36:37 PM12/27/12
to joomla-de...@googlegroups.com
It would be better to post this in joomlacode.org issue tracker. With details, how to recieve such error and possible fix.


ceturtdiena, 2012. gada 27. decembris 21:16:46 UTC+2, Niamul Hasan rakstīja:
Is there  no person to reply in this group?

On Monday, December 24, 2012 8:10:57 PM UTC+6, Niamul Hasan wrote:
Hi,
I had upgraded my joomla 2.5 template to joomla 3.0  and I am finding an warning in comment module in blog page. Anyone can help me to solve the problem?  
Warning: DateTime::setTimezone() expects parameter 1 to be DateTimeZone, string given inD:\xampp\htdocs\themerox\joomla\sporty\libraries\joomla\date\date.phpon line 396

Bakual

unread,
Dec 27, 2012, 3:41:13 PM12/27/12
to joomla-de...@googlegroups.com
To my knowledge, there is no comment module in the Joomla core. So you better ask the developer of your comments extension for support.
 
Also make sure you have set the timezone in the Joomla server settings. And you can disable the warning messages with the error log parameter if you don't need to see them.

fornandakishore

unread,
Dec 28, 2012, 3:57:35 AM12/28/12
to joomla-de...@googlegroups.com
Hi,

I am also facing the same issue, while converting the component from 2.5 to 3.0. What would be the solution for this issue ?

 
Thanks & Regards

Nanda Kishore. M

Senior PHP Developer

http://php-desk.blogspot.com

Mobile: + 91 98499 71144 



--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/peW8sJ0mTlwJ.

To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.

elin

unread,
Dec 28, 2012, 10:42:44 AM12/28/12
to joomla-de...@googlegroups.com
Since it is an extension I would go ahead and report it to the extension developer and personally I have no problem with fixing their code prior to an extension developer releasing updates assuming it i simple things such as this.  So find the place in the module that is using  DateTime::setTimezone()  and fix it so that it has the correct argument.
Without looking at the code it's impossible to know if you will need to create an instance of DateTimeZone or if it already exists.  

Elin
To unsubscribe from this group, send email to joomla-dev-general+unsub...@googlegroups.com.

Marco Dings

unread,
Dec 28, 2012, 6:15:10 PM12/28/12
to joomla-de...@googlegroups.com
longshot..

could it be due to date.timezone not set in  php.ini so maybe there is no default..

; http://php.net/date.timezone
date.timezone = America/Los_Angeles

Reply all
Reply to author
Forward
0 new messages