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

Undefined offset error when phpinfo() disabled and debug enabled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.0.12, 3.1.0-b4
    • 3.0.13-RC1, 3.1.0-RC1
    • None
    • None

    Description

      If phpinfo() is disabled and debug is enabled, it throws this error

      [phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_php_info.php on line 55: Undefined offset: 0

      It is better on 3.1 because rest of the page is displayed, but I think it should be solved.

      Solution:
      open includes/acp/acp_php_info.php

      Find
      if (empty($phpinfo) || empty($output))

      Replace with
      if (empty($phpinfo) || empty($output) || empty($output[1][0]))

      Attachments

        Activity

          People

            bantu Andreas Fischer [X] (Inactive)
            Kamahl19 Kamahl19
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: