Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

ERROR: It is not safe to rely on the system's timezone settings


Guest

Recommended Posts

Posted

Although i have to update the site im trying to get rid of this error. xtreme-hobby.net

 

Warning: session_is_registered() [function.session-is-registered]: 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 'CST/-6.0/no DST' instead in /home/xtreme/public_html/includes/functions/sessions.php on line 80

 

I was told to check the php.ini file for the timezone settings. But in my php.ini file there is no "timezone" entry? How can i fix this.

 

Thanks to who ever helps.

Posted

How do i go about fixing this without a entry in the php.ini file stating the timezone?

 

I didnt set the website up the Admin i had do it is now gone.

 

So im lost, and have never done anything to this sort.

Thanks to any people that help.

Posted

You'll have to ask your host for how to find any existing php.ini file, and if anything else needs to be done (e.g., an .htaccess entry to point to the php.ini file). If you need to create a new php.ini file, can you handle that? Your hosting File Manager should include a simple editor.

 

Another way to do it is to put an ini_set('date.timezone', 'region/city'); near the top of both your application_top.php files. See http://www.oscommerce.com/forums/topic/390525-error-messages/

Posted

I have acess to my control panel and have seen the php.ini file but no where in that file states a timezone at all.

 

Phil if you have a minute or so i can give you access to the control panel to take a look. I just need this resolved.

Thanks

Posted

Hi Jon,

 

Think it is time to upgrade your site ( Deprecated Function session_register )

 

You are using an old version and the errors will keep on coming

 

Regards

Joli

To improve is to change; to be perfect is to change often.

 

Posted

An existing php.ini file probably won't mention timezone at all. You have to add it to the php.ini file, or (if the file doesn't exist) create the php.ini file.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...