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

Undefined offset error when phpinfo() disabled and debug enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.0.13-RC1, 3.1.0-RC1
    • 3.0.12, 3.1.0-b4
    • None
    • None

      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]))

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

              Created:
              Updated:
              Resolved: