<img class="header-image" src="{{ image }}" style="width:100%; max-height:600px; height:auto" >
</div>
<h2>{{ title }}</h2>
<table>
<tr>
<td width="50%"><span class="fa fa-clock-o" style="color:darkorange"></span> {{ date }}</td>
<td><span class="fa fa-map-marker"></span> {{ location }}</td>
</tr>
</table>
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 43, $this->source); })()), "session", [], "any", false, false, false, 43), "get", [0 => "current_location"], "method", false, false, false, 43), ["_locale" => "en"]);
echo "\" id=\"en\">EN</a>
</div>
";
// line 45
$this->displayBlock('body', $context, $blocks);
// line 47
echo " ";
echo twig_include($this->env, $context, "footer.html.twig");
echo "
\t \t<script>
$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", "activities/single-post.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "activities/single-post.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
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
if ($this->container->has('templating')) {
@trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.', E_USER_DEPRECATED);
$content = $this->container->get('templating')->render($view, $parameters);
} elseif ($this->container->has('twig')) {
$content = $this->container->get('twig')->render($view, $parameters);
} else {
throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
}
if (null === $response) {
$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, $type = HttpKernelInterface::MASTER_REQUEST, $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) {
echo "</h2>
\t\t<table>
\t\t\t<tr>
\t\t\t\t<td width=\"50%\"><span class=\"fa fa-clock-o\" style=\"color:darkorange\"></span> ";
// line 15
echo twig_escape_filter($this->env, (isset($context["date"]) || array_key_exists("date", $context) ? $context["date"] : (function () { throw new RuntimeError('Variable "date" does not exist.', 15, $this->source); })()), "html", null, true);
echo "</td>
\t\t\t\t<td><span class=\"fa fa-map-marker\"></span> ";
// line 16
echo twig_escape_filter($this->env, (isset($context["location"]) || array_key_exists("location", $context) ? $context["location"] : (function () { throw new RuntimeError('Variable "location" does not exist.', 16, $this->source); })()), "html", null, true);
echo "</td>
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 43, $this->source); })()), "session", [], "any", false, false, false, 43), "get", [0 => "current_location"], "method", false, false, false, 43), ["_locale" => "en"]);
echo "\" id=\"en\">EN</a>
</div>
";
// line 45
$this->displayBlock('body', $context, $blocks);
// line 47
echo " ";
echo twig_include($this->env, $context, "footer.html.twig");
echo "
\t \t<script>
$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", "activities/single-post.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "activities/single-post.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
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
if ($this->container->has('templating')) {
@trigger_error('Using the "templating" service is deprecated since version 4.3 and will be removed in 5.0; use Twig instead.', E_USER_DEPRECATED);
$content = $this->container->get('templating')->render($view, $parameters);
} elseif ($this->container->has('twig')) {
$content = $this->container->get('twig')->render($view, $parameters);
} else {
throw new \LogicException('You can not use the "render" method if the Templating Component or the Twig Bundle are not available. Try running "composer require symfony/twig-bundle".');
}
if (null === $response) {
$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, $type = HttpKernelInterface::MASTER_REQUEST, $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) {
[2/2] RuntimeError |
---|
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("Warning: Array to string conversion"). at templates/activities/single-post.html.twig:15 at Twig\Template->displayBlock() (var/cache/dev/twig/b1/b1e13bd8304512178b3f5fa6ec8837d56f537763a844a76d16a4d93391df71b9.php:122) at __TwigTemplate_261d14ec27ef054e42b73468b4b96bda5ead731eac7dacd49d28ec9a023aaa2b->doDisplay() (vendor/twig/twig/src/Template.php:396) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:369) at Twig\Template->display() (var/cache/dev/twig/0e/0ed2025e4f0dfe2e39ac4558f290668047b27a18c8e087f65f89ca2973b23def.php:45) at __TwigTemplate_526a3ed8ffcf9353badedad0d44091afb44bf11fe71f175d9bf8736e8dd25739->doDisplay() (vendor/twig/twig/src/Template.php:396) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:369) at Twig\Template->display() (vendor/twig/twig/src/Template.php:381) 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/ControllerTrait.php:235) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (src/Controller/ActivitiesController.php:172) at App\Controller\ActivitiesController->goToSinglePost() (vendor/symfony/http-kernel/HttpKernel.php:146) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |
[1/2] ErrorException |
---|
ErrorException: Warning: Array to string conversion at var/cache/dev/twig/0e/0ed2025e4f0dfe2e39ac4558f290668047b27a18c8e087f65f89ca2973b23def.php:76 at __TwigTemplate_526a3ed8ffcf9353badedad0d44091afb44bf11fe71f175d9bf8736e8dd25739->block_body() (vendor/twig/twig/src/Template.php:173) at Twig\Template->displayBlock() (var/cache/dev/twig/b1/b1e13bd8304512178b3f5fa6ec8837d56f537763a844a76d16a4d93391df71b9.php:122) at __TwigTemplate_261d14ec27ef054e42b73468b4b96bda5ead731eac7dacd49d28ec9a023aaa2b->doDisplay() (vendor/twig/twig/src/Template.php:396) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:369) at Twig\Template->display() (var/cache/dev/twig/0e/0ed2025e4f0dfe2e39ac4558f290668047b27a18c8e087f65f89ca2973b23def.php:45) at __TwigTemplate_526a3ed8ffcf9353badedad0d44091afb44bf11fe71f175d9bf8736e8dd25739->doDisplay() (vendor/twig/twig/src/Template.php:396) at Twig\Template->displayWithErrorHandling() (vendor/twig/twig/src/Template.php:369) at Twig\Template->display() (vendor/twig/twig/src/Template.php:381) 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/ControllerTrait.php:235) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render() (src/Controller/ActivitiesController.php:172) at App\Controller\ActivitiesController->goToSinglePost() (vendor/symfony/http-kernel/HttpKernel.php:146) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:68) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:25) |