• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Timezone error on upload

Status
Not open for further replies.

jannysoft

Chevereto Member
Hi, I just uploaded chevereto 2.2.3 on a new host and I am getting this error.

Code:
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): 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 'Europe/Moscow' for 'MSD/4.0/DST' instead' in /var/www/html/includes/classes/class.db.php:66 Stack trace: #0 /var/www/html/includes/classes/class.db.php(66): DateTime->__construct() #1 /var/www/html/includes/functions.php(1017): dB->__construct() #2 /var/www/html/includes/functions.php(793): check_config() #3 /var/www/html/includes/functions.php(21): check_install() #4 /var/www/html/includes/chevereto.php(115): require_once('/var/www/html/i...') #5 /var/www/html/index.php(21): include_once('/var/www/html/i...') #6 {main} thrown in /var/www/html/includes/classes/class.db.php on line 66

Anyone can help me with this error ?
 
Well the error is saying that your system (php.ini) has a invalid timezone in use and the system is in panic because of that. You have two workarounds here:

1. Use a supported timezone in your php.ini file
This is the real solution to the problem, you need to edit the php.ini file to reflect something like
Code:
date.timezone = "Europe/Moscow"
And don't forget to remove any ";" prior to that line.

2. If you don't have access to the php.ini file, you can inject the value using PHP
Open includes/config.php and before ?> add this:
Code:
date_default_timezone_set('Europe/Moscow');
 
Status
Not open for further replies.
Back
Top