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

DateTimeZone throws warnings: Unknown or bad timezone ()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Resolved
    • 3.1.9
    • 3.2.10-RC1, 3.3.1-RC1
    • Other

    Description

      I am running NewRelic on my servers and quite often I get warnings notifications when i post an article.

      Error message
      E_WARNING: DateTimeZone::__construct(): Unknown or bad timezone ()
       
      Sample stack trace
      ...one::__construct called at /var/www/osb-dedicated-kalilinux/web/phpbb/
      user.php (192)
      in phpbb\user::setup called at /var/www/osb-dedicated-kalilinux/web/posting.php (239)
      

      Screen shots are attached.

      I went and check what's on line 192 from user.php and try/catch it used for debugging or catching exceptions, however, not for assigning values or switching elements.

      I've already created a patch for this and currently is running on my live server. (if needed i can provide the URL to the website)

      Attachments

        Issue Links

          Activity

            People

              Marc Marc
              obokar obokar [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: