Announcement

#1 2014-03-03 00:49:21

AndrzejL
Guest

Piwigo cannot access Admin panel after upgrade to php 5.5.9

Hi there!

ArchLinux with all the latest and greatest bells and whistles and with:

[root@icsserver andrzejl]# pacman -Q | grep -i apache
apache 2.4.7-1
[root@icsserver andrzejl]# pacman -Q | grep -i php
php 5.5.9-2
php-cgi 5.5.9-1
php-fpm 5.5.9-2
php-gd 5.5.9-2
php-mcrypt 5.5.9-2
phpmyadmin 4.1.8-1
[root@icsserver andrzejl]# pacman -Q | grep -i mariadb
libmariadbclient 5.5.36-1
mariadb 5.5.36-1
mariadb-clients 5.5.36-1
[root@icsserver andrzejl]#

Piwigo version 2.6.1.

Working beautifully with the Wordpress / Coppermine and so on and so forth. When accessing the piwigo installation all seems great but when I click on Administration link I get a blank page and this error in the php error log:

[02-Mar-2014 23:15:44 UTC] PHP 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 /var/www/html/images/admin/intro.php on line 116
[02-Mar-2014 23:15:44 UTC] PHP 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /var/www/html/images/include/functions.inc.php:573
Stack trace:
#0 /var/www/html/images/include/functions.inc.php(573): DateTime->__construct()
#1 /var/www/html/images/include/functions.inc.php(595): str2DateTime('2013-05-30 22:4...', NULL)
#2 /var/www/html/images/admin/intro.php(230): format_date('2013-05-30 22:4...')
#3 /var/www/html/images/admin.php(289): include('/var/www/html/i...')
#4 {main}
  thrown in /var/www/html/images/include/functions.inc.php on line 573

I tried removing cookies / clearing cache / restarting browser - nothing.

I know there was a similar thread (or at least I think so...) here http://fr.piwigo.org/forum/viewtopic.php?pid=207910 unfortunately Polish and English are the only 2 languages I know and even google translate was unable to help me... hence this message.

Kind regards.

Andrzej

 

#2 2014-03-03 07:04:57

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
6991

Re: Piwigo cannot access Admin panel after upgrade to php 5.5.9


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2014-03-03 08:24:46

mistic100
Former Piwigo Team
Lyon (FR)
2008-09-27
3277

Re: Piwigo cannot access Admin panel after upgrade to php 5.5.9

Ps: use the internal forum search page, way more accurate than google :-)

Offline

 

#4 2014-03-03 12:17:42

winek
Guest

Re: Piwigo cannot access Admin panel after upgrade to php 5.5.9

Do you have the date.timezone setting

 

#5 2014-03-03 12:18:08

winek
Guest

Re: Piwigo cannot access Admin panel after upgrade to php 5.5.9

Do you have the date.timezone setting set in your php.ini?

 

#6 2014-03-03 12:23:43

AndrzejL
Guest

Re: Piwigo cannot access Admin panel after upgrade to php 5.5.9

Stupid stupid stupid...

I was merging /etc/php/php.ini last night and I have by accident forgotten to un; the

;date.timezone = Europe/Dublin

line... Stupid stupid stupid...

Works fine now.

Thanks You all.

 

#7 2014-05-02 18:31:22

bpiwigo
Guest

Re: Piwigo cannot access Admin panel after upgrade to php 5.5.9

I had a similar problem after upgrading, caused by a different stupid mistake on my part.

I described it at fr.piwigo.org/forum/viewtopic.php?id=24804&p=2 because it was a bit closer to my own issue.  In the end I just needed to restart Apache.

In addition to the information I posted there about php53u, there is another tutorial on it at www.centos.org/forums/viewtopic.php?f=2 … p;start=10

 

#8 2015-05-01 04:49:04

Spaldam
Guest

Re: Piwigo cannot access Admin panel after upgrade to php 5.5.9

 

Board footer

Powered by FluxBB

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