Also podcast issues
I have seen this topic, but I'm not entirely sure if the issue is the same.
If I try to play the Angry Nerds Podcast by selecting an episode on https://play.asti.ga/podcasts it mostly works, although it can take some time and a few refreshes, and despite the fact that the image is never loaded in the play queue and the play bar at the bottom. The image does show under the tab My podcasts.
When I try to open the Angry Nerds Podcast's page (https://play.asti.ga/podcast/09bc26f4-6c95-11ef-af49-960000a8970a) I get the following error page:
Slim Application Error The application could not run because of the following error: Details Type: DivisionByZeroError Code: 0 Message: Division by zero File: /var/www/astiga/play/app/Controllers/PodcastsController.php Line: 249 Trace #0 /var/www/astiga/play/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Astiga\Controllers\PodcastsController->get() #1 /var/www/astiga/play/vendor/slim/slim/Slim/Routing/Route.php(363): Slim\Handlers\Strategies\RequestResponse->__invoke() #2 /var/www/astiga/play/app/Middlewares/AuthorisationMiddleware.php(39): Slim\Routing\Route->handle() #3 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Astiga\Middlewares\AuthorisationMiddleware->process() #4 /var/www/astiga/play/app/Middlewares/AuthenticationMiddleware.php(31): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #5 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Astiga\Middlewares\AuthenticationMiddleware->process() #6 /var/www/astiga/play/app/Middlewares/CacheControlMiddleware.php(21): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #7 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Astiga\Middlewares\CacheControlMiddleware->process() #8 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #9 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\MiddlewareDispatcher->handle() #10 /var/www/astiga/play/vendor/slim/slim/Slim/Routing/Route.php(321): Slim\MiddlewareDispatcher->handle() #11 /var/www/astiga/play/vendor/slim/slim/Slim/Routing/RouteRunner.php(74): Slim\Routing\Route->run() #12 /var/www/astiga/play/app/Middlewares/CacheControlMiddleware.php(21): Slim\Routing\RouteRunner->handle() #13 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Astiga\Middlewares\CacheControlMiddleware->process() #14 /var/www/astiga/play/app/Middlewares/PartialPageMiddleware.php(15): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #15 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Astiga\Middlewares\PartialPageMiddleware->process() #16 /var/www/astiga/play/index.php(157): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #17 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareDispatcher.php(280): Closure->{closure}() #18 /var/www/astiga/play/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #19 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process() #20 /var/www/astiga/play/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #21 /var/www/astiga/play/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle() #22 /var/www/astiga/play/vendor/slim/slim/Slim/App.php(193): Slim\App->handle() #23 /var/www/astiga/play/index.php(206): Slim\App->run() #24 {main}
Comments
We'll take a look at replicating this - it looks unrelated to the existing issue (at least: it's a different error message).
Yeah, it's different - it looks like something to do with when there's an invalid or zero duration for the podcast. We'll do some work to cope with this better.