Skip to content

Call to a member function getFilePath() on null

Hat bei Gruppenabgabe von Dateien ein Gruppenteilnehmer eine alte Version der Abgabe noch im Browser geöffnet (währendend parallel eine zweite Abgabe durch eine andere Person der Gruppe passiert ist), funktioniert der Download der Abgaben nicht mehr:

Error: Call to a member function getFilePath() on null in public/plugins_packages/virtUOS/VipsPlugin/exercises/tb_exercise.php:220
Stack trace:
#0 public/plugins_packages/virtUOS/VipsPlugin/controllers/sheets.php(2145): tb_exercise->download_action(Object(SheetsController))
#1 vendor/trails/trails.php(557): SheetsController->relay_action('download_action')
#2 app/controllers/studip_controller.php(116): Trails_Controller->perform('relay/download')
#3 vendor/trails/trails.php(154): StudipController->perform('relay/download')
#4 vendor/trails/trails.php(121): Trails_Dispatcher->map_uri_to_response('sheets/relay/do...')
#5 lib/plugins/core/StudIPPlugin.class.php(142): Trails_Dispatcher->dispatch('sheets/relay/do...')
#6 public/plugins_packages/virtUOS/VipsPlugin/VipsPlugin.php(328): StudIPPlugin->perform('sheets/relay/do...')
#7 public/plugins.php(54): VipsPlugin->perform('sheets/relay/do...')
Edited by Elmar Ludwig
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information