We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 44714
    • 1 Posts
    Hi, PHP is up to date and I've kept the database settings the same. What could possibly be causing the following error when I try to open the site?

    Please note that the manager is working.


    « 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/London' for 'BST/1.0/DST' instead
    Error type/ Nr.: Warning - 2
    File: /var/www/vhosts/5gcomms.com/httpdocs/manager/includes/document.parser.class.inc.php(814) : eval()'d code
    Line: 4

    Parser timing
    MySQL: 0.0128 s (9 Requests)
    PHP: 0.0607 s
    Total: 0.0735 s
    • Your PHP needs to have a default_date_timezone setting.

      http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
      http://php.net/manual/en/function.date-default-timezone-set.php

      You can also set this in the .htaccess file if you can't access the php.ini file or use a custom php.ini file.

      SetEnv TZ Europe/Berlin
      or
      php_value date.timezone "Europe/Berlin"
      
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org