Skip to content

Undefined variable $test_obj_ids in ilTestOverviewTableGUI::formatData() #17

Description

@rfcmaXi

Beim Öffnen der Test-Übersicht (showContent) tritt unter PHP 8 ein Fatal Error auf.

Die Variable $test_obj_ids wird an $this->getMapper()->getUniqueTestParticipants($test_obj_ids) übergeben, ist jedoch an dieser Stelle nicht definiert.

Zudem nutzt getFallbackTestObjIds() einen unzulässigen (array)-Cast auf ein ArrayAccess-Objekt (ilTestOverviewDataPermissionsIndex), wodurch keine Keys ermittelt werden.

Fehlermeldung / Stacktrace:

    Whoops\Exception\ErrorException thrown with message "Undefined variable $test_obj_ids"
    
    #10 Whoops\Exception\ErrorException in /srv/www/ilias/public/Customizing/global/plugins/Services/Repository/RepositoryObject/TestOverview/classes/GUI/class.
  ilTestOverviewTableGUI.php:373
    #9 ilErrorHandling:handlePreWhoops in /srv/www/ilias/public/Customizing/global/plugins/Services/Repository/RepositoryObject/TestOverview/classes/GUI/class.
  ilTestOverviewTableGUI.php:373
    #8 ilTestOverviewTableGUI:formatData in /srv/www/ilias/public/Customizing/global/plugins/Services/Repository/RepositoryObject/TestOverview/classes/GUI/class.
  ilTOMappedTableGUI.php:117
    #7 ilTOMappedTableGUI:populate in /srv/www/ilias/public/Customizing/global/plugins/Services/Repository/RepositoryObject/TestOverview/classes/class.
  ilObjTestOverviewGUI.php:168
    #6 ilObjTestOverviewGUI:showContent in /srv/www/ilias/public/Customizing/global/plugins/Services/Repository/RepositoryObject/TestOverview/classes/class.
  ilObjTestOverviewGUI.php:131

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions