We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40122
    • 330 Posts
    Hi all,

    I have had someone approach me with a ModX issue with their site (one that I have not worked on).

    Their issues are that all links are 404ing.

    And that they get this error when they try to log in to Manager:

    <b>Warning</b>:  date() [<a href='function.date'>function.date</a>]: 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 'Australia/Perth' for 'WST/8.0/no DST' instead in <b>/home3/account/public_html/manager/includes/document.parser.class.inc.php(746) : eval()'d code</b> on line <b>41</b><br />
    Due to too many failed logins, you have been blocked!


    Am I right in thinking this is an Apache error? What I think has happened is that they are running an older version of ModX that broke when their host updated Apache.

    Does anyone know if this is true or how to fix this?

    (Also, would anyone know how to check what version of ModX is being used without logging in? All I have is this in the footer of the manager login to go off: © 2005-2010 by the MODx. MODx™ is licensed under the GPL.)

    Many thanks!

    This question has been answered by sottwell. See the first response.

    [ed. note: meltingdog last edited this post 12 years, 7 months ago.]
    • discuss.answer
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      It's a PHP error, not a web server error. An updated version of PHP can definitely cause this error. The date.timezone has to be set in the php.ini file, as well as in the date_timezone system setting. You can use the system_settings table in the database to set it for MODX. You'll probably need to clear the core/cache/system_settings/ directory for it to work after changing the database.

      You can find the version in the system_settings (cache or database) with the settings_version field.
        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