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

PHP warning if trying to attach orphaned files to non existent posts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.3.6-RC1
    • 3.3.5
    • ACP
    • None
    • PHP 8

      When trying to attach orphaned files to non existent post via ACP -> "Orphaned attachments" module, PHP 8 throws warnings (notices for prior PHP versions):

      [phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_attachments.php on line 1005: Undefined array key 99999
      [phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_attachments.php on line 1008: Trying to access array offset on value of type null
      [phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_attachments.php on line 1009: Trying to access array offset on value of type null
      [phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_attachments.php on line 1010: Trying to access array offset on value of type null
      [phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_attachments.php on line 1010: Undefined array key "forum_id"
      [phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_attachments.php on line 1010: Undefined array key ""
      [phpBB Debug] PHP Warning: in file [ROOT]/includes/acp/acp_attachments.php on line 1013: Trying to access array offset on value of type null
      

            CHItA CHItA
            rxu rxu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: