Hi,
After upgrading to PHP version 5.3, I get this warnings below when accessing pages that run MaxiGallery or Ditto.
How can I solve the issues, or at least, how to disable MODX to show warnings?
Thanks.
Alexandru
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: date() [function.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 'Europe/Helsinki' for 'EEST/3.0/DST' instead
Error type/ Nr.: Warning - 2
File: /home/p-p/public_html/assets/snippets/maxigallery/maxigallery.php
Line: 73
Line 73 source: $mgconfig['thumb_watermark_txt'] = (isset($thumb_watermark_txt)) ? $thumb_watermark_txt : "Copyright ".date("Y"); // [ text ]
Parser timing
MySQL: 0.0006 s (0 Requests)
PHP: 0.0172 s
Total: 0.0178 s
and
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: strftime() [function.strftime]: 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 'Europe/Helsinki' for 'EEST/3.0/DST' instead
Error type/ Nr.: Warning - 2
File: /home/es/public_html/assets/snippets/ditto/classes/ditto.class.inc.php
Line: 294
Line 294 source: $placeholders['date'] = strftime($dateFormat,$timestamp);
Parser timing
MySQL: 0.0039 s (13 Requests)
PHP: 0.0239 s
Total: 0.0278 s