exception |
Twig\Error\RuntimeError {#1134
-lineno: 62
-name: "default/contact1.html.twig"
-rawMessage: "Impossible to access an attribute ("type") on a null variable."
-sourcePath: "/var/www/vhosts/modixom.fr/httpdocs/templates/default/contact1.html.twig"
-sourceCode: """
{% extends 'base2.html.twig' %}\n
\n
{% block title %}Hello DefaultController!{% endblock %}\n
\n
{% block body %}\n
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>\n
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />\n
<script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.8/js/select2.min.js" defer></script>\n
<style>\n
.txt-inscription,\n
label {\n
color: #adb9ca;\n
}\n
\n
button {\n
background-color: #adb9ca !important;\n
color: white !important;\n
}\n
\n
button:hover {\n
background-color: #0073CD !important;\n
color: white !important;\n
}\n
\n
.btn-logo {\n
width: 0.1px;\n
opacity: 0;\n
}\n
\n
\n
#pro .style-choix-logo {\n
background-color: #adb9ca;\n
color: white;\n
padding: 0.5em;\n
border-radius: 5px;\n
}\n
\n
#part .style-choix-logo {\n
background-color: #B0DB82 !important;\n
color: white !important;\n
padding: 0.5em;\n
border-radius: 5px;\n
} \n
\n
#part .theme-btn-pro{\n
background-color: #B0DB82 !important;\n
color: white !important;\n
}\n
\n
\n
#pro .theme-btn-pro{\n
background-color: #adb9ca;\n
color: white;\n
}\n
\n
</style>\n
<section class="contact-area page-paddings" style="background-color: white">\n
<div class="container">\n
<div class="row">\n
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">\n
<div class="section-title text-center">\n
<h1 data-watermark="Contact" class="{% if app.user.type == 'part' %}green{% else %}blue{% endif %}">Nous contacter</h1>\n
</div>\n
</div>\n
</div>\n
<div class="row">\n
<div class="col-xl-8 col-lg-10 col-md-10 col-sm-12 col-12 offset-xl-2 offset-lg-1 offset-md-1">\n
<div class="contact-box-main">\n
<div class="row">\n
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">\n
<div class="contact-box">\n
<div class="nft-input-box validate-input" data-validate="Name is required">\n
<span class="label-nft-input">Prénom</span>\n
<input class="nft-input" type="text" name="name" placeholder="">\n
<span class="focus-nft-input"></span>\n
</div>\n
</div>\n
</div>\n
<div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">\n
<div class="contact-box">\n
<div class="nft-input-box validate-input" data-validate="Name is required">\n
<span class="label-nft-input">Nom</span>\n
<input class="nft-input" type="text" name="name" placeholder="">\n
<span class="focus-nft-input"></span>\n
</div>\n
</div>\n
</div>\n
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">\n
<div class="contact-box">\n
<div class="nft-input-box validate-input" data-validate="Name is required">\n
<span class="label-nft-input">E-mail</span>\n
<input class="nft-input" type="email" name="name" placeholder="nom@example.com" required="">\n
<span class="focus-nft-input"></span>\n
</div>\n
</div>\n
</div>\n
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">\n
<div class="contact-box">\n
<div class="nft-input-box validate-input" data-validate="Name is required">\n
<span class="label-nft-input">Téléphone</span>\n
<input class="nft-input" type="phone" name="name" placeholder="06.06.06.06.06" required="">\n
<span class="focus-nft-input"></span>\n
</div>\n
</div>\n
</div>\n
\n
\n
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">\n
<div class="contact-box">\n
<div class="nft-input-box validate-input" data-validate="Name is required">\n
<span class="label-nft-input">Commentaire</span>\n
<input class="nft-input" type="text" name="signaler">\n
<span class="focus-nft-input"></span>\n
</div>\n
</div>\n
</div>\n
<!-- <div class="col-xl-6 col-lg-6 col-md-6 col-sm-12 col-12">\n
<div class="contact-box">\n
<div class="nft-input-box validate-input" data-validate="Name is required">\n
<span class="label-nft-input">What are you contacting us about?</span>\n
<select class="nft-input">\n
<option>List my contract/store</option>\n
<option>Technical Support</option>\n
<option>Business Enquiry</option>\n
<option>Media</option>\n
<option>Pro Services</option>\n
<option>Collaboration</option>\n
</select>\n
<span class="focus-nft-input"></span>\n
</div>\n
</div>\n
</div> -->\n
<div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12">\n
<div class="contact-box text-left" style="margin-top: 25px;">\n
<button class="theme-btn {% if app.user.type == 'part' %}bgreen{% else %}bblue{% endif %}">Envoyer</button>\n
</div>\n
</div>\n
</div>\n
</div>\n
</div>\n
</div>\n
</div>\n
</section>\n
\n
\n
\n
{% endblock %}
"""
#message: "Impossible to access an attribute ("type") on a null variable."
#code: 0
#file: "/var/www/vhosts/modixom.fr/httpdocs/templates/default/contact1.html.twig"
#line: 62
trace: {
/var/www/vhosts/modixom.fr/httpdocs/templates/default/contact1.html.twig:62 {
twig_get_attribute(Environment $env, Source $source, $object, $item, array $arguments = [], $type = 'any', $isDefinedTest = false, $ignoreStrictCheck = false, $sandboxed = false, int $lineno = -1) …
› <div class="section-title text-center">
› <h1 data-watermark="Contact" class="{% if app.user.type == 'part' %}green{% else %}blue{% endif %}">Nous contacter</h1>
› </div>
}
/var/www/vhosts/modixom.fr/httpdocs/templates/default/contact1.html.twig:62 {
__TwigTemplate_ebf7a1230bb4efd4e2cf521c3dd4d5d93f80d2477e905583b0e345eaed097594->block_body($context, array $blocks = []) …
› <div class="section-title text-center">
› <h1 data-watermark="Contact" class="{% if app.user.type == 'part' %}green{% else %}blue{% endif %}">Nous contacter</h1>
› </div>
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/twig/twig/src/Template.php:171 {
Twig\Template->displayBlock($name, array $context, array $blocks = [], $useBlocks = true, self $templateContext = null) …
› try {
› $template->$block($context, $blocks);
› } catch (Error $e) {
}
/var/www/vhosts/modixom.fr/httpdocs/templates/base2.html.twig:300 {
__TwigTemplate_b38e5a0cf68791e9ff607eba122be443ad71efa505ac2e00ea380757512a3866->doDisplay(array $context, array $blocks = []) …
› </header>
› {% block body %}{% endblock %}
›
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/twig/twig/src/Template.php:394 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/twig/twig/src/Template.php:367 {
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
}
/var/www/vhosts/modixom.fr/httpdocs/var/cache/dev/twig/1c/1cd0ca73140f1d8ed14b14faa73be97fb927e28779d590da7be001f1b32f6a63.php:49 {
__TwigTemplate_ebf7a1230bb4efd4e2cf521c3dd4d5d93f80d2477e905583b0e345eaed097594->doDisplay(array $context, array $blocks = []) …
› $this->parent = $this->loadTemplate("base2.html.twig", "default/contact1.html.twig", 1);
› $this->parent->display($context, array_merge($this->blocks, $blocks));
›
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/twig/twig/src/Template.php:394 {
Twig\Template->displayWithErrorHandling(array $context, array $blocks = []) …
› try {
› $this->doDisplay($context, $blocks);
› } catch (Error $e) {
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/twig/twig/src/Template.php:367 {
Twig\Template->display(array $context, array $blocks = []) …
› {
› $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks, $blocks));
› }
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/twig/twig/src/Template.php:379 {
Twig\Template->render(array $context) …
› try {
› $this->display($context);
› } catch (\Throwable $e) {
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/twig/twig/src/TemplateWrapper.php:40 {
Twig\TemplateWrapper->render(array $context = []): string …
› // as it should only be used by internal code
› return $this->template->render($context, \func_get_args()[1] ?? []);
› }
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/twig/twig/src/Environment.php:280 {
Twig\Environment->render($name, array $context = []): string …
› {
› return $this->load($name)->render($context);
› }
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/symfony/framework-bundle/Controller/AbstractController.php:258 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView(string $view, array $parameters = []): string …
›
› return $this->container->get('twig')->render($view, $parameters);
› }
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/symfony/framework-bundle/Controller/AbstractController.php:266 {
Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render(string $view, array $parameters = [], Response $response = null): Response …
› {
› $content = $this->renderView($view, $parameters);
›
}
/var/www/vhosts/modixom.fr/httpdocs/src/Controller/DefaultController.php:985 {
App\Controller\DefaultController->contact1(Request $request, AlertesRepository $alertesRepository, CategoriesRepository $categoriesRepository): Response …
› 'alertes' => $alertes,
› 'categories' => $categories,
› ]);
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/symfony/http-kernel/HttpKernel.php:163 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/symfony/http-kernel/HttpKernel.php:75 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/symfony/http-kernel/Kernel.php:202 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
› {
› $response = $this->kernel->handle($this->request);
› $response->send();
}
/var/www/vhosts/modixom.fr/httpdocs/vendor/autoload_runtime.php:35 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/var/www/vhosts/modixom.fr/httpdocs/public/index.php:5 {
›
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
›
arguments: {
"/var/www/vhosts/modixom.fr/httpdocs/vendor/autoload_runtime.php"
}
}
}
} |