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

Catch non-existent globals if error occurs during container construction

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.0-dev
    • 3.1.0-a1
    • None
    • None

    Description

      If there is an SQL error during container construction, you currently get PHP fatal errors. That is because certain globals which are fetched from the container do not exist yet. Such as: $phpbb_request and $phpbb_dispatcher.

      This happens if a db table is missing (replacing 3.0 files with 3.1 files without running db update). We should catch these cases and allow the pretty error message to be displayed.

      Attachments

        Issue Links

          Activity

            People

              igorw Igor Wiedler [X] (Inactive)
              igorw Igor Wiedler [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: