elan-ev / studip-opencast-plugin

This is an Stud.IP plugin for Opencast
https://elan-ev.github.io/studip-opencast-plugin/
GNU General Public License v2.0
9 stars 20 forks source link

Internal error on fresh system #984

Closed dennis531 closed 2 months ago

dennis531 commented 3 months ago

If the db tables contain no data (fresh install), the plugin shows an internal error:

image

Error:

{
  "errors": [
    {
      "code": 500,
      "title": "Call to a member function toArray() on null",
      "detail": "Error: Call to a member function toArray() on null in /home/dennis/studip/public/plugins_packages/elan-ev/OpenCast/lib/Models/Config.php:91\nStack trace:\n#0 /home/dennis/studip/public/plugins_packages/elan-ev/OpenCast/lib/Models/REST/Config.php(18): Opencast\\Models\\Config::getBaseServerConf()\n#1 /home/dennis/studip/public/plugins_packages/elan-ev/OpenCast/lib/Routes/Config/ConfigList.php(56): Opencast\\Models\\REST\\Config::getOCBaseVersion()\n#2 /home/dennis/studip/composer/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(43): Opencast\\Routes\\Config\\ConfigList->__invoke()\n#3 /home/dennis/studip/composer/slim/slim/Slim/Routing/Route.php(384): Slim\\Handlers\\Strategies\\RequestResponse->__invoke()\n#4 /home/dennis/studip/composer/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\\Routing\\Route->handle()\n#5 /home/dennis/studip/public/plugins_packages/elan-ev/OpenCast/lib/Middlewares/AdminPerms.php(33): Slim\\MiddlewareDispatcher->handle()\n#6 /home/dennis/studip/composer/slim/slim/Slim/MiddlewareDispatcher.php(313): Opencast\\Middlewares\\AdminPerms->__invoke()\n#7 /home/dennis/studip/public/plugins_packages/elan-ev/OpenCast/lib/Middlewares/Authentication.php(47): class@anonymous->handle()\n#8 /home/dennis/studip/composer/slim/slim/Slim/MiddlewareDispatcher.php(313): Opencast\\Middlewares\\Authentication->__invoke()\n#9 /home/dennis/studip/composer/slim/slim/Slim/MiddlewareDispatcher.php(81): class@anonymous->handle()\n#10 /home/dennis/studip/composer/slim/slim/Slim/Routing/Route.php(341): Slim\\MiddlewareDispatcher->handle()\n#11 /home/dennis/studip/composer/slim/slim/Slim/Routing/RouteRunner.php(84): Slim\\Routing\\Route->run()\n#12 /home/dennis/studip/public/plugins_packages/elan-ev/OpenCast/lib/Middlewares/RemoveTrailingSlashes.php(44): Slim\\Routing\\RouteRunner->handle()\n#13 /home/dennis/studip/composer/slim/slim/Slim/MiddlewareDispatcher.php(313): Opencast\\Middlewares\\RemoveTrailingSlashes->__invoke()\n#14 /home/dennis/studip/composer/slim/slim/Slim/Middleware/ErrorMiddleware.php(107): class@anonymous->handle()\n#15 /home/dennis/studip/composer/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\\Middleware\\ErrorMiddleware->process()\n#16 /home/dennis/studip/composer/slim/slim/Slim/MiddlewareDispatcher.php(81): class@anonymous->handle()\n#17 /home/dennis/studip/composer/slim/slim/Slim/App.php(215): Slim\\MiddlewareDispatcher->handle()\n#18 /home/dennis/studip/composer/slim/slim/Slim/App.php(199): Slim\\App->handle()\n#19 /home/dennis/studip/public/plugins_packages/elan-ev/OpenCast/OpenCast.class.php(307): Slim\\App->run()\n#20 /home/dennis/studip/public/plugins.php(61): OpenCast->perform()\n#21 {main}"
    }
  ]
}