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

Debug error when clicking Re-check all versions on ACP manage extensions page

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.2-RC1
    • 3.1.0
    • ACP, Extensions
    • None

      Support topic: https://www.phpbb.com/community/viewtopic.php?f=466&t=2268681

      If some extension versioncheck json file doesn't contain announcement entry, rechecking versions throws debug error like

      [phpBB Debug] PHP Notice: in file [ROOT]/phpbb/version_helper.php on line 274: Undefined index: announcement

      This is due to the /phpbb/version_helper.php code doesn't validate the announcement entry for existance:

      			// Replace & with & on announcement links
      			foreach ($info as $stability => $branches)
      			{
      				foreach ($branches as $branch => $branch_data)
      				{
      					$info[$stability][$branch]['announcement'] = str_replace('&', '&', $branch_data['announcement']);
      				}
      			}

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

              Created:
              Updated:
              Resolved: