General inquiries about the PKP.
Moderators: jmacgreg, btbell, michael, bdgregg, vgabler, barbarah, John
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca
This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
I have an error in /var/log/httpd-error.log as follows:
- Code: Select all
[Sat Dec 28 23:27:10 2013] [error] [client 172.16.3.210] ojs2 has produced an error\n Message: WARNING: strtotime(): 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 'Asia/Tehran' for 'IRST/3.0/no DST' instead\n In file: /usr/local/www/apache22/data/ojs23/lib/pkp/classes/announcement/PKPAnnouncement.inc.php\n At line: 244\n Stacktrace: \n Server info:\n OS: FreeBSD\n PHP Version: 5.3.27\n Apache Version: Apache/2.2.25 (FreeBSD) PHP/5.3.27 with Suhosin-Patch mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2\n DB Driver: mysql\n DB server version: 5.5.33, referer: http://172.16.5.248/index.php?journal=site
How do I fix this error?
- Posts: 4
- Joined: Mon Dec 30, 2013 2:36 am
As the message suggests, you need to add a setting to your PHP configuration to tell it what time zone to use. The details of how to do this will vary depending on your server configuration; it may be a direct modification to php.ini, or a .htaccess file, or something else.
Public Knowledge Project Team
- Posts: 10015
- Joined: Wed Aug 10, 2005 12:56 pm
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 1 guest