Announcement

#1 2012-08-11 09:44:09

wifiuk
Member
2012-08-11
4

PHP Errors

First of all great gallery.

Secondly i have searched the forums and have seen the post


http://piwigo.org/forum/viewtopic.php?p … 21#p115421

and made the changes as suggested

But im getting these errors when looking at photos in gallery at the top above the images and in the admin section at the top.


Warning: mktime(): 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/include/functions.inc.php on line 498

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/include/functions.inc.php on line 498

Warning: mktime(): 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/include/functions.inc.php on line 498

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/include/functions.inc.php on line 498


also i get this one even after the changes and apache restart

Warning: strftime(): 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/include/smarty/libs/Smarty_Compiler.class.php on line 400

Please can somone with the knowledge advise me on this?

Thanks in advance

Last edited by wifiuk (2012-08-11 09:48:39)

Offline

 

#2 2012-08-11 15:39:04

wifiuk
Member
2012-08-11
4

Re: PHP Errors

line 498 is

$formated_date.= $lang['day'][date('w', mktime(12,0,0,$ymdhms[1],$ymdhms[2],$ymdhms[0]))];

Offline

 

#3 2012-08-11 19:27:37

wifiuk
Member
2012-08-11
4

Re: PHP Errors

i miscounted the lines

the code was

if (strpos($date, '0') == 0)


changed it to 

if (strpos($date, '0') == 1)



works

Last edited by wifiuk (2012-08-11 19:27:57)

Offline

 

#4 2012-08-11 20:33:49

wifiuk
Member
2012-08-11
4

Re: PHP Errors

i cant get rid of this one though

Warning: strftime(): 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/include/smarty/libs/Smarty_Compiler.class.php on line 400

Offline

 

#5 2012-08-12 01:45:26

Eric
Former Piwigo Team
VALENCE (FR)
2005-03-25
1768

Offline

 

Board footer

Powered by FluxBB

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