Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-11212

Catch non-existent globals if error occurs during container construction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-a1
    • 3.1.0-dev
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: