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

Can not access ACP "manage group" page while creating new groups

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.1.0-a1
    • 3.1.0-dev
    • ACP
    • None

      [phpBB Debug] PHP Warning: in file [ROOT]/includes/avatar/manager.php on line 182: array_combine() [function.array-combine]: Both parameters should have at least 1 element
      [phpBB Debug] PHP Warning: in file [ROOT]/includes/avatar/manager.php on line 182: array_combine() [function.array-combine]: Both parameters should have at least 1 element

      The problem is, that $row is empty for new groups, so array_key and array_value don't have any elements and the combine fails

      Adding

      		if (empty($row))
      		{
      			return array();
      		}

      helps for the combine problem. However then you receive:

      [phpBB Debug] PHP Notice: in file [ROOT]/includes/acp/acp_groups.php on line 542: Undefined index: avatar_type
      [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1383: Undefined index: avatar
      [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1384: Undefined index: avatar_width
      [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1385: Undefined index: avatar_height
      [phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1389: Undefined index: avatar_type

      So more stuff needs to be fixed

            EXreaction EXreaction [X] (Inactive)
            nickvergessen Joas Schilling
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: