| exception |
Error {#2650
#message: "Unsupported operand types"
#code: 0
#file: "/var/www/ibadat/vendor/bolt/core/src/Cache/CanonicalCacher.php"
#line: 15
trace: {
/var/www/ibadat/vendor/bolt/core/src/Cache/CanonicalCacher.php:15 {
Bolt\Cache\CanonicalCacher->generateLink(?string $route, ?array $params, $canonical = false): ?string …
› {
› $this->setCacheKey([$route, $canonical] + $params);
›
}
/var/www/ibadat/vendor/bolt/core/src/Canonical.php:159 {
Bolt\Canonical->getPath(): string …
›
› $this->path = $this->generateLink($route, $params, false);
› }
arguments: {
$route: null
$params: null
$canonical: false
}
}
/var/www/ibadat/vendor/bolt/core/src/Utils/ContentHelper.php:62 {
Bolt\Utils\ContentHelper->getLink($record, bool $canonical = false, string $locale = null): ?string …
›
› return $canonical ? $canonicalObj->get() : $canonicalObj->getPath();
› }
}
/var/www/ibadat/vendor/bolt/core/src/Twig/ContentExtension.php:380 {
Bolt\Twig\ContentExtension->getLink($contentOrTaxonomy, bool $canonical = false, string $locale = null): ?string …
›
› return $this->contentHelper->getLink($contentOrTaxonomy, $canonical, $locale);
› }
arguments: {
$record: Bolt\Entity\Content {#2645 …}
$canonical: false
$locale: null
}
}
/var/www/ibadat/vendor/bolt/core/src/Menu/FrontendMenuBuilder.php:115 {
Bolt\Menu\FrontendMenuBuilder->generateUri(string $link = ''): array …
› if ($content) {
› return [$this->contentExtension->getTitle($content), $this->contentExtension->getLink($content)];
› }
arguments: {
$contentOrTaxonomy: Bolt\Entity\Content {#2645 …}
}
}
/var/www/ibadat/vendor/bolt/core/src/Menu/FrontendMenuBuilder.php:74 {
Bolt\Menu\FrontendMenuBuilder->setUris(Environment $twig, array $item): array …
› {
› [$title, $item['uri']] = $this->generateUri($item['link']);
›
arguments: {
$link: "page/2"
}
}
/var/www/ibadat/vendor/bolt/core/src/Menu/FrontendMenuBuilder.php:68 {
Bolt\Menu\FrontendMenuBuilder->Bolt\Menu\{closure} …
› return array_map(function ($item) use ($twig): array {
› return $this->setUris($twig, $item);
› }, $menu);
arguments: {
$twig: Twig\Environment {#66 …}
$item: [ …6]
}
}
Bolt\Menu\FrontendMenuBuilder->Bolt\Menu\{closure}() {}
/var/www/ibadat/vendor/bolt/core/src/Menu/FrontendMenuBuilder.php:67 {
Bolt\Menu\FrontendMenuBuilder->buildMenu(Environment $twig, string $name = null): array …
›
› return array_map(function ($item) use ($twig): array {
› return $this->setUris($twig, $item);
arguments: {
$callback: Closure($item): array {#2661 …}
...$arrays: {
[ …4]
}
}
}
/var/www/ibadat/vendor/bolt/core/src/Menu/FrontendMenu.php:52 {
Bolt\Menu\FrontendMenu->Bolt\Menu\{closure} …
›
› return $this->menuBuilder->buildMenu($twig, $name);
› });
arguments: {
$twig: Twig\Environment {#66 …}
$name: "main"
}
}
/var/www/ibadat/vendor/symfony/cache/LockRegistry.php:108 {
Symfony\Component\Cache\LockRegistry::compute(callable $callback, ItemInterface $item, bool &$save, CacheInterface $pool, Closure $setMetadata = null, LoggerInterface $logger = null) …
›
› $value = $callback($item, $save);
›
arguments: {
Symfony\Component\Cache\CacheItem {#2654 …}
true
}
}
/var/www/ibadat/vendor/symfony/cache/Traits/ContractsTrait.php:100 {
Symfony\Component\Cache\Adapter\TagAwareAdapter->Symfony\Component\Cache\Traits\{closure} …
› $setMetadata($item, $startTime, $metadata);
› }, $this->logger ?? null);
› $setMetadata($item, $startTime, $metadata);
arguments: {
$callback: Closure(ItemInterface $item) {#2666 …}
$item: Symfony\Component\Cache\CacheItem {#2654 …}
&$save: true
$pool: Symfony\Component\Cache\Adapter\TagAwareAdapter {#791 …}
$setMetadata: Closure(CacheItem $item) {#2658 …}
$logger: null
}
}
/var/www/ibadat/vendor/symfony/cache-contracts/CacheTrait.php:72 {
Symfony\Component\Cache\Adapter\TagAwareAdapter->doGet(AdapterInterface $pool, string $key, callable $callback, ?float $beta, array &$metadata = null) …
› $save = true;
› $item->set($callback($item, $save));
› if ($save) {
arguments: {
Symfony\Component\Cache\CacheItem {#2654 …}
true
}
}
/var/www/ibadat/vendor/symfony/cache/Traits/ContractsTrait.php:107 {
Symfony\Component\Cache\Adapter\TagAwareAdapter->doGet(AdapterInterface $pool, string $key, callable $callback, ?float $beta, array &$metadata = null) …
› }
› }, $beta, $metadata, $this->logger ?? null);
› }
arguments: {
$pool: Symfony\Component\Cache\Adapter\TagAwareAdapter {#791 …}
$key: "bolt.frontendMenu_main_en"
$callback: Closure(CacheItem $item, bool &$save) {#2665 …}
$beta: 1.0
&$metadata: []
...: {
null
}
}
}
/var/www/ibadat/vendor/symfony/cache-contracts/CacheTrait.php:35 {
Symfony\Component\Cache\Adapter\TagAwareAdapter->get(string $key, callable $callback, float $beta = null, array &$metadata = null) …
› {
› return $this->doGet($this, $key, $callback, $beta, $metadata);
› }
arguments: {
$pool: Symfony\Component\Cache\Adapter\TagAwareAdapter {#791 …}
$key: "bolt.frontendMenu_main_en"
$callback: Closure(ItemInterface $item) {#2666 …}
$beta: 1.0
&$metadata: []
}
}
/var/www/ibadat/vendor/bolt/core/src/Menu/FrontendMenu.php:53 {
Bolt\Menu\FrontendMenu->buildMenu(Environment $twig, string $name = null): array …
› return $this->menuBuilder->buildMenu($twig, $name);
› });
›
arguments: {
$key: "bolt.frontendMenu_main_en"
$callback: Closure(ItemInterface $item) {#2666 …}
}
}
/var/www/ibadat/vendor/bolt/core/src/Twig/FrontendMenuExtension.php:51 {
Bolt\Twig\FrontendMenuExtension->renderMenu(Environment $twig, string $name = null, string $template = '…23', string $class = '', bool $withsubmenus = true): string …
› $context = [
› 'menu' => $this->menuBuilder->buildMenu($twig, $name),
› 'class' => $class,
arguments: {
$twig: Twig\Environment {#66 …}
$name: "main"
}
}
/var/www/ibadat/public/theme/base-2021/partials/_navigation.twig:22 {
__TwigTemplate_7836d09700da01088abf1d66e3806fbd464ad712eef4976a704a7ca61ab432cf->doDisplay(array $context, array $blocks = []) …
›
› {{ menu('main', template='partials/_menu.twig') }}
›
arguments: {
$twig: Twig\Environment {#66 …}
$name: "main"
$template: "partials/_menu.twig"
}
}
/var/www/ibadat/vendor/twig/twig/src/Template.php:394 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …8]
$blocks: [ …1]
}
}
/var/www/ibadat/vendor/twig/twig/src/Template.php:367 {
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
arguments: {
$context: [ …8]
$blocks: [ …1]
}
}
/var/www/ibadat/public/theme/base-2021/partials/_master.twig:38 {
__TwigTemplate_40a7c103219aaf729dc3ff690d3ff5f77c2037e9726ab215a87c08e1b18d17aa->doDisplay(array $context, array $blocks = []) …
› <body class="leading-normal tracking-normal gradient" style="font-family: 'Source Sans Pro', sans-serif;">
› {% include 'partials/_navigation.twig' %}
›
arguments: {
$context: [ …8]
}
}
/var/www/ibadat/vendor/twig/twig/src/Template.php:394 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …8]
$blocks: [ …1]
}
}
/var/www/ibadat/vendor/twig/twig/src/Template.php:367 {
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
arguments: {
$context: [ …8]
$blocks: [ …1]
}
}
/var/www/ibadat/var/cache/dev/twig/c2/c2fdf0b4844c7b67e2cb5e40bf22f2fc8ee4cafc81984c6450996ecb20da675d.php:51 {
__TwigTemplate_f836cda21bd75f796e15f2ede10719d09ddeda611d98ec874dec8e22a9d103fe->doDisplay(array $context, array $blocks = []) …
› $this->parent = $this->loadTemplate("partials/_master.twig", "@theme/record.twig", 3);
› $this->parent->display($context, array_merge($this->blocks, $blocks));
›
arguments: {
$context: [ …8]
$blocks: [ …1]
}
}
/var/www/ibadat/vendor/twig/twig/src/Template.php:394 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
arguments: {
$context: [ …8]
$blocks: [ …1]
}
}
/var/www/ibadat/vendor/twig/twig/src/Template.php:367 {
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
arguments: {
$context: [ …8]
$blocks: [ …1]
}
}
/var/www/ibadat/vendor/twig/twig/src/Template.php:379 {
Twig\Template->render(array $context) …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
arguments: {
$context: [ …4]
}
}
/var/www/ibadat/vendor/twig/twig/src/TemplateWrapper.php:40 {
Twig\TemplateWrapper->render(array $context = []): string …
› // as it should only be used by internal code
› return $this->template->render($context, \func_get_args()[1] ?? []);
› }
arguments: {
$context: [ …4]
...: {
[]
}
}
}
/var/www/ibadat/vendor/twig/twig/src/Environment.php:277 {
Twig\Environment->render($name, array $context = []): string …
› {
› return $this->load($name)->render($context);
› }
arguments: {
$context: [ …4]
}
}
/var/www/ibadat/vendor/bolt/core/src/Controller/TwigAwareController.php:109 {
Bolt\Controller\TwigAwareController->render($template, array $parameters = [], Response $response = null): Response …
› // Render the template
› $content = $this->twig->render($template, $parameters);
›
arguments: {
$name: Twig\TemplateWrapper {#2544 …}
$context: [ …4]
}
}
/var/www/ibadat/vendor/bolt/core/src/Controller/TwigAwareController.php:159 {
Bolt\Controller\TwigAwareController->renderSingle(?Content $record, bool $requirePublished = true, array $templates = []): Response …
›
› return $this->render($templates, $context);
› }
arguments: {
$template: Twig\TemplateWrapper {#2544 …}
$parameters: [ …4]
}
}
/var/www/ibadat/vendor/bolt/core/src/Controller/Frontend/DetailController.php:64 {
Bolt\Controller\Frontend\DetailController->record($slugOrId, string $contentTypeSlug = null, bool $requirePublished = true, string $_locale = null): Response …
›
› return $this->renderSingle($record, $requirePublished);
› }
arguments: {
$record: Bolt\Entity\Content {#2188 …}
$requirePublished: false
}
}
/var/www/ibadat/vendor/bolt/core/src/Controller/ErrorController.php:193 {
Bolt\Controller\ErrorController->attemptToRender(string $item): Response …
› try {
› return $this->detailController->record($slug, $contentType, false, null);
› } catch (NotFoundHttpException $e) {
arguments: {
$slugOrId: "404-not-found"
$contentTypeSlug: "blocks"
$requirePublished: false
$_locale: null
}
}
/var/www/ibadat/vendor/bolt/core/src/Controller/ErrorController.php:117 {
Bolt\Controller\ErrorController->showNotFound(): Response …
› foreach ($this->config->get('general/notfound') as $item) {
› $output = $this->attemptToRender($item);
›
arguments: {
$item: "blocks/404-not-found"
}
}
/var/www/ibadat/vendor/bolt/core/src/Controller/ErrorController.php:97 {
Bolt\Controller\ErrorController->showAction(Environment $twig, Throwable $exception): Response …
› if ($code === Response::HTTP_NOT_FOUND) {
› return $this->showNotFound();
› }
}
/var/www/ibadat/vendor/symfony/http-kernel/HttpKernel.php:152 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
arguments: {
$twig: Twig\Environment {#66 …}
$exception: Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#1613 …}
}
}
/var/www/ibadat/vendor/symfony/http-kernel/HttpKernel.php:74 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#1644 …}
$type: 2
}
}
/var/www/ibadat/vendor/symfony/http-kernel/EventListener/ErrorListener.php:85 {
Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException(ExceptionEvent $event) …
› try {
› $response = $event->getKernel()->handle($request, HttpKernelInterface::SUB_REQUEST, false);
› } catch (\Exception $e) {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#1644 …}
$type: 2
$catch: false
}
}
/var/www/ibadat/vendor/symfony/event-dispatcher/Debug/WrappedListener.php:117 {
Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object $event, string $eventName, EventDispatcherInterface $dispatcher): void …
›
› ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
›
arguments: {
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1611 …}
...: {
"kernel.exception"
Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher {#212 …}
}
}
}
/var/www/ibadat/vendor/symfony/event-dispatcher/EventDispatcher.php:230 {
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event) …
› }
› $listener($event, $eventName, $this);
› }
arguments: {
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1611 …}
$eventName: "kernel.exception"
$dispatcher: Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher {#212 …}
}
}
/var/www/ibadat/vendor/symfony/event-dispatcher/EventDispatcher.php:59 {
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object $event, string $eventName = null): object …
› if ($listeners) {
› $this->callListeners($listeners, $eventName, $event);
› }
arguments: {
$listeners: [ …9]
$eventName: "kernel.exception"
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1611 …}
}
}
/var/www/ibadat/vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154 {
Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object $event, string $eventName = null): object …
› try {
› $this->dispatcher->dispatch($event, $eventName);
› } finally {
arguments: {
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1611 …}
$eventName: "kernel.exception"
}
}
/var/www/ibadat/vendor/symfony/http-kernel/HttpKernel.php:213 {
Symfony\Component\HttpKernel\HttpKernel->handleThrowable(Throwable $e, Request $request, int $type): Response …
› $event = new ExceptionEvent($this, $request, $type, $e);
› $this->dispatcher->dispatch($event, KernelEvents::EXCEPTION);
›
arguments: {
$event: Symfony\Component\HttpKernel\Event\ExceptionEvent {#1611 …}
$eventName: "kernel.exception"
}
}
/var/www/ibadat/vendor/symfony/http-kernel/HttpKernel.php:85 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
›
› return $this->handleThrowable($e, $request, $type);
› }
arguments: {
$e: Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#1613 …}
$request: Symfony\Component\HttpFoundation\Request {#14 …}
$type: 1
}
}
/var/www/ibadat/vendor/symfony/http-kernel/Kernel.php:202 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#14 …}
$type: 1
$catch: true
}
}
/var/www/ibadat/public/index.php:37 {
› $request = Request::createFromGlobals();
› $response = $kernel->handle($request);
› $response->send();
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#14 …}
}
}
}
} |