Zen Cart Logo
Forums / Installing on a Linux/Unix Server / ERROR: date.timezone not set in php.ini

ERROR: date.timezone not set in php.ini

Views: 16,223

Results 1 to 15 of 15
28 Nov 2010, 3:43 PM
#1
shilo avatar

shilo

New Zenner

Join Date:
Jul 2010
Posts:
1
Plugin Contributions:
0

ERROR: date.timezone not set in php.ini

Hi, I am trying to install zen-cart-v1.3.9h-full-fileset-10262010.
Once uploaded to my server I attempt to install but get stuck with the following message.
ERROR: date.timezone not set in php.ini. Please contact your hosting company to set the timezone in the server PHP configuration before continuing.
I have altered the php.ini to show my time zone and restarted apache2. that did nothing.
I then uncommented the
; date.timezone = Europe/London
I then tried moving the line to the top of the Date config section.
All whilst restarting apache afterwards.
But guess what
It just wont work.
I run a ubuntu server 10.10 with apache2 and php5.
and now I think It's time to give up.
I checked the apache site and the php site for fixes, but nothing worked. Has anyone come across this problem before.?
Thanks, any help would be great:censored:

28 Nov 2010, 4:34 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: ERROR: date.timezone not set in php.ini

If you search the forums for date.timezone not set you'll find several threads describing the same problem. One might contain a solution.

29 Aug 2012, 11:29 AM
#3
robert2721996 avatar

robert2721996

New Zenner

Join Date:
Aug 2012
Posts:
4
Plugin Contributions:
0

Re: ERROR: date.timezone not set in php.ini

You might have a good find here

Also try to raise awereness I spent 2 hours on this before comming up with a solution... Others have spent more... :/

robert

19 Sep 2012, 3:33 PM
#4
samanthahq avatar

samanthahq

New Zenner

Join Date:
Aug 2012
Location:
Los Angeles
Posts:
1
Plugin Contributions:
0

Re: ERROR: date.timezone not set in php.ini

Hi, I am having just the same issue but just don´t seem to get the right solution.

@stevesh would it be too much asking a more concrete thread when you mention search for "date.timezone"

Thanks all very much.

I am spanish life coaching passionate women exploring life. I love nature and Zen and the author of tratamiento para la ansiedad

19 Sep 2012, 5:32 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,843
Plugin Contributions:
17

Re: ERROR: date.timezone not set in php.ini

Someone hijacked a two-year old thread. Scroll down the page to similar threads. Those may help. It may also be a language file problem if it works in English and not Spanish.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

19 Sep 2012, 6:34 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: ERROR: date.timezone not set in php.ini

@samanthahq, have you talked to your hosting company? It's the webserver's PHP configuration that's incomplete, and the hosting company is in charge of the PHP configuration, so they're best equipped to address the problem. (that's largely why the same is mentioned in the error message text)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Feb 2013, 12:11 AM
#7
candlelady avatar

candlelady

New Zenner

Join Date:
Feb 2004
Posts:
17
Plugin Contributions:
0

Re: ERROR: date.timezone not set in php.ini

I am trying to install v 1.5.1 and got this error today....it looks as if there was never a definitive answer, is there? I know some of you may understand, but sitting here looking for the answer to ONE question for hours on end is such a problem. I am tired, my eyes hurt, and all I see is complaint, after complaint, but no answers. I really want to use this product, but....if I can't get it installed, where do I go from here? I asked my host for assistance, and their response was I had to do it myself.

their response:
Vinod B: Steps to set the time zone for php application in php.ini
Vinod B: 1. create file timezone.php
Vinod B: <? Vinod B: date_default_timezone_set ( "Asia/Manila" ) Vinod B: ?>
Vinod B: 2. Then in php.ini
Vinod B: auto_prepend_file
Vinod B: /home/xxxx/timezone.php
Vinod B: Example:
Vinod B: auto_prepend_file = /home/users/web/b2689/moo.indy2k11/timezone.php

My response what??????
I wish the person who mentioned they spent 2 hours on this before coming up with a solution would share that very same solution. I just want to move on with this already...please HELP REALLY HELP REAL HELP IS NEEDED HERE HELP I am begging!

27 Feb 2013, 1:44 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: ERROR: date.timezone not set in php.ini

Did you ask your host (assuming that's who "Vinod B" is) where your php.ini is supposed to go on your server? Only your hosting company can tell you where that file ought to be placed.

After you have that piece of information, then you can work on putting the correct contents into it. They showed you one option, but there is probably another easier one. But without you first knowing from them what folder your php.ini file MUST be placed in, there's no point in us offering further info, since it's your host's server configuration that's at fault. (ie: your host's server doesn't have a timezone set into PHP !!!!!!! )

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Feb 2013, 2:32 AM
#9
candlelady avatar

candlelady

New Zenner

Join Date:
Feb 2004
Posts:
17
Plugin Contributions:
0

Re: ERROR: date.timezone not set in php.ini

DrByte:

Did you ask your host (assuming that's who "Vinod B" is) where your php.ini is supposed to go on your server? Only your hosting company can tell you where that file ought to be placed.

After you have that piece of information, then you can work on putting the correct contents into it. They showed you one option, but there is probably another easier one. But without you first knowing from them what folder your php.ini file MUST be placed in, there's no point in us offering further info, since it's your host's server configuration that's at fault. (ie: your host's server doesn't have a timezone set into PHP !!!!!!! )

yes I know where the php.ini file is located...I just don't know what in there I am supposed to change etc.

27 Feb 2013, 3:17 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: ERROR: date.timezone not set in php.ini

If it's a complete file, there will already be a line saying:```
date.timezone=America/New_York

But, since yours is apparently missing it (else the error message wouldn't appear), that line must be missing or has a comment symbol before it to disable it.

So ... add that line to yours. Set to your correct timezone.

More information at <http://www.php.net/manual/en/timezones.php>

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Feb 2013, 4:00 AM
#11
candlelady avatar

candlelady

New Zenner

Join Date:
Feb 2004
Posts:
17
Plugin Contributions:
0

Re: ERROR: date.timezone not set in php.ini

DrByte:

If it's a complete file, there will already be a line saying:```
date.timezone=America/New_York

> But, since yours is apparently missing it (else the error message wouldn't appear), that line must be missing or has a comment symbol before it to disable it.
> 
> So ... add that line to yours. Set to your correct timezone.
> 
> More information at <http://www.php.net/manual/en/timezones.php>

Thank you so much for your help....nothing is working....I finally got the host to go in a fix it, she set it to EST which of course does not work.  so I give up, at least for tonight.  I hate to lose, but I think I just lost....I give
27 Feb 2013, 4:06 AM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: ERROR: date.timezone not set in php.ini

I suppose the first question I'd be asking the host is ... why doesn't the server's master php.ini file have the date.timezone already set in it?

Really, the only time you should have to even think about it is if you are actually in a different timezone and wanted it to reflect that. But at least that would be an optional thing you could do later.

The whole reason for the warning being present at install time is this very issue: there's no point trying to run it on a server that's ill-equipped to do so. Best to find a server that's properly configured.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Feb 2013, 4:18 AM
#13
candlelady avatar

candlelady

New Zenner

Join Date:
Feb 2004
Posts:
17
Plugin Contributions:
0

Re: ERROR: date.timezone not set in php.ini

DrByte:

I suppose the first question I'd be asking the host is ... why doesn't the server's master php.ini file have the date.timezone already set in it?

Really, the only time you should have to even think about it is if you are actually in a different timezone and wanted it to reflect that. But at least that would be an optional thing you could do later.

The whole reason for the warning being present at install time is this very issue: there's no point trying to run it on a server that's ill-equipped to do so. Best to find a server that's properly configured.

Yes i was looking at bluehost, but they said I would have to configure this as well.....I have never had this problem with zencart before. I used it in the past on several different accounts...I am so upset right now. If I had known things would get this difficult I would have not taken this on at all. None of it is making sense to me, I have changed that at least 15 times with the same error a constant. I have dumped my cache I have shut down my computer, I have done everything I can think to do......Powweb is no help so I have to shut down that account and find a better host.....{SHRUGS}

27 Feb 2013, 5:21 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: ERROR: date.timezone not set in php.ini

I would imagine it would be quite simple with Bluehost.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

22 Mar 2013, 9:26 PM
#15
marcomarco avatar

marcomarco

New Zenner

Join Date:
Mar 2013
Location:
Venezuela
Posts:
1
Plugin Contributions:
0

Re: ERROR: date.timezone not set in php.ini

DrByte:

If it's a complete file, there will already be a line saying:```
date.timezone=America/New_York


It really works!!!