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

Catch non-existent globals if error occurs during container construction

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0-dev
    • Fix Version/s: 3.1.0-a1
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: