[4/4] InvalidArgumentException: Unable to find template "estaticas/contacto.html.twig".
-
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 128
try {
return $this->environment->loadTemplate((string) $name);
} catch (\Twig_Error_Loader $e) {
throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
}
}
}
-
at
TwigEngine
->load
('estaticas/contacto.html.twig')
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 50*/
public function render($name, array $parameters = array())
{
return $this->load($name)->render($parameters);
}
/**
-
at
TwigEngine
->render
('estaticas/contacto.html.twig', array('modal' => false))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 72public function render($name, array $parameters = array())
{
try {
return parent::render($name, $parameters);
} catch (\Twig_Error $e) {
if ($name instanceof TemplateReference) {
try {
-
at
TwigEngine
->render
('estaticas/contacto.html.twig', array('modal' => false))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 97$response = new Response();
}
$response->setContent($this->render($view, $parameters));
return $response;
}
-
at
TwigEngine
->renderResponse
('estaticas/contacto.html.twig', array('modal' => false), null)
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 185public function render($view, array $parameters = array(), Response $response = null)
{
if ($this->container->has('templating')) {
return $this->container->get('templating')->renderResponse($view, $parameters, $response);
}
if (!$this->container->has('twig')) {
-
at
Controller
->render
('estaticas/contacto.html.twig', array('modal' => false))
in src/AppBundle/Controller/DefaultController.php at line 36public function estaticaAction($pagina)
{
return $this->render('estaticas/'.$pagina.'.html.twig',
array('modal' => false,));
}
public function pageNotFoundAction()
- at DefaultController ->estaticaAction ('contacto')
-
at
call_user_func_array
(array(object(DefaultController), 'estaticaAction'), array('contacto'))
in app/bootstrap.php.cache at line 2698$this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
$controller = $event->getController();
$arguments = $this->resolver->getArguments($request, $controller);
$response = call_user_func_array($controller, $arguments);
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
-
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 2660{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if (false === $catch) {
$this->finishRequest($request, $type);
-
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2811$this->container->enterScope('request');
$this->container->set('request', $request,'request');
try {
$response = parent::handle($request, $type, $catch);
} catch (\Exception $e) {
$this->container->set('request', null,'request');
$this->container->leaveScope('request');
-
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185$this->boot();
}
return $this->getHttpKernel()->handle($request, $type, $catch);
}
/**
-
at
Kernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 487}
// always a "master" request (as the real master request can be in cache)
$response = $this->kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, $catch);
// FIXME: we probably need to also catch exceptions if raw === true
// we don't implement the stale-if-error on Requests, which is nonetheless part of the RFC
-
at
HttpCache
->forward
(object(Request), true, null)
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php at line 60$this->getKernel()->getContainer()->set('cache', $this);
$this->getKernel()->getContainer()->set($this->getSurrogate()->getName(), $this->getSurrogate());
return parent::forward($request, $raw, $entry);
}
/**
-
at
HttpCache
->forward
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 444$subRequest->headers->remove('if_modified_since');
$subRequest->headers->remove('if_none_match');
$response = $this->forward($subRequest, $catch);
if ($response->isCacheable()) {
$this->store($request, $response);
-
at
HttpCache
->fetch
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 344if (null === $entry) {
$this->record($request, 'miss');
return $this->fetch($request, $catch);
}
if (!$this->isFreshEnough($request, $entry)) {
-
at
HttpCache
->lookup
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 210} elseif ($request->headers->has('expect')) {
$response = $this->pass($request, $catch);
} else {
$response = $this->lookup($request, $catch);
}
$this->restoreResponseBody($request, $response);
-
at
HttpCache
->handle
(object(Request))
in app.php at line 30// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
[3/4] Twig_Error_Loader: Unable to find template "estaticas/contacto.html.twig".
-
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php at line 91
}
if (false === $file || null === $file) {
throw new \Twig_Error_Loader(sprintf('Unable to find template "%s".', $logicalName), -1, null, $previous);
}
return $this->cache[$logicalName] = $file;
-
at
FilesystemLoader
->findTemplate
('estaticas/contacto.html.twig')
in vendor/twig/twig/lib/Twig/Loader/Filesystem.php at line 139*/
public function getCacheKey($name)
{
return $this->findTemplate($name);
}
/**
-
at
Twig_Loader_Filesystem
->getCacheKey
('estaticas/contacto.html.twig')
in app/cache/prod/classes.php at line 3711}
public function getTemplateClass($name, $index = null)
{
$key = $this->getLoader()->getCacheKey($name);
$key .= json_encode(array_keys($this->extensions));
$key .= function_exists('twig_template_get_attributes');
return $this->templateClassPrefix.hash('sha256', $key).(null === $index ?'':'_'.$index);
-
at
Twig_Environment
->getTemplateClass
('estaticas/contacto.html.twig', null)
in app/cache/prod/classes.php at line 3731}
public function loadTemplate($name, $index = null)
{
$cls = $this->getTemplateClass($name, $index);
if (isset($this->loadedTemplates[$cls])) {
return $this->loadedTemplates[$cls];
}
-
at
Twig_Environment
->loadTemplate
('estaticas/contacto.html.twig')
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 126}
try {
return $this->environment->loadTemplate((string) $name);
} catch (\Twig_Error_Loader $e) {
throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
}
-
at
TwigEngine
->load
('estaticas/contacto.html.twig')
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 50*/
public function render($name, array $parameters = array())
{
return $this->load($name)->render($parameters);
}
/**
-
at
TwigEngine
->render
('estaticas/contacto.html.twig', array('modal' => false))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 72public function render($name, array $parameters = array())
{
try {
return parent::render($name, $parameters);
} catch (\Twig_Error $e) {
if ($name instanceof TemplateReference) {
try {
-
at
TwigEngine
->render
('estaticas/contacto.html.twig', array('modal' => false))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 97$response = new Response();
}
$response->setContent($this->render($view, $parameters));
return $response;
}
-
at
TwigEngine
->renderResponse
('estaticas/contacto.html.twig', array('modal' => false), null)
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 185public function render($view, array $parameters = array(), Response $response = null)
{
if ($this->container->has('templating')) {
return $this->container->get('templating')->renderResponse($view, $parameters, $response);
}
if (!$this->container->has('twig')) {
-
at
Controller
->render
('estaticas/contacto.html.twig', array('modal' => false))
in src/AppBundle/Controller/DefaultController.php at line 36public function estaticaAction($pagina)
{
return $this->render('estaticas/'.$pagina.'.html.twig',
array('modal' => false,));
}
public function pageNotFoundAction()
- at DefaultController ->estaticaAction ('contacto')
-
at
call_user_func_array
(array(object(DefaultController), 'estaticaAction'), array('contacto'))
in app/bootstrap.php.cache at line 2698$this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
$controller = $event->getController();
$arguments = $this->resolver->getArguments($request, $controller);
$response = call_user_func_array($controller, $arguments);
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
-
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 2660{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if (false === $catch) {
$this->finishRequest($request, $type);
-
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2811$this->container->enterScope('request');
$this->container->set('request', $request,'request');
try {
$response = parent::handle($request, $type, $catch);
} catch (\Exception $e) {
$this->container->set('request', null,'request');
$this->container->leaveScope('request');
-
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185$this->boot();
}
return $this->getHttpKernel()->handle($request, $type, $catch);
}
/**
-
at
Kernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 487}
// always a "master" request (as the real master request can be in cache)
$response = $this->kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, $catch);
// FIXME: we probably need to also catch exceptions if raw === true
// we don't implement the stale-if-error on Requests, which is nonetheless part of the RFC
-
at
HttpCache
->forward
(object(Request), true, null)
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php at line 60$this->getKernel()->getContainer()->set('cache', $this);
$this->getKernel()->getContainer()->set($this->getSurrogate()->getName(), $this->getSurrogate());
return parent::forward($request, $raw, $entry);
}
/**
-
at
HttpCache
->forward
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 444$subRequest->headers->remove('if_modified_since');
$subRequest->headers->remove('if_none_match');
$response = $this->forward($subRequest, $catch);
if ($response->isCacheable()) {
$this->store($request, $response);
-
at
HttpCache
->fetch
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 344if (null === $entry) {
$this->record($request, 'miss');
return $this->fetch($request, $catch);
}
if (!$this->isFreshEnough($request, $entry)) {
-
at
HttpCache
->lookup
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 210} elseif ($request->headers->has('expect')) {
$response = $this->pass($request, $catch);
} else {
$response = $this->lookup($request, $catch);
}
$this->restoreResponseBody($request, $response);
-
at
HttpCache
->handle
(object(Request))
in app.php at line 30// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
[2/4] InvalidArgumentException: Unable to find template "::estaticas/contacto.html.twig" : "The file "views/estaticas/contacto.html.twig" does not exist (in: /home/gest/public_html/app/Resources).".
-
in app/cache/prod/classes.php at line 805
try {
return $this->cache[$key] = $this->locator->locate($template->getPath(), $currentPath);
} catch (\InvalidArgumentException $e) {
throw new \InvalidArgumentException(sprintf('Unable to find template "%s" : "%s".', $template, $e->getMessage()), 0, $e);
}
}
}
-
at
TemplateLocator
->locate
(object(TemplateReference))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php at line 84// for BC
try {
$template = $this->parser->parse($template);
$file = $this->locator->locate($template);
} catch (\Exception $e) {
$previous = $e;
}
-
at
FilesystemLoader
->findTemplate
('estaticas/contacto.html.twig')
in vendor/twig/twig/lib/Twig/Loader/Filesystem.php at line 139*/
public function getCacheKey($name)
{
return $this->findTemplate($name);
}
/**
-
at
Twig_Loader_Filesystem
->getCacheKey
('estaticas/contacto.html.twig')
in app/cache/prod/classes.php at line 3711}
public function getTemplateClass($name, $index = null)
{
$key = $this->getLoader()->getCacheKey($name);
$key .= json_encode(array_keys($this->extensions));
$key .= function_exists('twig_template_get_attributes');
return $this->templateClassPrefix.hash('sha256', $key).(null === $index ?'':'_'.$index);
-
at
Twig_Environment
->getTemplateClass
('estaticas/contacto.html.twig', null)
in app/cache/prod/classes.php at line 3731}
public function loadTemplate($name, $index = null)
{
$cls = $this->getTemplateClass($name, $index);
if (isset($this->loadedTemplates[$cls])) {
return $this->loadedTemplates[$cls];
}
-
at
Twig_Environment
->loadTemplate
('estaticas/contacto.html.twig')
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 126}
try {
return $this->environment->loadTemplate((string) $name);
} catch (\Twig_Error_Loader $e) {
throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
}
-
at
TwigEngine
->load
('estaticas/contacto.html.twig')
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 50*/
public function render($name, array $parameters = array())
{
return $this->load($name)->render($parameters);
}
/**
-
at
TwigEngine
->render
('estaticas/contacto.html.twig', array('modal' => false))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 72public function render($name, array $parameters = array())
{
try {
return parent::render($name, $parameters);
} catch (\Twig_Error $e) {
if ($name instanceof TemplateReference) {
try {
-
at
TwigEngine
->render
('estaticas/contacto.html.twig', array('modal' => false))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 97$response = new Response();
}
$response->setContent($this->render($view, $parameters));
return $response;
}
-
at
TwigEngine
->renderResponse
('estaticas/contacto.html.twig', array('modal' => false), null)
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 185public function render($view, array $parameters = array(), Response $response = null)
{
if ($this->container->has('templating')) {
return $this->container->get('templating')->renderResponse($view, $parameters, $response);
}
if (!$this->container->has('twig')) {
-
at
Controller
->render
('estaticas/contacto.html.twig', array('modal' => false))
in src/AppBundle/Controller/DefaultController.php at line 36public function estaticaAction($pagina)
{
return $this->render('estaticas/'.$pagina.'.html.twig',
array('modal' => false,));
}
public function pageNotFoundAction()
- at DefaultController ->estaticaAction ('contacto')
-
at
call_user_func_array
(array(object(DefaultController), 'estaticaAction'), array('contacto'))
in app/bootstrap.php.cache at line 2698$this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
$controller = $event->getController();
$arguments = $this->resolver->getArguments($request, $controller);
$response = call_user_func_array($controller, $arguments);
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
-
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 2660{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if (false === $catch) {
$this->finishRequest($request, $type);
-
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2811$this->container->enterScope('request');
$this->container->set('request', $request,'request');
try {
$response = parent::handle($request, $type, $catch);
} catch (\Exception $e) {
$this->container->set('request', null,'request');
$this->container->leaveScope('request');
-
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185$this->boot();
}
return $this->getHttpKernel()->handle($request, $type, $catch);
}
/**
-
at
Kernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 487}
// always a "master" request (as the real master request can be in cache)
$response = $this->kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, $catch);
// FIXME: we probably need to also catch exceptions if raw === true
// we don't implement the stale-if-error on Requests, which is nonetheless part of the RFC
-
at
HttpCache
->forward
(object(Request), true, null)
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php at line 60$this->getKernel()->getContainer()->set('cache', $this);
$this->getKernel()->getContainer()->set($this->getSurrogate()->getName(), $this->getSurrogate());
return parent::forward($request, $raw, $entry);
}
/**
-
at
HttpCache
->forward
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 444$subRequest->headers->remove('if_modified_since');
$subRequest->headers->remove('if_none_match');
$response = $this->forward($subRequest, $catch);
if ($response->isCacheable()) {
$this->store($request, $response);
-
at
HttpCache
->fetch
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 344if (null === $entry) {
$this->record($request, 'miss');
return $this->fetch($request, $catch);
}
if (!$this->isFreshEnough($request, $entry)) {
-
at
HttpCache
->lookup
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 210} elseif ($request->headers->has('expect')) {
$response = $this->pass($request, $catch);
} else {
$response = $this->lookup($request, $catch);
}
$this->restoreResponseBody($request, $response);
-
at
HttpCache
->handle
(object(Request))
in app.php at line 30// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
[1/4] InvalidArgumentException: The file "views/estaticas/contacto.html.twig" does not exist (in: /home/gest/public_html/app/Resources).
-
in app/cache/prod/classes.php at line 1692
}
}
if (!$filepaths) {
throw new \InvalidArgumentException(sprintf('The file "%s" does not exist (in: %s).', $name, implode(', ', $paths)));
}
return $filepaths;
}
-
at
FileLocator
->locate
('views/estaticas/contacto.html.twig', null, true)
in app/cache/prod/classes.php at line 2925if (isset($file[0]) &&'@'=== $file[0]) {
return $this->kernel->locateResource($file, $this->path, $first);
}
return parent::locate($file, $currentPath, $first);
}
}
}
-
at
FileLocator
->locate
('views/estaticas/contacto.html.twig', null)
in app/cache/prod/classes.php at line 803return $this->cache[$key];
}
try {
return $this->cache[$key] = $this->locator->locate($template->getPath(), $currentPath);
} catch (\InvalidArgumentException $e) {
throw new \InvalidArgumentException(sprintf('Unable to find template "%s" : "%s".', $template, $e->getMessage()), 0, $e);
}
-
at
TemplateLocator
->locate
(object(TemplateReference))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php at line 84// for BC
try {
$template = $this->parser->parse($template);
$file = $this->locator->locate($template);
} catch (\Exception $e) {
$previous = $e;
}
-
at
FilesystemLoader
->findTemplate
('estaticas/contacto.html.twig')
in vendor/twig/twig/lib/Twig/Loader/Filesystem.php at line 139*/
public function getCacheKey($name)
{
return $this->findTemplate($name);
}
/**
-
at
Twig_Loader_Filesystem
->getCacheKey
('estaticas/contacto.html.twig')
in app/cache/prod/classes.php at line 3711}
public function getTemplateClass($name, $index = null)
{
$key = $this->getLoader()->getCacheKey($name);
$key .= json_encode(array_keys($this->extensions));
$key .= function_exists('twig_template_get_attributes');
return $this->templateClassPrefix.hash('sha256', $key).(null === $index ?'':'_'.$index);
-
at
Twig_Environment
->getTemplateClass
('estaticas/contacto.html.twig', null)
in app/cache/prod/classes.php at line 3731}
public function loadTemplate($name, $index = null)
{
$cls = $this->getTemplateClass($name, $index);
if (isset($this->loadedTemplates[$cls])) {
return $this->loadedTemplates[$cls];
}
-
at
Twig_Environment
->loadTemplate
('estaticas/contacto.html.twig')
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 126}
try {
return $this->environment->loadTemplate((string) $name);
} catch (\Twig_Error_Loader $e) {
throw new \InvalidArgumentException($e->getMessage(), $e->getCode(), $e);
}
-
at
TwigEngine
->load
('estaticas/contacto.html.twig')
in vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php at line 50*/
public function render($name, array $parameters = array())
{
return $this->load($name)->render($parameters);
}
/**
-
at
TwigEngine
->render
('estaticas/contacto.html.twig', array('modal' => false))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 72public function render($name, array $parameters = array())
{
try {
return parent::render($name, $parameters);
} catch (\Twig_Error $e) {
if ($name instanceof TemplateReference) {
try {
-
at
TwigEngine
->render
('estaticas/contacto.html.twig', array('modal' => false))
in vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php at line 97$response = new Response();
}
$response->setContent($this->render($view, $parameters));
return $response;
}
-
at
TwigEngine
->renderResponse
('estaticas/contacto.html.twig', array('modal' => false), null)
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php at line 185public function render($view, array $parameters = array(), Response $response = null)
{
if ($this->container->has('templating')) {
return $this->container->get('templating')->renderResponse($view, $parameters, $response);
}
if (!$this->container->has('twig')) {
-
at
Controller
->render
('estaticas/contacto.html.twig', array('modal' => false))
in src/AppBundle/Controller/DefaultController.php at line 36public function estaticaAction($pagina)
{
return $this->render('estaticas/'.$pagina.'.html.twig',
array('modal' => false,));
}
public function pageNotFoundAction()
- at DefaultController ->estaticaAction ('contacto')
-
at
call_user_func_array
(array(object(DefaultController), 'estaticaAction'), array('contacto'))
in app/bootstrap.php.cache at line 2698$this->dispatcher->dispatch(KernelEvents::CONTROLLER, $event);
$controller = $event->getController();
$arguments = $this->resolver->getArguments($request, $controller);
$response = call_user_func_array($controller, $arguments);
if (!$response instanceof Response) {
$event = new GetResponseForControllerResultEvent($this, $request, $type, $response);
$this->dispatcher->dispatch(KernelEvents::VIEW, $event);
-
at
HttpKernel
->handleRaw
(object(Request), '1')
in app/bootstrap.php.cache at line 2660{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if (false === $catch) {
$this->finishRequest($request, $type);
-
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 2811$this->container->enterScope('request');
$this->container->set('request', $request,'request');
try {
$response = parent::handle($request, $type, $catch);
} catch (\Exception $e) {
$this->container->set('request', null,'request');
$this->container->leaveScope('request');
-
at
ContainerAwareHttpKernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php at line 185$this->boot();
}
return $this->getHttpKernel()->handle($request, $type, $catch);
}
/**
-
at
Kernel
->handle
(object(Request), '1', true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 487}
// always a "master" request (as the real master request can be in cache)
$response = $this->kernel->handle($request, HttpKernelInterface::MASTER_REQUEST, $catch);
// FIXME: we probably need to also catch exceptions if raw === true
// we don't implement the stale-if-error on Requests, which is nonetheless part of the RFC
-
at
HttpCache
->forward
(object(Request), true, null)
in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php at line 60$this->getKernel()->getContainer()->set('cache', $this);
$this->getKernel()->getContainer()->set($this->getSurrogate()->getName(), $this->getSurrogate());
return parent::forward($request, $raw, $entry);
}
/**
-
at
HttpCache
->forward
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 444$subRequest->headers->remove('if_modified_since');
$subRequest->headers->remove('if_none_match');
$response = $this->forward($subRequest, $catch);
if ($response->isCacheable()) {
$this->store($request, $response);
-
at
HttpCache
->fetch
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 344if (null === $entry) {
$this->record($request, 'miss');
return $this->fetch($request, $catch);
}
if (!$this->isFreshEnough($request, $entry)) {
-
at
HttpCache
->lookup
(object(Request), true)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php at line 210} elseif ($request->headers->has('expect')) {
$response = $this->pass($request, $catch);
} else {
$response = $this->lookup($request, $catch);
}
$this->restoreResponseBody($request, $response);
-
at
HttpCache
->handle
(object(Request))
in app.php at line 30// When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
//Request::enableHttpMethodParameterOverride();
$request = Request::createFromGlobals();
$response = $kernel->handle($request);
$response->send();
$kernel->terminate($request, $response);
Stack Trace (Plain Text)
[1] InvalidArgumentException: Unable to find template "estaticas/contacto.html.twig". at n/a in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 128 at Symfony\Bridge\Twig\TwigEngine->load('estaticas/contacto.html.twig') in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 50 at Symfony\Bridge\Twig\TwigEngine->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 72 at Symfony\Bundle\TwigBundle\TwigEngine->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 97 at Symfony\Bundle\TwigBundle\TwigEngine->renderResponse('estaticas/contacto.html.twig', array('modal' => false), null) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 185 at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/src/AppBundle/Controller/DefaultController.php line 36 at AppBundle\Controller\DefaultController->estaticaAction('contacto') in line at call_user_func_array(array(object(DefaultController), 'estaticaAction'), array('contacto')) in /home/gest/public_html/app/bootstrap.php.cache line 2698 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in /home/gest/public_html/app/bootstrap.php.cache line 2660 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in /home/gest/public_html/app/bootstrap.php.cache line 2811 at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 185 at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 487 at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true, null) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php line 60 at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 444 at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 344 at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 210 at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request)) in /home/gest/public_html/app.php line 30 [2] Twig_Error_Loader: Unable to find template "estaticas/contacto.html.twig". at n/a in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php line 91 at Symfony\Bundle\TwigBundle\Loader\FilesystemLoader->findTemplate('estaticas/contacto.html.twig') in /home/gest/public_html/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 139 at Twig_Loader_Filesystem->getCacheKey('estaticas/contacto.html.twig') in /home/gest/public_html/app/cache/prod/classes.php line 3711 at Twig_Environment->getTemplateClass('estaticas/contacto.html.twig', null) in /home/gest/public_html/app/cache/prod/classes.php line 3731 at Twig_Environment->loadTemplate('estaticas/contacto.html.twig') in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 126 at Symfony\Bridge\Twig\TwigEngine->load('estaticas/contacto.html.twig') in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 50 at Symfony\Bridge\Twig\TwigEngine->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 72 at Symfony\Bundle\TwigBundle\TwigEngine->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 97 at Symfony\Bundle\TwigBundle\TwigEngine->renderResponse('estaticas/contacto.html.twig', array('modal' => false), null) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 185 at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/src/AppBundle/Controller/DefaultController.php line 36 at AppBundle\Controller\DefaultController->estaticaAction('contacto') in line at call_user_func_array(array(object(DefaultController), 'estaticaAction'), array('contacto')) in /home/gest/public_html/app/bootstrap.php.cache line 2698 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in /home/gest/public_html/app/bootstrap.php.cache line 2660 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in /home/gest/public_html/app/bootstrap.php.cache line 2811 at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 185 at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 487 at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true, null) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php line 60 at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 444 at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 344 at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 210 at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request)) in /home/gest/public_html/app.php line 30 [3] InvalidArgumentException: Unable to find template "::estaticas/contacto.html.twig" : "The file "views/estaticas/contacto.html.twig" does not exist (in: /home/gest/public_html/app/Resources).". at n/a in /home/gest/public_html/app/cache/prod/classes.php line 805 at Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator->locate(object(TemplateReference)) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php line 84 at Symfony\Bundle\TwigBundle\Loader\FilesystemLoader->findTemplate('estaticas/contacto.html.twig') in /home/gest/public_html/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 139 at Twig_Loader_Filesystem->getCacheKey('estaticas/contacto.html.twig') in /home/gest/public_html/app/cache/prod/classes.php line 3711 at Twig_Environment->getTemplateClass('estaticas/contacto.html.twig', null) in /home/gest/public_html/app/cache/prod/classes.php line 3731 at Twig_Environment->loadTemplate('estaticas/contacto.html.twig') in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 126 at Symfony\Bridge\Twig\TwigEngine->load('estaticas/contacto.html.twig') in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 50 at Symfony\Bridge\Twig\TwigEngine->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 72 at Symfony\Bundle\TwigBundle\TwigEngine->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 97 at Symfony\Bundle\TwigBundle\TwigEngine->renderResponse('estaticas/contacto.html.twig', array('modal' => false), null) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 185 at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/src/AppBundle/Controller/DefaultController.php line 36 at AppBundle\Controller\DefaultController->estaticaAction('contacto') in line at call_user_func_array(array(object(DefaultController), 'estaticaAction'), array('contacto')) in /home/gest/public_html/app/bootstrap.php.cache line 2698 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in /home/gest/public_html/app/bootstrap.php.cache line 2660 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in /home/gest/public_html/app/bootstrap.php.cache line 2811 at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 185 at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 487 at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true, null) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php line 60 at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 444 at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 344 at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 210 at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request)) in /home/gest/public_html/app.php line 30 [4] InvalidArgumentException: The file "views/estaticas/contacto.html.twig" does not exist (in: /home/gest/public_html/app/Resources). at n/a in /home/gest/public_html/app/cache/prod/classes.php line 1692 at Symfony\Component\Config\FileLocator->locate('views/estaticas/contacto.html.twig', null, true) in /home/gest/public_html/app/cache/prod/classes.php line 2925 at Symfony\Component\HttpKernel\Config\FileLocator->locate('views/estaticas/contacto.html.twig', null) in /home/gest/public_html/app/cache/prod/classes.php line 803 at Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator->locate(object(TemplateReference)) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Loader/FilesystemLoader.php line 84 at Symfony\Bundle\TwigBundle\Loader\FilesystemLoader->findTemplate('estaticas/contacto.html.twig') in /home/gest/public_html/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 139 at Twig_Loader_Filesystem->getCacheKey('estaticas/contacto.html.twig') in /home/gest/public_html/app/cache/prod/classes.php line 3711 at Twig_Environment->getTemplateClass('estaticas/contacto.html.twig', null) in /home/gest/public_html/app/cache/prod/classes.php line 3731 at Twig_Environment->loadTemplate('estaticas/contacto.html.twig') in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 126 at Symfony\Bridge\Twig\TwigEngine->load('estaticas/contacto.html.twig') in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 50 at Symfony\Bridge\Twig\TwigEngine->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 72 at Symfony\Bundle\TwigBundle\TwigEngine->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 97 at Symfony\Bundle\TwigBundle\TwigEngine->renderResponse('estaticas/contacto.html.twig', array('modal' => false), null) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 185 at Symfony\Bundle\FrameworkBundle\Controller\Controller->render('estaticas/contacto.html.twig', array('modal' => false)) in /home/gest/public_html/src/AppBundle/Controller/DefaultController.php line 36 at AppBundle\Controller\DefaultController->estaticaAction('contacto') in line at call_user_func_array(array(object(DefaultController), 'estaticaAction'), array('contacto')) in /home/gest/public_html/app/bootstrap.php.cache line 2698 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in /home/gest/public_html/app/bootstrap.php.cache line 2660 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in /home/gest/public_html/app/bootstrap.php.cache line 2811 at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php line 185 at Symfony\Component\HttpKernel\Kernel->handle(object(Request), '1', true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 487 at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true, null) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php line 60 at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 444 at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 344 at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true) in /home/gest/public_html/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php line 210 at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request)) in /home/gest/public_html/app.php line 30