Exceptions
Exception
Twig\Error\ RuntimeError
Show exception properties
Twig\Error\RuntimeError {#2559 -lineno: 34 -columnno: null -rawMessage: "Neither the property "parentId" nor one of the methods "parentId()", "getparentId()", "isparentId()", "hasparentId()" or "__call()" exist and have public access in class "Boab\CmsBundle\Entity\Article"." -source: Twig\Source {#2431 -code: """ {% extends "page_header.html.twig" %}\n \n {% import _self as m %}\n \n {% macro render_author_bio(user) %}\n <a href="#" class="post-author">\n <div class="avatar">\n <img src="{{ user.thumbnail|imagine_filter('thumbnail_small') }}" alt=""> \n </div>\n <div class="info">\n <h4 class="name">{{ user.getFullName() }}</h4> \n <p>{{ user.bio }}</p>\n <span class="designation">All stories by : {{ user.getFullName() }}</span>\n </div>\n </a> \n {% endmacro %}\n \n {% block page_container %}\n \n <!-- sidebar area start -->\n <div class="vl-sidebar-area sp2">\n <div class="container">\n <div class="row">\n \n <div class="col-lg-8">\n <div class="vl-event-content-area mr-50">\n {% block post_content %}{% endblock %}\n </div>\n </div>\n \n <div class="col-lg-4">\n {% block post_sidebar %}\n <div class="vl-widget-area">\n {% if content is defined and content.parentId %}\n {{ sonata_block_render({'type': 'boab_cms.block.child_pages'}, {\n 'title': 'Related Pages',\n 'parent_id': content.parentId,\n 'limit': 20,\n 'order': 'ASC',\n 'order_by': 'position',\n 'template': 'page/_siblings_sidebar.html.twig'\n }) }}\n {% endif %}\n \n <div class="vl-phone-widget mb-30">\n <h3 class="title">If You Need Any Help <br> Contact With Us</h3>\n <a href="tel:{{ setting('primary_number') }}" class="phone">\n <span><img src="{{ asset('themes/castine/assets/img/icons/vl-phone-event.svg') }}" alt=""></span>\n {{ setting('primary_number') }}\n </a>\n </div>\n \n <div class="vl-social-widget mb-30">\n <h3 class="title">Follow Us</h3>\n <div class="social-icon">\n <ul>\n <li><a href="#" aria-label="Facebook"><i class="fa-brands fa-facebook-f"></i></a></li>\n <li><a href="#" aria-label="Twitter"><i class="fa-brands fa-twitter"></i></a></li>\n <li><a href="#" aria-label="LinkedIn"><i class="fa-brands fa-linkedin-in"></i></a></li>\n <li><a href="#" aria-label="Instagram"><i class="fa-brands fa-instagram"></i></a></li>\n </ul>\n </div>\n </div>\n </div>\n {% endblock %}\n </div>\n </div>\n </div>\n </div>\n <!-- sidebar area end -->\n \n {% endblock %}\n """ -name: "standard_tpl.html.twig" -path: "/home/wapcasplus.org/siteFiles/templates/standard_tpl.html.twig" } -phpFile: "/home/wapcasplus.org/siteFiles/vendor/twig/twig/src/Extension/CoreExtension.php" -phpLine: 1902 }
in
templates/standard_tpl.html.twig
(line 34)
</div><div class="col-lg-4">{% block post_sidebar %}<div class="vl-widget-area">{% if content is defined and content.parentId %}{{ sonata_block_render({'type': 'boab_cms.block.child_pages'}, {'title': 'Related Pages','parent_id': content.parentId,'limit': 20,'order': 'ASC',
in
var/cache/dev/twig/5b/5bbc3bd8f898b438cad17201e6fbab91.php
::
getAttribute
(line 157)
// line 33yield " <div class=\"vl-widget-area\">";// line 34if ((array_key_exists("content", $context) && (($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 34, $this->source); })()), "parentId", [], "any", false, false, false, 34)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {// line 35yield " ";yield (string) $this->env->getRuntime('Sonata\BlockBundle\Templating\Helper\BlockHelper')->render(["type" => "boab_cms.block.child_pages"], ["title" => "Related Pages", "parent_id" => CoreExtension::getAttribute($this->env, $this->source, // line 37(isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 37, $this->source); })()), "parentId", [], "any", false, false, false, 37), "limit" => 20, "order" => "ASC", "order_by" => "position", "template" => "page/_siblings_sidebar.html.twig"]);// line 42
in
vendor/twig/twig/src/Template.php
->
block_post_sidebar
(line 458)
}if (null !== $template) {try {$template->ensureSecurityChecked();yield from $template->$block($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($template->getSourceContext());}
in
var/cache/dev/twig/5b/5bbc3bd8f898b438cad17201e6fbab91.php
->
yieldBlock
(line 100)
</div><div class=\"col-lg-4\">";// line 32yield from $this->unwrap()->yieldBlock('post_sidebar', $context, $blocks);// line 66yield " </div></div></div></div>
in
vendor/twig/twig/src/Template.php
->
block_page_container
(line 458)
}if (null !== $template) {try {$template->ensureSecurityChecked();yield from $template->$block($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($template->getSourceContext());}
in
var/cache/dev/twig/76/7684a98edb977b9acbd15d807b479a7c.php
->
yieldBlock
(line 372)
yield from $this->unwrap()->yieldBlock('page_header', $context, $blocks);// line 198yield "";// line 199yield from $this->unwrap()->yieldBlock('page_container', $context, $blocks);// line 200yield "";// line 201$context["what_we_do"] = Twig\Extension\CoreExtension::first($this->env->getCharset(), Twig\Extension\CoreExtension::filter($this->env, $this->env->hasExtension(\Twig\Extension\SandboxExtension::class) && $this->env->getExtension(\Twig\Extension\SandboxExtension::class)->isSandboxed($this->source), $this->extensions['Boab\MenuBundle\Twig\MenuExtension']->getMenuTree("main"), function ($__item__) use ($context, $macros) { $context["item"] = $__item__; return (CoreExtension::getAttribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 201, $this->source); })()), "label", [], "any", false, false, false, 201) == "What We Do"); }));
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 411)
$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {$this->ensureSecurityChecked();yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
var/cache/dev/twig/ee/ee15da541d14ee4c526b9a2e43d2e590.php
->
yield
(line 54)
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "page_header.html.twig"));$this->parent = $this->load("site_body.html.twig", 1);yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 411)
$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {$this->ensureSecurityChecked();yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
var/cache/dev/twig/5b/5bbc3bd8f898b438cad17201e6fbab91.php
->
yield
(line 59)
// line 3$macros["m"] = $this->macros["m"] = $this;// line 1$this->parent = $this->load("page_header.html.twig", 1);yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 411)
$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {$this->ensureSecurityChecked();yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
var/cache/dev/twig/57/5772e098ee04b2db794830a0a05da2ba.php
->
yield
(line 59)
$macros["m"] = $this->macros["m"] = $this;// line 17$context["page_banner"] = "build/images/blog.jpeg";// line 1$this->parent = $this->load("standard_tpl.html.twig", 1);yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in
vendor/twig/twig/src/Template.php
->
doDisplay
(line 411)
$context += $this->env->getGlobals();$blocks = array_merge($this->blocks, $blocks);try {$this->ensureSecurityChecked();yield from $this->doDisplay($context, $blocks);} catch (Error $e) {if (!$e->getSourceContext()) {$e->setSourceContext($this->getSourceContext());}
in
vendor/twig/twig/src/Template.php
->
yield
(line 366)
return $this->blocks;}public function display(array $context, array $blocks = []): void{foreach ($this->yield($context, $blocks) as $data) {echo $data;}}public function render(array $context): string
in
vendor/twig/twig/src/Template.php
->
display
(line 381)
ob_start();} else {ob_start(static function () { return ''; });}try {$this->display($context);} catch (\Throwable $e) {while (ob_get_level() > $level) {ob_end_clean();}
in
vendor/twig/twig/src/TemplateWrapper.php
->
render
(line 51)
yield from $this->template->yieldBlock($name, $context);}public function render(array $context = []): string{return $this->template->render($context);}/*** @return void*/
public function render(array $data = []){$data = array_merge($this->fields, $data);if ('twig' === $this->getExtension($this->template)) {return $this->twigEngine->render($data);}$template = $this->locator->load($template);return $this->__render($template);}
$view = $event->getControllerResult();if (!$view instanceof ViewInterface) {return;}$html = $view->render($this->viewManager->getData());$response = new Response($html);$response->setStatusCode(200);$event->setResponse($response);}}
in
vendor/symfony/event-dispatcher/Debug/WrappedListener.php
->
onKernelView
(line 115)
$this->priority ??= $dispatcher->getListenerPriority($eventName, $this->listener);$e = $this->stopwatch->start($this->name, 'event_listener');try {($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/event-dispatcher/EventDispatcher.php
->
__invoke
(line 206)
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 56)
} else {$listeners = $this->getListeners($eventName);}if ($listeners) {$this->callListeners($listeners, $eventName, $event);}return $event;}
in
vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php
->
dispatch
(line 129)
try {$this->beforeDispatch($eventName, $event);try {$e = $this->stopwatch->start($eventName, 'section');try {$this->dispatcher->dispatch($event, $eventName);} finally {if ($e->isStarted()) {$e->stop();}}
in
vendor/symfony/http-kernel/HttpKernel.php
->
dispatch
(line 188)
$response = $controller(...$arguments);// viewif (!$response instanceof Response) {$event = new ViewEvent($this, $request, $type, $response, $event);$this->dispatcher->dispatch($event, KernelEvents::VIEW);if ($event->hasResponse()) {$response = $event->getResponse();} else {$msg = \sprintf('The controller must return a "Symfony\Component\HttpFoundation\Response" object but it returned %s.', $this->varToString($response));
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 34)
) {}public function run(): int{$response = $this->kernel->handle($this->request);$response->send(false);if (\function_exists('fastcgi_finish_request') && !$this->debug) {fastcgi_finish_request();
in
vendor/autoload_runtime.php
->
run
(line 32)
$app = $app(...$args);exit($runtime->getRunner($app)->run());
require_once('/home/wapcasplus.org/siteFiles/vendor/autoload_runtime.php')
in
/home/wapcasplus.org/public_html/index.php
(line 5)
<?phpuse App\Kernel;require_once dirname(__DIR__).'/siteFiles/vendor/autoload_runtime.php';return function (array $context) {return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);};
Stack Trace
|
RuntimeError
|
|---|
Twig\Error\RuntimeError:
Neither the property "parentId" nor one of the methods "parentId()", "getparentId()", "isparentId()", "hasparentId()" or "__call()" exist and have public access in class "Boab\CmsBundle\Entity\Article" in "standard_tpl.html.twig" at line 34.
at templates/standard_tpl.html.twig:34
at Twig\Extension\CoreExtension::getAttribute()
(var/cache/dev/twig/5b/5bbc3bd8f898b438cad17201e6fbab91.php:157)
at __TwigTemplate_cb82950e5f6f96521263ee73ae079d17->block_post_sidebar()
(vendor/twig/twig/src/Template.php:458)
at Twig\Template->yieldBlock()
(var/cache/dev/twig/5b/5bbc3bd8f898b438cad17201e6fbab91.php:100)
at __TwigTemplate_cb82950e5f6f96521263ee73ae079d17->block_page_container()
(vendor/twig/twig/src/Template.php:458)
at Twig\Template->yieldBlock()
(var/cache/dev/twig/76/7684a98edb977b9acbd15d807b479a7c.php:372)
at __TwigTemplate_91edd8dc600b8fe5dda749d0c2e03c8b->doDisplay()
(vendor/twig/twig/src/Template.php:411)
at Twig\Template->yield()
(var/cache/dev/twig/ee/ee15da541d14ee4c526b9a2e43d2e590.php:54)
at __TwigTemplate_cb28444108e52a28b64daee1f832ff3c->doDisplay()
(vendor/twig/twig/src/Template.php:411)
at Twig\Template->yield()
(var/cache/dev/twig/5b/5bbc3bd8f898b438cad17201e6fbab91.php:59)
at __TwigTemplate_cb82950e5f6f96521263ee73ae079d17->doDisplay()
(vendor/twig/twig/src/Template.php:411)
at Twig\Template->yield()
(var/cache/dev/twig/57/5772e098ee04b2db794830a0a05da2ba.php:59)
at __TwigTemplate_b74bbe2ba3868db3c56906c5fafe665c->doDisplay()
(vendor/twig/twig/src/Template.php:411)
at Twig\Template->yield()
(vendor/twig/twig/src/Template.php:366)
at Twig\Template->display()
(vendor/twig/twig/src/Template.php:381)
at Twig\Template->render()
(vendor/twig/twig/src/TemplateWrapper.php:51)
at Twig\TemplateWrapper->render()
(lib/boab/cms-bundle/src/View/View.php:33)
at Boab\CmsBundle\View\View->render()
(lib/boab/cms-bundle/src/View/EventListener/ResponseListener.php:28)
at Boab\CmsBundle\View\EventListener\ResponseListener->onKernelView()
(vendor/symfony/event-dispatcher/Debug/WrappedListener.php:115)
at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
(vendor/symfony/event-dispatcher/EventDispatcher.php:206)
at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
(vendor/symfony/event-dispatcher/EventDispatcher.php:56)
at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
(vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:129)
at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
(vendor/symfony/http-kernel/HttpKernel.php:188)
at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
(vendor/symfony/http-kernel/HttpKernel.php:76)
at Symfony\Component\HttpKernel\HttpKernel->handle()
(vendor/symfony/http-kernel/Kernel.php:193)
at Symfony\Component\HttpKernel\Kernel->handle()
(vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:34)
at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
(vendor/autoload_runtime.php:32)
at require_once('/home/wapcasplus.org/siteFiles/vendor/autoload_runtime.php')
(/home/wapcasplus.org/public_html/index.php:5)
|