PHP 5.3 problems

Discussion in 'Troubleshooting' started by erald, Nov 20, 2009.

  1. erald

    erald aMember Pro Customer

    Joined:
    Jul 23, 2009
    Messages:
    20
    I upgraded my PHP from 5.2 to 5.3 and got following error

    <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 'Europe/Berlin' for 'CET/1.0/no DST' instead in line 1734 of file /var/www/html/tracey/amember/plugins/db/mysql/mysql.inc.php

    Had several other problems with some incompatibel functions (mainly &$function())

    Same problems with Drupal. I downgraded back to PHP 5.2 and problem was gone.

    so do not use PHP 5.3 since you will break your site.

    Erald
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Erald,
    Error with date is configuration issue.
    Add date.timezone setting to your php.ini and error will not be generated.
    Btw , this setting is available by default in clean php 5.3 installation, I guess you used php.ini from old version.
    In regards to other errors can you attach them?

Share This Page