• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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