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

Undefined offset error when phpinfo() disabled and debug enabled

    Details

    • Type: Bug
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.12, 3.1.0-b4
    • Fix Version/s: 3.0.13-RC1, 3.1.0-RC1
    • Component/s: None
    • Labels:
      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

            • Assignee:
              bantu Andreas Fischer
              Reporter:
              Kamahl19 Kamahl19
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: