Hello
I hope I'm in the right place for this. I'm getting the following errors when I try to get into admin. My host migrated my site to a new server 3 days ago but everything else seems to be working. The gallery itself is loading but crashes when you click on an individual picture.
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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php on line 141 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php on line 141 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php on line 141 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php on line 141 Warning: session_start(): 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php on line 156 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php:141) in /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php on line 156 Warning: session_start(): 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php on line 156 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php:141) in /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php on line 156 Warning: setcookie(): 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/functions_user.inc.php on line 941 Warning: Cannot modify header information - headers already sent by (output started at /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/common.inc.php:141) in /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/functions_user.inc.php on line 941 Warning: session_regenerate_id(): 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/functions_user.inc.php on line 953 Warning: session_regenerate_id(): Cannot regenerate session id - headers already sent in /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/functions_user.inc.php on line 953 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/admin.php on line 187 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/admin.php on line 187 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/admin.php on line 187 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/admin.php on line 187 Warning: Unknown: 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 Unknown on line 0 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 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/functions.inc.php:658 Stack trace: #0 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/functions.inc.php(658): DateTime->__construct() #1 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/functions.inc.php(679): str2DateTime('2015-11-16 15:3...', NULL) #2 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/admin/intro.php(244): format_date('2015-11-16 15:3...') #3 /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/admin.php(312): include('/home/cncmod5/p. in /home/cncmod5/public_html/cncmilitaryemblems.com/pgallery/include/functions.inc.php on line 658
Piwigo version: 2.9.5
PHP version: Site is on 5.3, server is on 7.2.7
MySQL version: 10.2.25-MariaDB
Piwigo URL: http://cncmilitaryemblems.com/pgallery/
Offline
Check your php.ini file to make sure your date/timezone is set. That's the only issue I can think of.
Offline
Thanks. Your suggestion didn't directly solve the problem but it led me to find that the problem is not in Piwigo. I don't have an ini file but I followed my providers instructions to make a phpinfo file (not what I named it) and that file generated the same errors, so now I take it to my provider.
Offline
And a simple search in the forum for timezone would had revealed [Forum, topic 28640] Timezone warnings and [Forum, topic 28532] strange timezone error message on server about piwigo directory. and others (and [Forum, topic 28679] Website showing php errors related to date() and strtotime() where I copied this text from).
Offline