Announcement

#1 2021-01-30 19:25:17

JacquiG
Member
2021-01-30
2

PHP error after new install

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

 

#2 2021-01-30 21:20:03

erAck
Only trying to help
2015-09-06
2023

Re: PHP error after new install

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


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2021-01-30 23:23:58

executive
Member
2017-08-16
1214

Re: PHP error after new install

which PHP version are you using? I find that I only get that message with old ones.

Offline

 

#4 2021-01-31 02:52:02

JacquiG
Member
2021-01-30
2

Re: PHP error after new install

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

 

#5 2021-01-31 03:19:14

ckayfish
Member
2021-01-25
53

Re: PHP error after new install

This is working fine for me

Code:

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

--- devOps engineer; sometimes coder. I make your apps run with 99.999% uptime ---

Offline

 

#6 2021-01-31 03:28:13

erAck
Only trying to help
2015-09-06
2023

Re: PHP error after new install

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


Running Piwigo at https://erack.net/gallery/

Offline

 

#7 2021-01-31 12:42:42

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: PHP error after new install

erAck wrote:

It probably would also on 7.4

It does, but not on PHP 8 yet.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact