Hello,
After installing and configuring Piwigo (on Windows 10), I get the following error message:
It is not safe to rely on the system's timezone settings. You are *required* to use date.timezone setting or the 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/New York' for '-5.0/no DST' instead in C:\inetpub\wwwroot\photos\include\common.inc.php on line 126
There is no mention of a timezone on that line. Nothing I have searched has come up with what the line is supposed to be. Need some help getting this figured out.
Thanks
Offline
Depends on the default timezone you want the server to be in ... for example
date.timezone = 'Europe/Berlin'
in the appropriate php.ini used by your web server setup. Check Piwigo's Admin -> Tools -> Maintenance, Environment, PHP Show info to find out which are used.
For a list of supported timezones see https://www.php.net/manual/en/timezones.php
Offline
which PHP version are you using? I find that I only get that message with old ones.
Offline
I am using PHP 5.3. The Piwigo install said that php 5 was required and that was the only one I could find, that old. Can I use a current version of PHP?
Offline
This is working fine for me
Piwigo 11.1.0 Operating system: Linux PHP: 7.3.26 (Show info) [2021-01-30 18:17:05] MySQL: 5.5.5-10.4.17-MariaDB-1:10.4.17+maria~bionic-log [2021-01-30 18:17:05] Graphics Library: ImageMagick 7.0.10-48
Offline
Holy shit, PHP 5.3 is a decade old, forget it. (Btw, the requirements page says "PHP 7.3+. Piwigo can run with PHP 5.3+ but these end-of-life versions are no longer maintained and may expose your site to security vulnerabilities"). Do yourself a favour and use a recent PHP that is still supported and gets security updates. PHP 7.3 is not the newest but still ok and Piwigo runs fine on it. It probably would also on 7.4
Offline
erAck wrote:
It probably would also on 7.4
It does, but not on PHP 8 yet.
Offline