http://www.luckyshotphotos.com/index.phpZenphoto and Zenpage? Or ... ya... Error:
Strict Standards: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. `Please use the date.timezone setting, the TZ environment variable 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 'America/Denver' for 'MST/-7.0/no DST' instead in `/home/***/public_html/zp-core/plugins/zenpage/zenpage-template-functions.php on line 810`
Strict Standards: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. `Please use the date.timezone setting, the TZ environment variable 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 'America/Denver' for 'MST/-7.0/no DST' instead in `/home/***/public_html/zp-core/functions.php on line 267`
Comments
`
if (function_exists('date_default_timezone_set')) {
date_default_timezone_set(date_default_timezone_get());
}
`
Leave the error reporting as it was in the release. Let us know the result
I added the code to the end of functions basic
`
Strict Standards: date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'America/Denver' for 'MST/-7.0/no DST' instead in /home/**/public_html/zp-core/functions-basic.php on line 819
Warning: Cannot modify header information - headers already sent by (output started at /home/**/public_html/zp-core/functions-basic.php:819) in /home/**/public_html/index.php on line 25
Warning: Cannot modify header information - headers already sent by (output started at /home/**/public_html/zp-core/functions-basic.php:819) in /home/**/public_html/zp-core/functions.php on line 1913
Warning: Cannot modify header information - headers already sent by (output started at /home/**/public_html/zp-core/functions-basic.php:819) in /home/**/public_html/index.php on line 100
Warning: Cannot modify header information - headers already sent by (output started at /home/**/public_html/zp-core/functions-basic.php:819) in /home/**/public_html/index.php on line 101
`
I use the last nightly version of zenphoto - 1.2.2 [3048], this is a fresh install and I get hardly the same error :
`Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'America/Chicago' for 'CST/-6,0/no DST' instead in /home/user/zenphoto/zp-core/class-album.php on line 279`
`Warning: Cannot modify header information - headers already sent by (output started at /home/user/zenphoto/zp-core/class-album.php:279) in /home/user/zenphoto/zp-core/admin-edit.php on line 300`
To suppress the message change line 84 of functions-basic.php to:
`error_reporting(E_ALL ^E_NOTICE);`
I use PHP Version 4.4.6.
I added to the end of functions-basic.php just before `?>`:
`
if (function_exists('date_default_timezone_set')) {
date_default_timezone_set(date_default_timezone_get());
}
`
here is what I get :
`
Strict Standards: date_default_timezone_get() [function.date-default-timezone-get]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable 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 'America/Chicago' for 'CST/-6.0/no DST' instead in /home/user/zenphoto/zp-core/functions-basic.php on line 819
Warning: Cannot modify header information - headers already sent by (output started at /home/user/zenphoto/zp-core/functions-basic.php:819) in /home/user/zenphoto/zp-core/functions.php on line 1913
Warning: Cannot modify header information - headers already sent by (output started at /home/user/zenphoto/zp-core/functions-basic.php:819) in /home/user/zenphoto/index.php on line 25
Warning: Cannot modify header information - headers already sent by (output started at /home/user/zenphoto/zp-core/functions-basic.php:819) in /home/user/zenphoto/index.php on line 100
Warning: Cannot modify header information - headers already sent by (output started at /home/user/zenphoto/zp-core/functions-basic.php:819) in /home/user/zenphoto/index.php on line 101
`
Your other option, if you don't mind trying, is to change the date.timezone setting in your PHP.ini file. Or add to the end of functions.php `ini_set('date.timezone', 'UTC');` (You can substitute your local timezone from the list shown here: http://us.php.net/manual/en/timezones.php)
`ini_set('date.timezone', 'Europe/Dublin');`
to the end of functions.php seems to fix the problem for now (i.e. prevent the messages), but I'll sync up with whatever the eventual outcome is. I'm using a host based in the US so should I be referring to the timezone where the server is physically located instead?
I will do the following:
`
To suppress the message change line 84 of functions-basic.php to:
error_reporting(E_ALL ^E_NOTICE);
`
`
Warning: Cannot modify header information - headers already sent by (output started at /home/--/public_html/zp-core/functions-basic.php:1) in /home/--/public_html/index.php on line 25
Warning: Cannot modify header information - headers already sent by (output started at /home/--/public_html/zp-core/functions-basic.php:1) in /home/--/public_html/zp-core/functions.php on line 1913
Warning: Cannot modify header information - headers already sent by (output started at /home/--/public_html/zp-core/functions-basic.php:1) in /home/--/public_html/index.php on line 100
Warning: Cannot modify header information - headers already sent by (output started at /home/--/public_html/zp-core/functions-basic.php:1) in /home/--/public_html/index.php on line 101
`
`error_reporting(E_ALL ^E_NOTICE);`
But also report the success/failure and your PHP version.
of course you're right (there's no way to fool the sbillard !), I made a mistake, my php version is 5.2.1.
I added `ini_set('date.timezone', 'UTC');` to the end of functions.php and that did the trick, thank you !
Okay question, off topic... I got some comments on a album, but I think they are disabled, I cant view/post a comment on a album (not a image), yet I see them under "recent comments"
Anyway, as things are now, a spammer familiar with zenphoto can post a comment even though you have them disabled. Suggest you enable Captcha. that will put a wrinkle on the spammers.