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

PHP Warning when checking topic/post attachment visibility in PHP 8

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.3.4
    • 3.3.5-RC1
    • Viewing posts
    • php version presently is 7.4 but issue is only with version 8.0, my database is 10.3.29-MariaDB and operating system is Windows 10 and Browser latest Google Chrome.

    Description

      As the summery suggests I am using the latest version of phpbb which is 3.3.4 and yesterday I decided to update my server php to version 8.0 but today I noticed a bug whereby when approving a post with attachments the images did not show but they did when posted, I am not sure if this is relevant or not but when the images just showed as links I clicked on them to get the error message below...

      [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/content_visibility.php on line 153: Undefined array key "topic_poster"
      [phpBB Debug] PHP Warning: in file [ROOT]/phpbb/content_visibility.php on line 153: Undefined array key "poster_id"
      [phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1914: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3009)

      I then decided to revert back to php 7.4 and the images once again appeared within the post approval page and when fully posted.

      Attachments

        Activity

          People

            Marc Marc
            mrix2000 mrix2000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: