<div class="form-check mb-4">
<input type="checkbox" class="custom-control-input" id="filter-local-only" name="localonly" value="1">
<label class="custom-control-label" for="filter-local-only">{{ "Local events only"|trans }}</label>
</div>
</div>
<p id="user-country" class="text-muted">{{ "Events in %countryname%"|trans({"%countryname%" : userLocation['country'].name}) }} <span class="flag flag-{{userLocation['country'].code|lower}} ml-2"></span></p>
{% endif %}
<div id="filter-country-container" class="mt-4">
<label for="country">{{ "Country"|trans }}</label>
<select id="country" class="select2" name="country" data-sort-options="1">
<option value=""> </option>
echo "</label>
</div>
</div>
<p id=\"user-country\" class=\"text-muted\">";
// line 147
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Events in %countryname%", ["%countryname%" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["userLocation"]) || array_key_exists("userLocation", $context) ? $context["userLocation"] : (function () { throw new RuntimeError('Variable "userLocation" does not exist.', 147, $this->source); })()), "country", [], "array", false, false, false, 147), "name", [], "any", false, false, false, 147)]), "html", null, true);
echo " <span class=\"flag flag-";
echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["userLocation"]) || array_key_exists("userLocation", $context) ? $context["userLocation"] : (function () { throw new RuntimeError('Variable "userLocation" does not exist.', 147, $this->source); })()), "country", [], "array", false, false, false, 147), "code", [], "any", false, false, false, 147)), "html", null, true);
echo " ml-2\"></span></p>
";
}
// line 6
$context["pagetitle"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Events");
}
// line 1
$this->parent = $this->loadTemplate("Global/layout.html.twig", "Front/Event/events.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
protected function render(string $view, array $parameters = [], Response $response = null): Response
{
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".');
}
$events = $paginator->paginate($services->getEvents(array("category" => $categorySlug, 'keyword' => $keyword, 'localonly' => $localonly, 'country' => $country, 'location' => $location, 'startdate' => $startdate, 'pricemin' => $pricemin, 'pricemax' => $pricemax, 'audience' => $audience, 'organizer' => $organizer, 'freeonly' => $freeonly, 'onlineonly' => $onlineonly))->getQuery(), $request->query->getInt('page', 1), $services->getSetting("events_per_page"), array('wrap-queries' => true));
return $this->render('Front/Event/events.html.twig', [
'events' => $events,
'category' => $category,
]);
}
/**
* @Route("/event/{slug}", name="event")
$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) {
No log messages
RuntimeError |
---|
Twig\Error\RuntimeError: Impossible to access an attribute ("name") on a null variable. at templates/Front/Event/events.html.twig:147 at twig_get_attribute(object(Environment), object(Source), null, 'name', array(), 'any', false, false, false, 147) (var/cache/prod/twig/5c/5c770fecc29b2cfbeca6b43119b3faffa45b8d046a6d2365c08233f916597bf9.php:407) at __TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d->block_content(array('events' => object(SlidingPagination), 'app' => object(AppVariable), 'services' => object(AppServices), 'locales' => 'en|fr|', 'google_maps_api_key' => '', 'date_format' => 'eee dd MMM y, h:mm a z', 'date_format_date_only' => 'D j M Y', 'date_timezone' => 'America/Edmonton', 'pagetitle' => 'Events', 'navigation' => array(array('current' => 'Events')), 'eventsoncalendar' => array(array('title' => 'Bright Tulip', 'start' => '2024-04-19 19:00', 'end' => '2024-04-19 21:00', 'url' => '/en/event/bright-tulip-1'), array('title' => 'Pink Galoshes', 'start' => '2024-04-25 18:00', 'end' => '2024-04-25 20:00', 'url' => '/en/event/pink-galoshes'), array('title' => 'Daisy Buzz', 'start' => '2024-05-09 19:00', 'end' => '2024-05-09 21:00', 'url' => '/en/event/daisy-buzz'), array('title' => 'Swingin\' Spring Gnome', 'start' => '2024-05-24 18:00', 'end' => '2024-05-24 20:00', 'url' => '/en/event/swingin-spring-gnome'), array('title' => 'Lilac Sunset', 'start' => '2024-05-30 19:00', 'end' => '2024-05-30 21:00', 'url' => '/en/event/lilac-sunset')), 'eventsonmap' => array(), 'category' => 'all', 'userLocation' => array('record' => object(City), 'country' => null)), array('title' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_title'), 'meta_dynamic_seo' => array(object(__TwigTemplate_f41a6d611268ccd448a1ed541ad620143c058c99d695113c5ff16345a3a8a15a), 'block_meta_dynamic_seo'), 'stylesheets' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_stylesheets'), 'content' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_content'), 'javascripts' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:184) at Twig\Template->displayBlock('content', array('events' => object(SlidingPagination), 'category' => 'all', 'app' => object(AppVariable), 'services' => object(AppServices), 'locales' => 'en|fr|', 'google_maps_api_key' => '', 'date_format' => 'eee dd MMM y, h:mm a z', 'date_format_date_only' => 'D j M Y', 'date_timezone' => 'America/Edmonton', 'pagetitle' => 'Events'), array('title' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_title'), 'meta_dynamic_seo' => array(object(__TwigTemplate_f41a6d611268ccd448a1ed541ad620143c058c99d695113c5ff16345a3a8a15a), 'block_meta_dynamic_seo'), 'stylesheets' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_stylesheets'), 'content' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_content'), 'javascripts' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_javascripts'))) (var/cache/prod/twig/16/1637cd045091c321876910b42a3eb2397a1d7ec8672003e91c14173774f3be00.php:234) at __TwigTemplate_f41a6d611268ccd448a1ed541ad620143c058c99d695113c5ff16345a3a8a15a->doDisplay(array('events' => object(SlidingPagination), 'category' => 'all', 'app' => object(AppVariable), 'services' => object(AppServices), 'locales' => 'en|fr|', 'google_maps_api_key' => '', 'date_format' => 'eee dd MMM y, h:mm a z', 'date_format_date_only' => 'D j M Y', 'date_timezone' => 'America/Edmonton', 'pagetitle' => 'Events'), array('title' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_title'), 'meta_dynamic_seo' => array(object(__TwigTemplate_f41a6d611268ccd448a1ed541ad620143c058c99d695113c5ff16345a3a8a15a), 'block_meta_dynamic_seo'), 'stylesheets' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_stylesheets'), 'content' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_content'), 'javascripts' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:407) at Twig\Template->displayWithErrorHandling(array('events' => object(SlidingPagination), 'category' => 'all', 'app' => object(AppVariable), 'services' => object(AppServices), 'locales' => 'en|fr|', 'google_maps_api_key' => '', 'date_format' => 'eee dd MMM y, h:mm a z', 'date_format_date_only' => 'D j M Y', 'date_timezone' => 'America/Edmonton', 'pagetitle' => 'Events'), array('title' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_title'), 'meta_dynamic_seo' => array(object(__TwigTemplate_f41a6d611268ccd448a1ed541ad620143c058c99d695113c5ff16345a3a8a15a), 'block_meta_dynamic_seo'), 'stylesheets' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_stylesheets'), 'content' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_content'), 'javascripts' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:380) at Twig\Template->display(array('events' => object(SlidingPagination), 'category' => 'all', 'app' => object(AppVariable), 'services' => object(AppServices), 'locales' => 'en|fr|', 'google_maps_api_key' => '', 'date_format' => 'eee dd MMM y, h:mm a z', 'date_format_date_only' => 'D j M Y', 'date_timezone' => 'America/Edmonton', 'pagetitle' => 'Events'), array('title' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_stylesheets'), 'content' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_content'), 'javascripts' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_javascripts'))) (var/cache/prod/twig/5c/5c770fecc29b2cfbeca6b43119b3faffa45b8d046a6d2365c08233f916597bf9.php:57) at __TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d->doDisplay(array('events' => object(SlidingPagination), 'category' => 'all', 'app' => object(AppVariable), 'services' => object(AppServices), 'locales' => 'en|fr|', 'google_maps_api_key' => '', 'date_format' => 'eee dd MMM y, h:mm a z', 'date_format_date_only' => 'D j M Y', 'date_timezone' => 'America/Edmonton', 'pagetitle' => 'Events'), array('title' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_stylesheets'), 'content' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_content'), 'javascripts' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:407) at Twig\Template->displayWithErrorHandling(array('events' => object(SlidingPagination), 'category' => 'all', 'app' => object(AppVariable), 'services' => object(AppServices), 'locales' => 'en|fr|', 'google_maps_api_key' => '', 'date_format' => 'eee dd MMM y, h:mm a z', 'date_format_date_only' => 'D j M Y', 'date_timezone' => 'America/Edmonton'), array('title' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_title'), 'stylesheets' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_stylesheets'), 'content' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_content'), 'javascripts' => array(object(__TwigTemplate_e72dfabdbb1a0f7270c23cd447764cfccc803eb50cec32774752c9b667dbe59d), 'block_javascripts'))) (vendor/twig/twig/src/Template.php:380) at Twig\Template->display(array('events' => object(SlidingPagination), 'category' => 'all')) (vendor/twig/twig/src/Template.php:392) at Twig\Template->render(array('events' => object(SlidingPagination), 'category' => 'all')) (vendor/symfony/twig-bridge/TwigEngine.php:54) at Symfony\Bridge\Twig\TwigEngine->render('Front/Event/events.html.twig', array('events' => object(SlidingPagination), 'category' => 'all')) (vendor/symfony/framework-bundle/Controller/ControllerTrait.php:233) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render('Front/Event/events.html.twig', array('events' => object(SlidingPagination), 'category' => 'all')) (src/Controller/Front/EventController.php:44) at App\Controller\Front\EventController->events(object(Request), object(Paginator), object(AppServices), object(Translator)) (vendor/symfony/http-kernel/HttpKernel.php:158) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:80) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:201) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:25) |