Exceptions
[Syntax Error] line 0, col 104: Error: Expected end of string, got 'page_politica_cookies'
500 Internal Server Error - QueryException
1 linked Exception:
- QueryException »
[2/2]
QueryException: [Syntax Error] line 0, col 104: Error: Expected end of string, got 'page_politica_cookies'

-
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php at line 52
*/
public static function syntaxError($message, $previous = null)
{
return new self('[Syntax Error] ' . $message, 0, $previous);
}
/**
-
at
QueryException
::syntaxError
('line 0, col 104: Error: Expected end of string, got 'page_politica_cookies'', object(QueryException))
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php at line 448$message .= ($expected !== '') ? "Expected {$expected}, got " : 'Unexpected ';
$message .= ($this->lexer->lookahead === null) ? 'end of string.' : "'{$token['value']}'";
throw QueryException::syntaxError($message, QueryException::dqlError($this->query->getDQL()));
}
/**
-
at
Parser
->syntaxError
('end of string')
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php at line 861// Check for end of string
if ($this->lexer->lookahead !== null) {
$this->syntaxError('end of string');
}
return $statement;
-
at
Parser
->QueryLanguage
()
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php at line 268public function getAST()
{
// Parse & build AST
$AST = $this->QueryLanguage();
// Process any deferred validations of some nodes in the AST.
// This also allows post-processing of the AST for modification purposes.
-
at
Parser
->getAST
()
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php at line 351*/
public function parse()
{
$AST = $this->getAST();
if (($customWalkers = $this->query->getHint(Query::HINT_CUSTOM_TREE_WALKERS)) !== false) {
$this->customTreeWalkers = $customWalkers;
-
at
Parser
->parse
()
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 255// Cache miss.
$parser = new Parser($this);
$this->_parserResult = $parser->parse();
$queryCache->save($hash, $this->_parserResult, $this->_queryCacheTTL);
-
at
Query
->_parse
()
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 267*/
protected function _doExecute()
{
$executor = $this->_parse()->getSqlExecutor();
if ($this->_queryCacheProfile) {
$executor->setQueryCacheProfile($this->_queryCacheProfile);
-
at
Query
->_doExecute
()
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 794};
}
$stmt = $this->_doExecute();
if (is_numeric($stmt)) {
$setCacheEntry($stmt);
-
at
AbstractQuery
->execute
(null, null)
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 612*/
public function getOneOrNullResult($hydrationMode = null)
{
$result = $this->execute(null, $hydrationMode);
if ($this->_hydrationMode !== self::HYDRATE_SINGLE_SCALAR && ! $result) {
return null;
-
at
AbstractQuery
->getOneOrNullResult
()
in src/Maenar/productsBundle/Entity/SubcategoryRepository.php at line 21. " WHERE subcategoria.nameURL = '" . $nombrecategoria . "'";
$consulta = $em->createQuery($sql);
return $consulta->getOneOrNullResult();
}
}
-
at
SubcategoryRepository
->findSubcategoriaSelect
('{{path('page_politica_cookies')}}')
in src/Maenar/principalBundle/Controller/principalController.php at line 125$carrito = new Carrito();
$em = $this->getDoctrine()->getManager();
$categorias= $em->getRepository('productsBundle:Category')->findAll();
$subcategoriaSelect= $em->getRepository('productsBundle:Subcategory')->findSubcategoriaSelect($nombresubcategoria);
if ($subcategoriaSelect != NULL){
$productosCategoria = $em->getRepository('productsBundle:productalquiler')->findProductosSubcategoria($subcategoriaSelect->getId());
-
at
principalController
->subcategoriaAction
('aviso-legal', '{{path('page_politica_cookies')}}')
in app/bootstrap.php.cache at line 3275$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 3234{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof ConflictingHeadersException) {
$e = new BadRequestHttpException('The request headers contain conflicting information regarding the origin of this request.', $e);
-
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3388$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 app/bootstrap.php.cache at line 2594if (false === $this->booted) {
$this->boot();
}
return $this->getHttpKernel()->handle($request, $type, $catch);
}
protected function getHttpKernel()
{
-
at
Kernel
->handle
(object(Request))
in web/app.php at line 27// 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/2]
QueryException: SELECT subcategoria FROM productsBundle:Subcategory subcategoria WHERE subcategoria.nameURL = '{{path('page_politica_cookies')}}'

-
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php at line 41
*/
public static function dqlError($dql)
{
return new self($dql);
}
/**
-
at
QueryException
::dqlError
('SELECT subcategoria FROM productsBundle:Subcategory subcategoria WHERE subcategoria.nameURL = '{{path('page_politica_cookies')}}'')
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php at line 448$message .= ($expected !== '') ? "Expected {$expected}, got " : 'Unexpected ';
$message .= ($this->lexer->lookahead === null) ? 'end of string.' : "'{$token['value']}'";
throw QueryException::syntaxError($message, QueryException::dqlError($this->query->getDQL()));
}
/**
-
at
Parser
->syntaxError
('end of string')
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php at line 861// Check for end of string
if ($this->lexer->lookahead !== null) {
$this->syntaxError('end of string');
}
return $statement;
-
at
Parser
->QueryLanguage
()
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php at line 268public function getAST()
{
// Parse & build AST
$AST = $this->QueryLanguage();
// Process any deferred validations of some nodes in the AST.
// This also allows post-processing of the AST for modification purposes.
-
at
Parser
->getAST
()
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php at line 351*/
public function parse()
{
$AST = $this->getAST();
if (($customWalkers = $this->query->getHint(Query::HINT_CUSTOM_TREE_WALKERS)) !== false) {
$this->customTreeWalkers = $customWalkers;
-
at
Parser
->parse
()
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 255// Cache miss.
$parser = new Parser($this);
$this->_parserResult = $parser->parse();
$queryCache->save($hash, $this->_parserResult, $this->_queryCacheTTL);
-
at
Query
->_parse
()
in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 267*/
protected function _doExecute()
{
$executor = $this->_parse()->getSqlExecutor();
if ($this->_queryCacheProfile) {
$executor->setQueryCacheProfile($this->_queryCacheProfile);
-
at
Query
->_doExecute
()
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 794};
}
$stmt = $this->_doExecute();
if (is_numeric($stmt)) {
$setCacheEntry($stmt);
-
at
AbstractQuery
->execute
(null, null)
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 612*/
public function getOneOrNullResult($hydrationMode = null)
{
$result = $this->execute(null, $hydrationMode);
if ($this->_hydrationMode !== self::HYDRATE_SINGLE_SCALAR && ! $result) {
return null;
-
at
AbstractQuery
->getOneOrNullResult
()
in src/Maenar/productsBundle/Entity/SubcategoryRepository.php at line 21. " WHERE subcategoria.nameURL = '" . $nombrecategoria . "'";
$consulta = $em->createQuery($sql);
return $consulta->getOneOrNullResult();
}
}
-
at
SubcategoryRepository
->findSubcategoriaSelect
('{{path('page_politica_cookies')}}')
in src/Maenar/principalBundle/Controller/principalController.php at line 125$carrito = new Carrito();
$em = $this->getDoctrine()->getManager();
$categorias= $em->getRepository('productsBundle:Category')->findAll();
$subcategoriaSelect= $em->getRepository('productsBundle:Subcategory')->findSubcategoriaSelect($nombresubcategoria);
if ($subcategoriaSelect != NULL){
$productosCategoria = $em->getRepository('productsBundle:productalquiler')->findProductosSubcategoria($subcategoriaSelect->getId());
-
at
principalController
->subcategoriaAction
('aviso-legal', '{{path('page_politica_cookies')}}')
in app/bootstrap.php.cache at line 3275$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 3234{
$request->headers->set('X-Php-Ob-Level', ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof ConflictingHeadersException) {
$e = new BadRequestHttpException('The request headers contain conflicting information regarding the origin of this request.', $e);
-
at
HttpKernel
->handle
(object(Request), '1', true)
in app/bootstrap.php.cache at line 3388$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 app/bootstrap.php.cache at line 2594if (false === $this->booted) {
$this->boot();
}
return $this->getHttpKernel()->handle($request, $type, $catch);
}
protected function getHttpKernel()
{
-
at
Kernel
->handle
(object(Request))
in web/app.php at line 27// 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] Doctrine\ORM\Query\QueryException: [Syntax Error] line 0, col 104: Error: Expected end of string, got 'page_politica_cookies' at n/a in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php line 52 at Doctrine\ORM\Query\QueryException::syntaxError('line 0, col 104: Error: Expected end of string, got 'page_politica_cookies'', object(QueryException)) in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 448 at Doctrine\ORM\Query\Parser->syntaxError('end of string') in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 861 at Doctrine\ORM\Query\Parser->QueryLanguage() in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 268 at Doctrine\ORM\Query\Parser->getAST() in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 351 at Doctrine\ORM\Query\Parser->parse() in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php line 255 at Doctrine\ORM\Query->_parse() in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php line 267 at Doctrine\ORM\Query->_doExecute() in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php line 794 at Doctrine\ORM\AbstractQuery->execute(null, null) in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php line 612 at Doctrine\ORM\AbstractQuery->getOneOrNullResult() in /var/www/html/maenar/src/Maenar/productsBundle/Entity/SubcategoryRepository.php line 21 at Maenar\productsBundle\Entity\SubcategoryRepository->findSubcategoriaSelect('{{path('page_politica_cookies')}}') in /var/www/html/maenar/src/Maenar/principalBundle/Controller/principalController.php line 125 at Maenar\principalBundle\Controller\principalController->subcategoriaAction('aviso-legal', '{{path('page_politica_cookies')}}') in /var/www/html/maenar/app/bootstrap.php.cache line 3275 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in /var/www/html/maenar/app/bootstrap.php.cache line 3234 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in /var/www/html/maenar/app/bootstrap.php.cache line 3388 at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true) in /var/www/html/maenar/app/bootstrap.php.cache line 2594 at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) in /var/www/html/maenar/web/app.php line 27 [2] Doctrine\ORM\Query\QueryException: SELECT subcategoria FROM productsBundle:Subcategory subcategoria WHERE subcategoria.nameURL = '{{path('page_politica_cookies')}}' at n/a in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php line 41 at Doctrine\ORM\Query\QueryException::dqlError('SELECT subcategoria FROM productsBundle:Subcategory subcategoria WHERE subcategoria.nameURL = '{{path('page_politica_cookies')}}'') in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 448 at Doctrine\ORM\Query\Parser->syntaxError('end of string') in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 861 at Doctrine\ORM\Query\Parser->QueryLanguage() in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 268 at Doctrine\ORM\Query\Parser->getAST() in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php line 351 at Doctrine\ORM\Query\Parser->parse() in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php line 255 at Doctrine\ORM\Query->_parse() in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/Query.php line 267 at Doctrine\ORM\Query->_doExecute() in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php line 794 at Doctrine\ORM\AbstractQuery->execute(null, null) in /var/www/html/maenar/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php line 612 at Doctrine\ORM\AbstractQuery->getOneOrNullResult() in /var/www/html/maenar/src/Maenar/productsBundle/Entity/SubcategoryRepository.php line 21 at Maenar\productsBundle\Entity\SubcategoryRepository->findSubcategoriaSelect('{{path('page_politica_cookies')}}') in /var/www/html/maenar/src/Maenar/principalBundle/Controller/principalController.php line 125 at Maenar\principalBundle\Controller\principalController->subcategoriaAction('aviso-legal', '{{path('page_politica_cookies')}}') in /var/www/html/maenar/app/bootstrap.php.cache line 3275 at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), '1') in /var/www/html/maenar/app/bootstrap.php.cache line 3234 at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), '1', true) in /var/www/html/maenar/app/bootstrap.php.cache line 3388 at Symfony\Component\HttpKernel\DependencyInjection\ContainerAwareHttpKernel->handle(object(Request), '1', true) in /var/www/html/maenar/app/bootstrap.php.cache line 2594 at Symfony\Component\HttpKernel\Kernel->handle(object(Request)) in /var/www/html/maenar/web/app.php line 27