One common issue that I have notice recently is that some servers have update their PHP dependencies but they have fail to correct the timezone settings. This is a server config error rather than a script error and after a little research I have found that this affects every php script out there when the php.ini file has a invalid timezone value.
The problem
The php.ini config value "date.timezone" has a invalid or outdated format. This triggers a E_WARNING on php scripts. The system usually says something like:
Solutions
The solution to this is simple, the php.ini must have a valid timezone format. You need to use a valid value and then restart apache. But in some cases you don't have access to edit the php.ini file, in this case you can add code similar to this one to the chevereto includes/config.php file:
Where you must change 'America/Halifax with the timezone that you want to use.
This will fix the issue and this could work for other php scripts as well.
The problem
The php.ini config value "date.timezone" has a invalid or outdated format. This triggers a E_WARNING on php scripts. The system usually says something like:
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/Halifax' for '-4.0/no DST' instead
Solutions
The solution to this is simple, the php.ini must have a valid timezone format. You need to use a valid value and then restart apache. But in some cases you don't have access to edit the php.ini file, in this case you can add code similar to this one to the chevereto includes/config.php file:
PHP:
date_default_timezone_set('America/Halifax');
This will fix the issue and this could work for other php scripts as well.