timezone issue causes user panel to fail #1034

Open
opened 2026-10-05 00:29:09 +02:00 by adam · 0 comments
Owner

Hello.

I am unable to load the user admin panel. I get this warning: "datatables warning .... invalid JSON response"

I check the JSON response in browser debugger. It contains:
Warning: date(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in .../include/common.inc.php on line 126 (several times. Various lines of code)

I created new PHP.INI file in Piwigo directory with:
date.timezone = "America/Vancouver"

Now if I go to Piwigo admin>tools>maintenance>PHP show info, the timezone is reported correctly as "America/Vancouver".

However, the JSON warning is still there.

If I switch to PHP 7 then the problem goes away. But Piwigo minimum requirements are supposed to be PHP 5.3
(https://piwigo.org/guides/install/requirements)

Piwigo 2.10.2
Operating system: Linux
PHP: 5.6.40
MySQL: 5.7.30

Hello. I am unable to load the user admin panel. I get this warning: "datatables warning .... invalid JSON response" I check the JSON response in browser debugger. It contains: ` Warning: date(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in .../include/common.inc.php on line 126` (several times. Various lines of code) I created new PHP.INI file in Piwigo directory with: date.timezone = "America/Vancouver" Now if I go to Piwigo admin>tools>maintenance>PHP show info, the timezone is reported correctly as "America/Vancouver". However, the JSON warning is still there. If I switch to PHP 7 then the problem goes away. But Piwigo minimum requirements are supposed to be PHP 5.3 (https://piwigo.org/guides/install/requirements) Piwigo 2.10.2 Operating system: Linux PHP: 5.6.40 MySQL: 5.7.30 <!-- github-sync-id:646001982 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1034