We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36832
    • 22 Posts

    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	 

      • 22303 MODX Staff
      • 10,725 Posts
      Both of those are caused by the same thing. As described in the error message, you need to add a date.timezone setting to your PHP configuration, either in php.ini or in an .htaccess php_value directive. This is required as of 5.1.
        • 36832
        • 22 Posts
        Quote from: OpenGeek at Oct 06, 2009, 08:34 AM

        Both of those are caused by the same thing. As described in the error message, you need to add a date.timezone setting to your PHP configuration, either in php.ini or in an .htaccess php_value directive. This is required as of 5.1.

        Thanks Jason!
        laugh
          • 36832
          • 22 Posts

          Jason,

          I have posted a detailed Knol about this issue, to help possible other guys.
          http://knol.google.com/k/alxndr/modx-cms-tips-tricks/bbeng7p5ehxe/2#

          Alexandru


            • 22668
            • 718 Posts