Online Chat
 Call Us: 
1-877-744-1221
Browse Submit a Ticket
 
Advanced Search
Tools
Rss Categories

Got "Connection Lost" when edit and article (date() and strtotime() warnings in the log file)

Author: Edward Hardin Reference Number: AA-00390 Views: 12714 Last Updated: 08/06/2014 08:35 AM 0 Rating/ Voters

When you edit or create a new article, and on some other occasions when working with dates, you may get the "Connection Lost" message.

By enabling the error log and reproducing the "Connection Lost" message, you'll get multiple warnings in the error log file, like this one:

C:\inetpub\agronomix.com\knowledgebase\admin\application\helpers\datetime_helper.php 318
ERROR - 2011-07-22 21:32:00 --> Severity: 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 'America/Denver' for '-7.0/no DST' instead 

This means that required date.timezone setting is not set in your PHP configuration. You need to open php.ini file, add there a date.timezone parameter (e.g. to the end of the file), and restart server to apply changes.

Some examples:

date.timezone = "Asia/Tel_Aviv"
date.timezone = "Europe/Helsinki"
date.timezone = "America/New_York"

date.timezone = "Australia/Melbourne"


You can find the full list of possible date.timezone values on PHP.net website.