Exceptions
Exception
ErrorException
in
public/index-app.php
(line 54)
$url = "";
$siteConfigQuery = "SELECT * FROM siteconfig WHERE language=" . $language;
$siteConfigResult = mysqli_query($db, $siteConfigQuery);
$shortTitle = "";
if (mysqli_num_rows($siteConfigResult) > 0) {
$siteConfig = mysqli_fetch_object($siteConfigResult);
$title = $siteConfig->title;
$shortTitle = $siteConfig->title;
$keywords = $siteConfig->metakeywords;
$description = $siteConfig->metadescription;
require('/local/jjacobsen/jj1/public/index-app.php')
in
src/Controller/LegacyController.php
(line 66)
$_SESSION['legacyRemoteUser'] = $user->getUserIdentifier();
}
chdir(dirname($legacyScript));
require $legacyScript;
}
);
}
public static function getSubscribedServices(): array
in
vendor/symfony/http-foundation/StreamedResponse.php
->
Klaravik\Controller\{closure}
(line 109)
if (null === $this->callback) {
throw new \LogicException('The Response callback must not be null.');
}
($this->callback)();
return $this;
}
/**
in
vendor/symfony/http-foundation/Response.php
->
sendContent
(line 394)
* @return $this
*/
public function send()
{
$this->sendHeaders();
$this->sendContent();
if (\function_exists('fastcgi_finish_request')) {
fastcgi_finish_request();
} elseif (\function_exists('litespeed_finish_request')) {
litespeed_finish_request();
in
vendor/symfony/http-kernel/EventListener/StreamedResponseListener.php
->
send
(line 41)
}
$response = $event->getResponse();
if ($response instanceof StreamedResponse) {
$response->send();
}
}
public static function getSubscribedEvents(): array
{
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
onKernelResponse
(line 270)
$closure = static function (...$args) use (&$listener, &$closure) {
if ($listener[0] instanceof \Closure) {
$listener[0] = $listener[0]();
$listener[1] = $listener[1] ?? '__invoke';
}
($closure = \Closure::fromCallable($listener))(...$args);
};
} else {
$closure = $listener instanceof \Closure || $listener instanceof WrappedListener ? $listener : \Closure::fromCallable($listener);
}
}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
::
Symfony\Component\EventDispatcher\{closure}
(line 230)
foreach ($listeners as $listener) {
if ($stoppable && $event->isPropagationStopped()) {
break;
}
$listener($event, $eventName, $this);
}
}
/**
* Sorts the internal list of listeners for the given event by priority.
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
callListeners
(line 59)
} else {
$listeners = $this->getListeners($eventName);
}
if ($listeners) {
$this->callListeners($listeners, $eventName, $event);
}
return $event;
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 196)
*/
private function filterResponse(Response $response, Request $request, int $type): Response
{
$event = new ResponseEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::RESPONSE);
$this->finishRequest($request, $type);
return $event->getResponse();
}
in
vendor/symfony/http-kernel/HttpKernel.php
->
filterResponse
(line 184)
throw new ControllerDoesNotReturnResponseException($msg, $controller, __FILE__, __LINE__ - 17);
}
}
return $this->filterResponse($response, $request, $type);
}
/**
* Filters a response object.
*
in
vendor/symfony/http-kernel/HttpKernel.php
->
handleRaw
(line 75)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
in
vendor/symfony/http-kernel/Kernel.php
->
handle
(line 202)
$this->boot();
++$this->requestStackSize;
$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)
$this->request = $request;
}
public function run(): int
{
$response = $this->kernel->handle($this->request);
$response->send();
if ($this->kernel instanceof TerminableInterface) {
$this->kernel->terminate($this->request, $response);
}
in
vendor/autoload_runtime.php
->
run
(line 35)
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use Klaravik\Kernel;
require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
Logs
Level | Channel | Message |
---|---|---|
INFO 11:38:13 | request |
Matched route "_profiler". { "route": "_profiler", "route_parameters": { "_route": "_profiler", "_controller": "web_profiler.controller.profiler::panelAction", "token": "f7c412" }, "request_uri": "https://jj1.se.klaravik.dev/_profiler/f7c412", "method": "GET" } |
Stack Trace
ErrorException
|
---|
ErrorException: Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, bool given at public/index-app.php:54 at require('/local/jjacobsen/jj1/public/index-app.php') (src/Controller/LegacyController.php:66) at Klaravik\Controller\LegacyController->Klaravik\Controller\{closure}() (vendor/symfony/http-foundation/StreamedResponse.php:109) at Symfony\Component\HttpFoundation\StreamedResponse->sendContent() (vendor/symfony/http-foundation/Response.php:394) at Symfony\Component\HttpFoundation\Response->send() (vendor/symfony/http-kernel/EventListener/StreamedResponseListener.php:41) at Symfony\Component\HttpKernel\EventListener\StreamedResponseListener->onKernelResponse(object(ResponseEvent), 'kernel.response', object(EventDispatcher)) (vendor/symfony/event-dispatcher/EventDispatcher.php:270) at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(object(ResponseEvent), 'kernel.response', object(EventDispatcher)) (vendor/symfony/event-dispatcher/EventDispatcher.php:230) at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure), object(Closure)), 'kernel.response', object(ResponseEvent)) (vendor/symfony/event-dispatcher/EventDispatcher.php:59) at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(ResponseEvent), 'kernel.response') (vendor/symfony/http-kernel/HttpKernel.php:196) at Symfony\Component\HttpKernel\HttpKernel->filterResponse(object(StreamedResponse), object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:184) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:202) 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:35) at require_once('/local/jjacobsen/jj1/vendor/autoload_runtime.php') (public/index.php:5) |