<div class="container-fluid px-0">
<div class="row g-0 align-items-center h-100">
<!-- Image -->
<div class="col-12 col-sm-4">
{% if mandate.user.photo %}
<figure>
<picture class="lazy">
<img src="https://www.visimo.fr/storage/users/1270_800/{{ mandate.user.photo }}" alt="Lorem ipsum" class="img-fluid h-400-px fit-image w-100"></data-img>
</picture>
<figcaption>© Visimo</figcaption>
<div class=\"row g-0 align-items-center h-100\">
<!-- Image -->
<div class=\"col-12 col-sm-4\">
";
// line 626
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["mandate"]) || array_key_exists("mandate", $context) ? $context["mandate"] : (function () { throw new RuntimeError('Variable "mandate" does not exist.', 626, $this->source); })()), "user", [], "any", false, false, false, 626), "photo", [], "any", false, false, false, 626)) {
// line 627
echo " <figure>
<picture class=\"lazy\">
<img src=\"https://www.visimo.fr/storage/users/1270_800/";
// line 629
throw new \LogicException('A block must be a method on a \Twig\Template instance.');
}
if (null !== $template) {
try {
$template->$block($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($template->getSourceContext());
}
";
// line 32
$this->displayBlock('menu', $context, $blocks);
// line 169
echo " ";
$this->displayBlock('body', $context, $blocks);
// line 170
echo " ";
$this->displayBlock('footer', $context, $blocks);
// line 298
echo " </body>
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
$macros = $this->macros;
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "mandate.html.twig"));
$this->parent = $this->loadTemplate("base_white.html.twig", "mandate.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
}
protected function displayWithErrorHandling(array $context, array $blocks = [])
{
try {
$this->doDisplay($context, $blocks);
} catch (Error $e) {
if (!$e->getSourceContext()) {
$e->setSourceContext($this->getSourceContext());
}
return $this->blocks;
}
public function display(array $context, array $blocks = [])
{
$this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
}
public function render(array $context)
{
$level = ob_get_level();
ob_start();
} else {
ob_start(function () { return ''; });
}
try {
$this->display($context);
} catch (\Throwable $e) {
while (ob_get_level() > $level) {
ob_end_clean();
}
public function render(array $context = []): string
{
// using func_get_args() allows to not expose the blocks argument
// as it should only be used by internal code
return $this->template->render($context, \func_get_args()[1] ?? []);
}
public function display(array $context = [])
{
// using func_get_args() allows to not expose the blocks argument
* @throws SyntaxError When an error occurred during compilation
* @throws RuntimeError When an error occurred during rendering
*/
public function render($name, array $context = []): string
{
return $this->load($name)->render($context);
}
/**
* Displays a template.
*
{
if (!$this->container->has('twig')) {
throw new \LogicException('You can not use the "renderView" method if the Twig Bundle is not available. Try running "composer require symfony/twig-bundle".');
}
return $this->container->get('twig')->render($view, $parameters);
}
/**
* Renders a view.
*/
/**
* Renders a view.
*/
protected function render(string $view, array $parameters = [], Response $response = null): Response
{
$content = $this->renderView($view, $parameters);
if (null === $response) {
$response = new Response();
}
{
$mandate = $this->visimoService->simplified->getMandate($id);
$menus = $this->visimoService->getMenus();
$texts = $this->visimoService->translations->getCurrentPage();
$area = $this->visimoService->areas->getCurrentArea();
return $this->render('mandate.html.twig', ['mandate' => $mandate, 'menus' => $menus, 'googlemaps_key' => 'AIzaSyDxCcXapo0pEsJ8s15Zh_gUIvdN5-xN8ow', 'area_class' => $area['ar_class'], 'texts'=>$texts]);
}
/**
* @Route("/video/{id}", name="video")
*/
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
$this->boot();
++$this->requestStackSize;
$this->resetServices = true;
try {
return $this->getHttpKernel()->handle($request, $type, $catch);
} finally {
--$this->requestStackSize;
}
}
$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);
}
$app = $app(...$args);
exit(
$runtime
->getRunner($app)
->run()
);
<?php
use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
};
No log messages
RuntimeError
|
---|
Twig\Error\RuntimeError: Neither the property "photo" nor one of the methods "photo()", "getphoto()"/"isphoto()"/"hasphoto()" or "__call()" exist and have public access in class "App\Services\Visimo\user". at templates/mandate.html.twig:626 at twig_get_attribute() (var/cache/prod/twig/22/22162d29c3f818d03d14a455556b3535e622613021cdabd0cc128e5b24953a93.php:1698) at __TwigTemplate_6b93bd51fe7415847def2246b76441b892f86aa13dcb487dc84eacc3414a52e7->block_body() (vendor/twig/twig/src/Template.php:171) at Twig\Template->displayBlock() (var/cache/prod/twig/4b/4b176903e7f0e3e8e9a9034c0106c881bb637c6f792ea9760a509cfefd74f4dc.php:97) at __TwigTemplate_50d4ffaf9e9f5aba044087e1fc7176d12267d7133fc509e9d13668b5c3110255->doDisplay() (vendor/twig/twig/src/Template.php:394) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:367) at Twig\Template->display() (var/cache/prod/twig/22/22162d29c3f818d03d14a455556b3535e622613021cdabd0cc128e5b24953a93.php:45) at __TwigTemplate_6b93bd51fe7415847def2246b76441b892f86aa13dcb487dc84eacc3414a52e7->doDisplay() (vendor/twig/twig/src/Template.php:394) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:367) at Twig\Template->display() (vendor/twig/twig/src/Template.php:379) at Twig\Template->render() (vendor/twig/twig/src/TemplateWrapper.php:40) at Twig\TemplateWrapper->render() (vendor/twig/twig/src/Environment.php:277) at Twig\Environment->render() (vendor/symfony/framework-bundle/Controller/AbstractController.php:251) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView() (vendor/symfony/framework-bundle/Controller/AbstractController.php:259) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (src/Controller/RootController.php:127) at App\Controller\RootController->mandate() (vendor/symfony/http-kernel/HttpKernel.php:156) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:78) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:199) at Symfony\Component\HttpKernel\Kernel->handle() (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:37) at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() (vendor/autoload_runtime.php:35) at require_once('/home/visimo.fr/vhosts/www/visimo-website/vendor/autoload_runtime.php') (public/index.php:5) |