Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Help:
PHP Error Log v.4.3.1 Cobalt3
ktb1025



Joined: 17 Nov 2004
Posts: 953
Location: Pembroke Pines, Fl.

Posted: 07/03/13 08:10 
I just upgraded to V.4.3.1 to try to eliminate some of the "deprecated" errors I was getting. While those seemed to have disappeared, I'm getting some new ones that look like the following.

Would anyone out there have any suggestions for a fix? Where to look? How to correct?

By the way, I'm in the NY Eastern Time Zone

Line 411 in the first error looks like

Code
$dat = strftime('%Y%m%d',convertTime(time(),$config['server_offset']));



Quote:
[02-Jul-2013 23:01:40 America/Chicago] PHP Warning: strftime() [<a href='function.strftime'>function.strftime</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/thetmcom/public_html/include/jamroom-advert.inc.php on line 411
[02-Jul-2013 23:01:40 America/Chicago] PHP Warning: strftime() [<a href='function.strftime'>function.strftime</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/thetmcom/public_html/include/jamroom-misc.inc.php on line 8359
[02-Jul-2013 23:01:40 America/Chicago] PHP Warning: strftime() [<a href='function.strftime'>function.strftime</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/thetmcom/public_html/include/jamroom-advert.inc.php on line 411



_________________
Kevin Burns
TheTalentFarm.com
LIVE WEBCAST VENUE
Home of TTF-TV!!!
Back to top
ktb1025



Joined: 17 Nov 2004
Posts: 953
Location: Pembroke Pines, Fl.

Posted: 07/11/13 12:47 
Bump?


Code
[11-Jul-2013 04:38:44 America/Chicago] PHP Warning: strftime() [<a href='function.strftime'>function.strftime</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /home/thetmcom/public_html/include/jamroom-misc.inc.php on line 8359



_________________
Kevin Burns
TheTalentFarm.com
LIVE WEBCAST VENUE
Home of TTF-TV!!!
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/11/13 18:17 
Looks like your timezone for your server is not set.
http://www.simfatic.com/forms/troubleshoot/date-timezone-setting.html

The solution they suggest is:

Quote:
One way to get this error corrected is to request your web server admin to fix the time zone settings.


And if that doesn’t work, it seams like you need to put

Code
ini_set('date.timezone','Europe/London');

with your timezone in it somewhere where the server can pick up on it.

Here is the list of valid timezones:
http://www.php.net/manual/en/timezones.php

But I suspect that the first option should get the servers timezone set.

See if that works.


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 07/12/13 18:06 
Server time is correct

Fri Jul 12 20:06:06 2013

"In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier."

I'd be interested in knowing what the time zone is set to in the admin panel.


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/12/13 18:15 
Thanks for checking DJ. Is it also set in php.ini? Because that _seams_ to be the lowest level for the warning:

http://stackoverflow.com/questions/8704522/stop-warning-date-function-date-from-localhost

There is an over-ride at code level on that thread. Would you mind checking if its in php.ini please.

If that fails, then Ill get that
Code
date_default_timezone_set('America/Los_Angeles');
added in somewhere.


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 07/12/13 19:10 
php.ini always has a default value set, I have a site on the same server of my own with no such error. All sites should show the same error if its a server level issue.

Also, I thought jamroom had the date set by default. Frankly, I've never seen the error out of a jamroom site that I recall which makes me think its either lost the setting somehow, or there is actually a date format in the drop down mis-spelled that has ironically been chosen.


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 07/12/13 19:34 
The dates for $config['server_offset'] are just numbers. -11 to 12.

Just did a search and cant locate any 'America/Chicago' type timezone settings anywhere in the code.

Ktb you haven't got a custom php.ini by any chance. (long reach, I know.)

Hopefully Brian has an idea. I'm not sure. Is it reproducible? do you know the steps Ktb?


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 07/12/13 19:37 
Apart from the form, zip stuff and js, "timezone" search on the beta9 code just returns this from jrCore/include.php:

Code

    // Set our timezone...
    date_default_timezone_set($_conf['jrCore_system_timezone']);

There might be other terms that I could search for, but I dont have a clue what they are.
*** edit
My bad, searched jr5.


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
ktb1025



Joined: 17 Nov 2004
Posts: 953
Location: Pembroke Pines, Fl.

Posted: 07/12/13 22:35 

Quote:
Ktb you haven't got a custom php.ini by any chance. (long reach, I know.)

I'm fairly certain I don't but I'll check tomorrow at work.


Quote:
Hopefully Brian has an idea. I'm not sure. Is it reproducible? do you know the steps Ktb?

I don't know the steps required to reproduce the error at this time, but I can clear the error logs and visit various pages to see when the error appears again.

I do know that I have a custom field in my events section called event_ticket_cutoff_time that I have to offset by -1 hour from my default EST timezone setting for it to cutoff ticket sales before an event. Coincidentally, Chicago is also -1 hour away from EST. So if I end ticket sales at noon, I set the field to 11:00.

Probably not even remotely connected, but I won't know until I check it.

Thanks guys, I'll be sure to follow up on this asap.


_________________
Kevin Burns
TheTalentFarm.com
LIVE WEBCAST VENUE
Home of TTF-TV!!!
Back to top
Brian
Jamroom Team


Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA

Posted: 07/13/13 07:25 
SteveX is on the right path - this is needed:

date_default_timezone_set("America/Los_Angeles");

if you need to change it in a script, although the same thing is handled in the php.ini by making sure the date.timezone option is set:


Code

date.timezone = "America/Los_Angeles"


DJ can you check that that is uncommented in the php.ini? If it is, we should not see this error.

A full list of timezone values is here: http://www.php.net/manual/en/timezones.php

Thanks!

- Brian


_________________
Make sure and check out:
* The Jamroom FAQ
* The Jamroom Documentation
Back to top
djmerlyn
Jamroom Ustad


Joined: 18 Dec 2003
Posts: 13497
Location: Behind You

Posted: 07/14/13 00:34 
Looks like the solution would come by deleting the php.ini file in his main directory then.


_________________
Pro JR Hosting, now 50% off!
-100% Guaranteed

"more server and network power than any host, dedicated to your jamroom site"
Back to top
ktb1025



Joined: 17 Nov 2004
Posts: 953
Location: Pembroke Pines, Fl.

Posted: 07/15/13 10:40 
I deleted my php.ini even though it didn't reference anything about custom time zones. I'll have to wait and see if this was the cure. Thanks fellas.


_________________
Kevin Burns
TheTalentFarm.com
LIVE WEBCAST VENUE
Home of TTF-TV!!!
Back to top
iLoveHouseMusic



Joined: 21 Apr 2009
Posts: 1482
Location: San Francisco CA

Posted: 07/22/13 09:43 
Keeping an eye on this thread... was this fixed?

Back to top
ktb1025



Joined: 17 Nov 2004
Posts: 953
Location: Pembroke Pines, Fl.

Posted: 07/22/13 12:29 
Yes it was as far as I could tell. I deleted my php.ini file as per DJ's recommendation although it didn't reference anything except file size max uploads.


_________________
Kevin Burns
TheTalentFarm.com
LIVE WEBCAST VENUE
Home of TTF-TV!!!
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Help

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.