office.address.zipCode ~ ' ' ~ office.address.city,
office.address.country|country_label
]|join('<br/>')|raw }}
</div>
<div class="mrc_phone">
<a href="tel:{{ office.contact.phone }}">{{ office.contact.phone }}</a>
</div>
{% if webCallBackEnabled %}
<div class="mrc_call_back">
<a href="{{ 'webcallback.contact.etre_rappele.lien.url'| trans }}"
target="_blank"
echo "
</div>
<div class=\"mrc_phone\">
<a href=\"tel:";
// line 24
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["office"]) || array_key_exists("office", $context) ? $context["office"] : (function () { throw new RuntimeError('Variable "office" does not exist.', 24, $this->source); })()), "contact", [], "any", false, false, false, 24), "phone", [], "any", false, false, false, 24), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["office"]) || array_key_exists("office", $context) ? $context["office"] : (function () { throw new RuntimeError('Variable "office" does not exist.', 24, $this->source); })()), "contact", [], "any", false, false, false, 24), "phone", [], "any", false, false, false, 24), "html", null, true);
echo "</a>
</div>
";
}
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();
}
$this->template = $template;
}
public function render(array $context = []): string
{
return $this->template->render($context);
}
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 cannot 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.
*/
foreach ($commonParameters as $key => $value) {
if (!isset($parameters[$key])) {
$parameters[$key] = $value;
}
}
return parent::renderView($view, $parameters);
}
/**
* @return mixed
*/
{
$officesData = [];
foreach ($this->emd->getOffices() as $office) {
$officesData[] = [
'card' => $this->renderView('implantations/result-card.html.twig', ['office' => $office]),
'geocode' => $office->getAddress()->getLeafletGeocode(),
'country' => $office->getAddress()->getCountry(),
'legalentities' => $office->getEntities(),
];
}
$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);
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
$this->requestStack->push($request);
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;
}
}
Request::setTrustedHosts([$trustedHosts]);
}
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
No log messages
RuntimeError
|
---|
Twig\Error\RuntimeError: Impossible to access an attribute ("phone") on a null variable. at templates/implantations/result-card.html.twig:24 at twig_get_attribute(object(Environment), object(Source), null, 'phone', array(), 'any', false, false, false, 24) (var/cache/prep/twig/9a/9aa7bb517ea9865a1bb52190951e5bf0.php:68) at __TwigTemplate_52c30209e4818c78ac3c7ac2e5d7c2f2->doDisplay(array('office' => object(Office), 'content' => array(), 'defaultContent' => array(), 'languages' => array(object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage)), 'locale' => object(CountryLanguage), 'footer' => array('shortcuts' => array(array('href' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'target' => '_blank', 'label' => '03acceder_aux_certificats'), array('href' => '/fr/implantations', 'label' => '04nos_bureaux')), 'buttons' => array(array('href' => '/fr/contact', 'class' => 'stdGreenBtn btnContact', 'label' => '05contactez-nous'), array('href' => '/fr/carriere', 'class' => 'stdGreyBtn btnRejoindre', 'label' => '06envie_de_nous_rejoindre')), 'flatpages' => array(array('href' => 'mentions_legales', 'label' => '07mention_legales'), array('href' => 'condition_utilisation', 'label' => '08condition_utilisation'), array('href' => 'politique_protection_donnees', 'label' => '09protection_des_donnees'), array('href' => 'politique_cookies', 'label' => '10politique_cookies'), array('href' => 'references_abusives', 'label' => '11references_abusives')), 'flatpages_extra' => array()), 'webcertificat_url' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'header' => array('display_menu' => true), 'act_login_page' => 'https://clients.ecocert.com/?userLogin={login}', 'app' => object(AppVariable), 'maintenanceEcert' => object(EcertMaintenanceService), 'defaultImageCertificationHeader' => 'https://api-re7.azurewebsites.net/emd/images/04_header.jpg', 'gmapApiKey' => 'AIzaSyCKesCD1M1TuA_BnwjxMVkOxr8MQMthVew', 'webCallBackEnabled' => false), array()) (vendor/twig/twig/src/Template.php:394) at Twig\Template->displayWithErrorHandling(array('office' => object(Office), 'content' => array(), 'defaultContent' => array(), 'languages' => array(object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage)), 'locale' => object(CountryLanguage), 'footer' => array('shortcuts' => array(array('href' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'target' => '_blank', 'label' => '03acceder_aux_certificats'), array('href' => '/fr/implantations', 'label' => '04nos_bureaux')), 'buttons' => array(array('href' => '/fr/contact', 'class' => 'stdGreenBtn btnContact', 'label' => '05contactez-nous'), array('href' => '/fr/carriere', 'class' => 'stdGreyBtn btnRejoindre', 'label' => '06envie_de_nous_rejoindre')), 'flatpages' => array(array('href' => 'mentions_legales', 'label' => '07mention_legales'), array('href' => 'condition_utilisation', 'label' => '08condition_utilisation'), array('href' => 'politique_protection_donnees', 'label' => '09protection_des_donnees'), array('href' => 'politique_cookies', 'label' => '10politique_cookies'), array('href' => 'references_abusives', 'label' => '11references_abusives')), 'flatpages_extra' => array()), 'webcertificat_url' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'header' => array('display_menu' => true), 'act_login_page' => 'https://clients.ecocert.com/?userLogin={login}', 'app' => object(AppVariable), 'maintenanceEcert' => object(EcertMaintenanceService), 'defaultImageCertificationHeader' => 'https://api-re7.azurewebsites.net/emd/images/04_header.jpg', 'gmapApiKey' => 'AIzaSyCKesCD1M1TuA_BnwjxMVkOxr8MQMthVew'), array()) (vendor/twig/twig/src/Template.php:367) at Twig\Template->display(array('office' => object(Office), 'content' => array(), 'defaultContent' => array(), 'languages' => array(object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage)), 'locale' => object(CountryLanguage), 'footer' => array('shortcuts' => array(array('href' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'target' => '_blank', 'label' => '03acceder_aux_certificats'), array('href' => '/fr/implantations', 'label' => '04nos_bureaux')), 'buttons' => array(array('href' => '/fr/contact', 'class' => 'stdGreenBtn btnContact', 'label' => '05contactez-nous'), array('href' => '/fr/carriere', 'class' => 'stdGreyBtn btnRejoindre', 'label' => '06envie_de_nous_rejoindre')), 'flatpages' => array(array('href' => 'mentions_legales', 'label' => '07mention_legales'), array('href' => 'condition_utilisation', 'label' => '08condition_utilisation'), array('href' => 'politique_protection_donnees', 'label' => '09protection_des_donnees'), array('href' => 'politique_cookies', 'label' => '10politique_cookies'), array('href' => 'references_abusives', 'label' => '11references_abusives')), 'flatpages_extra' => array()), 'webcertificat_url' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'header' => array('display_menu' => true), 'act_login_page' => 'https://clients.ecocert.com/?userLogin={login}')) (vendor/twig/twig/src/Template.php:379) at Twig\Template->render(array('office' => object(Office), 'content' => array(), 'defaultContent' => array(), 'languages' => array(object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage)), 'locale' => object(CountryLanguage), 'footer' => array('shortcuts' => array(array('href' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'target' => '_blank', 'label' => '03acceder_aux_certificats'), array('href' => '/fr/implantations', 'label' => '04nos_bureaux')), 'buttons' => array(array('href' => '/fr/contact', 'class' => 'stdGreenBtn btnContact', 'label' => '05contactez-nous'), array('href' => '/fr/carriere', 'class' => 'stdGreyBtn btnRejoindre', 'label' => '06envie_de_nous_rejoindre')), 'flatpages' => array(array('href' => 'mentions_legales', 'label' => '07mention_legales'), array('href' => 'condition_utilisation', 'label' => '08condition_utilisation'), array('href' => 'politique_protection_donnees', 'label' => '09protection_des_donnees'), array('href' => 'politique_cookies', 'label' => '10politique_cookies'), array('href' => 'references_abusives', 'label' => '11references_abusives')), 'flatpages_extra' => array()), 'webcertificat_url' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'header' => array('display_menu' => true), 'act_login_page' => 'https://clients.ecocert.com/?userLogin={login}')) (vendor/twig/twig/src/TemplateWrapper.php:38) at Twig\TemplateWrapper->render(array('office' => object(Office), 'content' => array(), 'defaultContent' => array(), 'languages' => array(object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage)), 'locale' => object(CountryLanguage), 'footer' => array('shortcuts' => array(array('href' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'target' => '_blank', 'label' => '03acceder_aux_certificats'), array('href' => '/fr/implantations', 'label' => '04nos_bureaux')), 'buttons' => array(array('href' => '/fr/contact', 'class' => 'stdGreenBtn btnContact', 'label' => '05contactez-nous'), array('href' => '/fr/carriere', 'class' => 'stdGreyBtn btnRejoindre', 'label' => '06envie_de_nous_rejoindre')), 'flatpages' => array(array('href' => 'mentions_legales', 'label' => '07mention_legales'), array('href' => 'condition_utilisation', 'label' => '08condition_utilisation'), array('href' => 'politique_protection_donnees', 'label' => '09protection_des_donnees'), array('href' => 'politique_cookies', 'label' => '10politique_cookies'), array('href' => 'references_abusives', 'label' => '11references_abusives')), 'flatpages_extra' => array()), 'webcertificat_url' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'header' => array('display_menu' => true), 'act_login_page' => 'https://clients.ecocert.com/?userLogin={login}')) (vendor/twig/twig/src/Environment.php:280) at Twig\Environment->render('implantations/result-card.html.twig', array('office' => object(Office), 'content' => array(), 'defaultContent' => array(), 'languages' => array(object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage)), 'locale' => object(CountryLanguage), 'footer' => array('shortcuts' => array(array('href' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'target' => '_blank', 'label' => '03acceder_aux_certificats'), array('href' => '/fr/implantations', 'label' => '04nos_bureaux')), 'buttons' => array(array('href' => '/fr/contact', 'class' => 'stdGreenBtn btnContact', 'label' => '05contactez-nous'), array('href' => '/fr/carriere', 'class' => 'stdGreyBtn btnRejoindre', 'label' => '06envie_de_nous_rejoindre')), 'flatpages' => array(array('href' => 'mentions_legales', 'label' => '07mention_legales'), array('href' => 'condition_utilisation', 'label' => '08condition_utilisation'), array('href' => 'politique_protection_donnees', 'label' => '09protection_des_donnees'), array('href' => 'politique_cookies', 'label' => '10politique_cookies'), array('href' => 'references_abusives', 'label' => '11references_abusives')), 'flatpages_extra' => array()), 'webcertificat_url' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'header' => array('display_menu' => true), 'act_login_page' => 'https://clients.ecocert.com/?userLogin={login}')) (vendor/symfony/framework-bundle/Controller/AbstractController.php:258) at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView('implantations/result-card.html.twig', array('office' => object(Office), 'content' => array(), 'defaultContent' => array(), 'languages' => array(object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage)), 'locale' => object(CountryLanguage), 'footer' => array('shortcuts' => array(array('href' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'target' => '_blank', 'label' => '03acceder_aux_certificats'), array('href' => '/fr/implantations', 'label' => '04nos_bureaux')), 'buttons' => array(array('href' => '/fr/contact', 'class' => 'stdGreenBtn btnContact', 'label' => '05contactez-nous'), array('href' => '/fr/carriere', 'class' => 'stdGreyBtn btnRejoindre', 'label' => '06envie_de_nous_rejoindre')), 'flatpages' => array(array('href' => 'mentions_legales', 'label' => '07mention_legales'), array('href' => 'condition_utilisation', 'label' => '08condition_utilisation'), array('href' => 'politique_protection_donnees', 'label' => '09protection_des_donnees'), array('href' => 'politique_cookies', 'label' => '10politique_cookies'), array('href' => 'references_abusives', 'label' => '11references_abusives')), 'flatpages_extra' => array()), 'webcertificat_url' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'header' => array('display_menu' => true), 'act_login_page' => 'https://clients.ecocert.com/?userLogin={login}')) (src/Controller/AbstractContentController.php:80) at App\Controller\AbstractContentController->renderView('implantations/result-card.html.twig', array('office' => object(Office), 'content' => array(), 'defaultContent' => array(), 'languages' => array(object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage), object(CountryLanguage)), 'locale' => object(CountryLanguage), 'footer' => array('shortcuts' => array(array('href' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'target' => '_blank', 'label' => '03acceder_aux_certificats'), array('href' => '/fr/implantations', 'label' => '04nos_bureaux')), 'buttons' => array(array('href' => '/fr/contact', 'class' => 'stdGreenBtn btnContact', 'label' => '05contactez-nous'), array('href' => '/fr/carriere', 'class' => 'stdGreyBtn btnRejoindre', 'label' => '06envie_de_nous_rejoindre')), 'flatpages' => array(array('href' => 'mentions_legales', 'label' => '07mention_legales'), array('href' => 'condition_utilisation', 'label' => '08condition_utilisation'), array('href' => 'politique_protection_donnees', 'label' => '09protection_des_donnees'), array('href' => 'politique_cookies', 'label' => '10politique_cookies'), array('href' => 'references_abusives', 'label' => '11references_abusives')), 'flatpages_extra' => array()), 'webcertificat_url' => 'https://certificat.ecocert.com/?source=ecocertcom&l=fr', 'header' => array('display_menu' => true), 'act_login_page' => 'https://clients.ecocert.com/?userLogin={login}')) (src/Controller/Web/ImplantationsController.php:16) at App\Controller\Web\ImplantationsController->index() (vendor/symfony/http-kernel/HttpKernel.php:163) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/http-kernel/HttpKernel.php:75) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true) (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) (public/index.php:25) |