Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-13824

Facebook login fails with "It is not safe to rely on the system's timezone settings"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Won't Fix
    • 3.1.4
    • None
    • Authentication
    • None
    • PHP 5.6.8

    Description

      Upon trying to login with Facebook, I got the following error:

      Fatal error: Uncaught exception 'OAuth\Common\Http\Exception\TokenResponseException' with message 'date_default_timezone_get(): 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 the timezone 'UTC' for now, but please set date.timezone to select your timezone.' in /<PHPBB>/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php:55 Stack trace: #0 /<PHPBB>/vendor/lusitanian/oauth/src/OAuth/OAuth2/Service/AbstractService.php(97): OAuth\Common\Http\Client\StreamClient->retrieveResponse(Object(OAuth\Common\Http\Uri\Uri), Array, Array) #1 /<PHPBB>/phpbb/auth/provider/oauth/service/facebook.php(69): OAuth\OAuth2\Service\AbstractService->requestAccessToken('AQAQRv_BskMH-fT...') #2 /<PHPBB> in /<PHPBB>/vendor/lusitanian/oauth/src/OAuth/Common/Http/Client/StreamClient.php on line 55
      

      This issue showed for the first time ever after the 3.1.3 => 3.1.4 upgrade.

      I have attempted to add date_default_timezone_set("America/New_York"); to config.php to no avail.

      Attachments

        Activity

          People

            nicofuma nicofuma
            iggyvolz iggyvolz [X] (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: