Exceptions
Exception
Error
in
src/Controller/UserStatisticsController.php
(line 79)
$worst_ranking_round = $user_competition_round;}// Round details$statistics['rounds'][] = ['id' => $round->getId(), 'name' => $round->getName(), 'sequence' => $round->getSequence(), 'points' => $user_competition_round->getPoints(), 'ranking' => $user_competition_round->getRanking(), 'bets_number' => $user_competition_round->getBetsNumber(), 'rate' => $user_competition_round->getBetsNumber() > 0 ? round(($user_competition_round->getBetsWon() / $user_competition_round->getBetsNumber()) * 100, 2) : 0, 'bets_won' => $user_competition_round->getBetsWon(), 'bets_lost' => $user_competition_round->getBetsLost(),];}$statistics['records'] = ['points' => ['best' => ['round' => $best_point_round->getRound()->getName(), 'points' => $best_point_round->getPoints(),], 'worst' => ['round' => $worst_point_round->getRound()->getName(), 'points' => $worst_point_round->getPoints(),],], 'ranking' => ['best' => ['round' => $best_ranking_round->getRound()->getName(), 'ranking' => $best_ranking_round->getRanking(),], 'worst' => ['round' => $worst_ranking_round->getRound()->getName(), 'ranking' => $worst_ranking_round->getRanking(),],]];$statistics['chart'] = ['options' => ['chart' => ['id' => 'basic-bar'], 'xaxis' => ['categories' => $chart_x_axis], 'stroke' => ['curve' => 'smooth',], 'yaxis' => ['reversed' => true]], 'series' => [['name' => 'Ranking', 'data' => $chart_ranking_series],]];return $this->render('statistics/show.html.twig', ['competition' => $competition,'statistics' => $statistics,
in
vendor/symfony/http-kernel/HttpKernel.php
->
get
(line 183)
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);$controller = $event->getController();$arguments = $event->getArguments();// call controller$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 76)
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());$this->requestStack->push($request);$response = null;try {return $response = $this->handleRaw($request, $type);} catch (\Throwable $e) {if ($e instanceof \Error && !$this->handleAllThrowables) {throw $e;}
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 193)
if (!$this->handlingHttpCache) {$this->resetServices = true;}try {return $this->getHttpKernel()->handle($request, $type, $catch);} finally {--$this->requestStackSize;}}
in
vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php
->
handle
(line 35)
) {}public function run(): int{$response = $this->kernel->handle($this->request);if (Kernel::VERSION_ID >= 60400) {$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
<?phpuse App\Kernel;require_once dirname(__DIR__).'/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Logs
No log messages
Stack Trace
|
Error
|
|---|
Error:
Call to a member function getRound() on null
at src/Controller/UserStatisticsController.php:79
at App\Controller\UserStatisticsController->get(object(Request), object(EntityManagerGhost614a58f), object(Competition))
(vendor/symfony/http-kernel/HttpKernel.php:183)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/var/www/vendor/autoload_runtime.php')
(public/index.php:5)
|