Join The Support Forums & Community! Log In
Reply To This Topic     Add New Topic
Improved search functionality. Give it a try.
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 10:04 PM
I'm hoping someone can help me! When I log into the admin panel, I get this error message all over the place (the message is the same all over except the line number at the end changes depending on where I am) :

t 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/jennifer/public_html/proofing/admin/galleries/galleries.home.php on line 43

I had a friend log in to view a gallery and she is seeing the same message.

Not sure what I should do!

Thank you for ANY help you can give!

Jenn.
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 10:14 PM
Try adding the following line in setup.php:

ini_set("date.timezone", "America/Vancouver");

which should set the default timezone to be Vancouver, British Columbia, Canada (which is where I assume you are near). If that is the wrong timezone, you can choose from the values at:

http://www.php.net/manual/en/timezones.america.php
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 10:21 PM
Thank you SO much!

I am really new to all this code stuff...where would I find the setup.php?

I'm in Ottawa, ON...so thank you for that link so I know what to put in!!

Jenn.
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 10:24 PM
Actually, you should really use the timezone value which indicates where your server is located. For example, if you hosting provider is in Texas, USA then you would want to use a timezone in Central Time (like "America/Chicago").
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 10:25 PM
The setup.php file in is your photocart folder. You can download that file to your local computer, edit it then upload the changed file to replace the one on the server. It's a very good idea to keep a backup of the original file just in case you make a mistake and break something. Once you get more confident with stuff then such a backup is less necessary.
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 10:26 PM
This whole thing has me feeling really dumb...thank you for your help!! I'll go figure out where my server is.

Where do I find the setup file?

Thanks again!

Jenn.
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 10:33 PM
setup.php is one of the file that comes with Photo Cart so it will be in the "photocart" folder (or whatever you called it if you chose a different name). It's the same file where you set the name, userid and password of your MySQL database which Photo Cart is to use.
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 10:35 PM
Quoting: jenniferhbc
This whole thing has me feeling really dumb...thank you for your help!! I'll go figure out where my server is.

Where do I find the setup file?

Thanks again!

Jenn.

No need to feel dumb. This is something most hosting providers setup themselves (which is why there are no instructions for setting it included with Photo Cart). Your hosting provider must have either forgotten to do it OR they (for some reason) do not perform that task as a normal course.


This message was edited by dsearles on July 15, 2012 @ 10:35 PM
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 10:37 PM
Thank you! I found it!

Where do I add this line? The document I loaded seemed to indicate it should be at the end, which I did. But now I get this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/jennifer/public_html/proofing/setup.php:17) in /home/jennifer/public_html/proofing/admin/manage.php on line 307

I really really appreciate the help!

Jenn.
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 10:39 PM
Quoting: dsearles
Quoting: jenniferhbc
This whole thing has me feeling really dumb...thank you for your help!! I'll go figure out where my server is.

Where do I find the setup file?

Thanks again!

Jenn.

No need to feel dumb. This is something most hosting providers setup themselves (which is why there are no instructions for setting it included with Photo Cart). Your hosting provider must have either forgotten to do it OR they (for some reason) do not perform that task as a normal course.



Nothing was changed with my host...this seemed to have come out of nowhere. Should I be contacting them?
 Subject: Warning: date() [function.date]
Posted: July 15, 2012 @ 11:16 PM
Quoting: jenniferhbc
Thank you! I found it!

Where do I add this line? The document I loaded seemed to indicate it should be at the end, which I did. But now I get this error:

Warning: Cannot modify header information - headers already sent by (output started at /home/jennifer/public_html/proofing/setup.php:17) in /home/jennifer/public_html/proofing/admin/manage.php on line 307

I really really appreciate the help!

Jenn.

You've made a mistake in the change which is why that new warning comes out. The new line must be within the <?php and ?> section of that file. There should be other "ini_set" lines in setup.php; just add this new one below them. Like:

...
ini_set('memory_limit', '100M');
ini_set('date.timezone', 'America/Chicago');
...

 Subject: Warning: date() [function.date]
Posted: July 16, 2012 @ 5:34 AM
It worked!!

Thank you SO much!

Jenn.
 Subject: Warning: date() [function.date]
Posted: July 16, 2012 @ 9:55 AM
I am having this problem too! Just started a couple of days ago... Thanks for posting this!

I can't figure out where to go to find setup.php... I am clueless about this stuff!! Where do I find this folder?
Thanks!!!
 Subject: Warning: date() [function.date]
Posted: July 16, 2012 @ 10:02 AM
Quoting: dsearles
setup.php is one of the file that comes with Photo Cart so it will be in the "photocart" folder (or whatever you called it if you chose a different name). It's the same file where you set the name, userid and password of your MySQL database which Photo Cart is to use.

Download the file to your local computer then use a standard text editor (in ASCII mode, if applicable) to change the file then upload the changed file back to your server. Be sure to keep an UNchanged copy of the file just in case you make a mistake and need to go back to the original file.
 Subject: Warning: date() [function.date]
Posted: July 16, 2012 @ 10:16 AM
Ok, I am really stupid about this stuff....
I understand to copy the file to the computer... but where do I find it in the first place? Where do I look to find it and copy it? Sorry for the stupid questions, I don't get technical stuff at all!!! Thanks for all your help!!!
 Subject: Warning: date() [function.date]
Posted: July 16, 2012 @ 10:22 AM
Photo Cart is installed on the server at your hosting provider which is where the files exist. Initially, either you or someone you allowed uploaded all the Photo Cart files to your server. So you will find the setup.php file on the server at your hosting provider (in a folder called "photocart" unless you chose to use a different name when it was installed.
 Subject: Warning: date() [function.date]
Posted: July 16, 2012 @ 10:35 AM
yay, I think it's fixed!! Thanks!!!!
 
You are not subscribed to this topic. (Click here to subscribe)
Reply to this topic     Add new topic
 
 

Recent Topics in Photo Cart

TopicViewsRepliesLast Reply
Custom login page437Today 7:28 PM by dsearles
How do I delete a price group?133Today 6:53 PM by alatka
Photo Cart Won't Send Email121Today 4:49 PM by alatka
Add text to individual photo page171Today 2:36 PM by alatka
Changing Required customer billing fields-Optional110No Replies
Gallery Description Length110No Replies
Revert to "old" gallery view??150No Replies
Website Backup to Online Storage - Like Dropbox483Yesterday 6:15 PM by jbs
Coupon Codes, Gift Certificates and Credits oh my!231Yesterday 2:31 PM by toddemiles
Category & Gallery Icon disable?468Yesterday 5:35 AM by Key4prints
 

Moderators: Tim  
1 members and 8 visitors online in the last 10 minutes.
Members online: Dave