This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Error on php version 5.4


  1. stephenheath
    Member

    When I upgraded my php version from 5.2 to 5.4 I got this error message just above one of my forms:

    Strict Standards: 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/Berlin' for 'CET/1.0/no DST' instead in /homepages/39/d336493578/htdocs/machform/includes/view-functions.php on line 1061

    Warning: Cannot modify header information - headers already sent by (output started at /homepages/39/d336493578/htdocs/machform/includes/view-functions.php:1061) in /homepages/39/d336493578/htdocs/machform/embed.php on line 132

    Any help appreciated!
    Thanks

    Posted 11 years ago #
  2. yuniar

    Try to edit your "machform/includes/init.php" file. Search for this code:

    error_reporting(E_ALL ^ E_NOTICE);

    change it to become:

    date_default_timezone_set(@date_default_timezone_get());
    error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE);

    that should fix the issue.


    MachForm Founder

    Posted 11 years ago #
  3. stephenheath
    Member

    That's great, worked a treat! Many thanks for your help!

    Posted 11 years ago #

RSS feed for this topic

Reply