http://opendata.kedirikab.go.id/dataset?judul=%27%2Bsleep%2820.to_i%29%2B%27&p=dataset

Exceptions

[Syntax Error] line 0, col 102: Error: Expected Doctrine\ORM\Query\Lexer::T_CLOSE_PARENTHESIS, got '+'

Exceptions 2

Doctrine\ORM\Query\ QueryException

  1.      *
  2.      * @return QueryException
  3.      */
  4.     public static function syntaxError($message$previous null)
  5.     {
  6.         return new self('[Syntax Error] ' $message0$previous);
  7.     }
  8.     /**
  9.      * @param string         $message
  10.      * @param Exception|null $previous
  1.         $message  sprintf('line 0, col %d: Error: '$tokenPos);
  2.         $message .= $expected !== '' sprintf('Expected %s, got '$expected) : 'Unexpected ';
  3.         $message .= $this->lexer->lookahead === null 'end of string.' sprintf("'%s'"$token['value']);
  4.         throw QueryException::syntaxError($messageQueryException::dqlError($this->query->getDQL() ?? ''));
  5.     }
  6.     /**
  7.      * Generates a new semantical error.
  8.      *
  1.             return;
  2.         }
  3.         // If parameter is not identifier (1-99) must be exact match
  4.         if ($token Lexer::T_IDENTIFIER) {
  5.             $this->syntaxError($this->lexer->getLiteral($token));
  6.         }
  7.         // If parameter is keyword (200+) must be exact match
  8.         if ($token Lexer::T_IDENTIFIER) {
  9.             $this->syntaxError($this->lexer->getLiteral($token));
  1.         $parser->match(Lexer::T_IDENTIFIER);
  2.         $parser->match(Lexer::T_OPEN_PARENTHESIS);
  3.         $this->stringPrimary $parser->StringPrimary();
  4.         $parser->match(Lexer::T_CLOSE_PARENTHESIS);
  5.     }
  6. }
  1.         assert($this->lexer->lookahead !== null);
  2.         $funcNameLower strtolower($this->lexer->lookahead['value']);
  3.         $funcClass     self::$stringFunctions[$funcNameLower];
  4.         $function = new $funcClass($funcNameLower);
  5.         $function->parse($this);
  6.         return $function;
  7.     }
  8.     /** @return Functions\FunctionNode */
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php -> FunctionsReturningStrings (line 3498)
  1.         switch (true) {
  2.             case $customFunctionDeclaration !== null:
  3.                 return $customFunctionDeclaration;
  4.             case isset(self::$stringFunctions[$funcName]):
  5.                 return $this->FunctionsReturningStrings();
  6.             case isset(self::$numericFunctions[$funcName]):
  7.                 return $this->FunctionsReturningNumerics();
  8.             case isset(self::$datetimeFunctions[$funcName]):
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php -> FunctionDeclaration (line 3016)
  1.                     return $this->StateFieldPathExpression();
  2.                 }
  3.                 if ($peek['value'] === '(') {
  4.                     // do NOT directly go to FunctionsReturningString() because it doesn't check for custom functions.
  5.                     return $this->FunctionDeclaration();
  6.                 }
  7.                 $this->syntaxError("'.' or '('");
  8.                 break;
  1.         if ($this->lexer->isNextToken(Lexer::T_INPUT_PARAMETER)) {
  2.             $this->match(Lexer::T_INPUT_PARAMETER);
  3.             assert($this->lexer->token !== null);
  4.             $stringPattern = new AST\InputParameter($this->lexer->token['value']);
  5.         } else {
  6.             $stringPattern $this->StringPrimary();
  7.         }
  8.         $escapeChar null;
  9.         if ($this->lexer->lookahead !== null && $this->lexer->lookahead['type'] === Lexer::T_ESCAPE) {
  1.         if ($token['type'] === Lexer::T_BETWEEN) {
  2.             return $this->BetweenExpression();
  3.         }
  4.         if ($token['type'] === Lexer::T_LIKE) {
  5.             return $this->LikeExpression();
  6.         }
  7.         if ($token['type'] === Lexer::T_IN) {
  8.             return $this->InExpression();
  9.         }
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php -> SimpleConditionalExpression (line 2534)
  1.     public function ConditionalPrimary()
  2.     {
  3.         $condPrimary = new AST\ConditionalPrimary();
  4.         if (! $this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS)) {
  5.             $condPrimary->simpleConditionalExpression $this->SimpleConditionalExpression();
  6.             return $condPrimary;
  7.         }
  8.         // Peek beyond the matching closing parenthesis ')'
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php -> ConditionalPrimary (line 2513)
  1.             $this->match(Lexer::T_NOT);
  2.             $not true;
  3.         }
  4.         $conditionalPrimary $this->ConditionalPrimary();
  5.         // Phase 1 AST optimization: Prevent AST\ConditionalFactor
  6.         // if only one AST\ConditionalPrimary is defined
  7.         if (! $not) {
  8.             return $conditionalPrimary;
  1.         $conditionalFactors[] = $this->ConditionalFactor();
  2.         while ($this->lexer->isNextToken(Lexer::T_AND)) {
  3.             $this->match(Lexer::T_AND);
  4.             $conditionalFactors[] = $this->ConditionalFactor();
  5.         }
  6.         // Phase 1 AST optimization: Prevent AST\ConditionalTerm
  7.         // if only one AST\ConditionalFactor is defined
  8.         if (count($conditionalFactors) === 1) {
  1.      * @return AST\ConditionalExpression|AST\ConditionalFactor|AST\ConditionalPrimary|AST\ConditionalTerm
  2.      */
  3.     public function ConditionalExpression()
  4.     {
  5.         $conditionalTerms   = [];
  6.         $conditionalTerms[] = $this->ConditionalTerm();
  7.         while ($this->lexer->isNextToken(Lexer::T_OR)) {
  8.             $this->match(Lexer::T_OR);
  9.             $conditionalTerms[] = $this->ConditionalTerm();
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php -> ConditionalExpression (line 1391)
  1.      */
  2.     public function WhereClause()
  3.     {
  4.         $this->match(Lexer::T_WHERE);
  5.         return new AST\WhereClause($this->ConditionalExpression());
  6.     }
  7.     /**
  8.      * HavingClause ::= "HAVING" ConditionalExpression
  9.      *
  1.      */
  2.     public function SelectStatement()
  3.     {
  4.         $selectStatement = new AST\SelectStatement($this->SelectClause(), $this->FromClause());
  5.         $selectStatement->whereClause   $this->lexer->isNextToken(Lexer::T_WHERE) ? $this->WhereClause() : null;
  6.         $selectStatement->groupByClause $this->lexer->isNextToken(Lexer::T_GROUP) ? $this->GroupByClause() : null;
  7.         $selectStatement->havingClause  $this->lexer->isNextToken(Lexer::T_HAVING) ? $this->HavingClause() : null;
  8.         $selectStatement->orderByClause $this->lexer->isNextToken(Lexer::T_ORDER) ? $this->OrderByClause() : null;
  9.         return $selectStatement;
  1.         $this->lexer->moveNext();
  2.         switch ($this->lexer->lookahead['type'] ?? null) {
  3.             case Lexer::T_SELECT:
  4.                 $statement $this->SelectStatement();
  5.                 break;
  6.             case Lexer::T_UPDATE:
  7.                 $statement $this->UpdateStatement();
  8.                 break;
  1.      * @return AST\SelectStatement|AST\UpdateStatement|AST\DeleteStatement
  2.      */
  3.     public function getAST()
  4.     {
  5.         // Parse & build AST
  6.         $AST $this->QueryLanguage();
  7.         // Process any deferred validations of some nodes in the AST.
  8.         // This also allows post-processing of the AST for modification purposes.
  9.         $this->processDeferredIdentificationVariables();
  1.      *
  2.      * @return ParserResult
  3.      */
  4.     public function parse()
  5.     {
  6.         $AST $this->getAST();
  7.         $customWalkers $this->query->getHint(Query::HINT_CUSTOM_TREE_WALKERS);
  8.         if ($customWalkers !== false) {
  9.             $this->customTreeWalkers $customWalkers;
  10.         }
  1.     }
  2.     private function unbindUnusedQueryParams(Query $query): void
  3.     {
  4.         $parser            = new Parser($query);
  5.         $parameterMappings $parser->parse()->getParameterMappings();
  6.         /** @var Collection|Parameter[] $parameters */
  7.         $parameters $query->getParameters();
  8.         foreach ($parameters as $key => $parameter) {
  9.             $parameterName $parameter->getName();
  1.             $countQuery->setHint(Query::HINT_CUSTOM_OUTPUT_WALKERCountOutputWalker::class);
  2.             $countQuery->setResultSetMapping($rsm);
  3.         } else {
  4.             $this->appendTreeWalker($countQueryCountWalker::class);
  5.             $this->unbindUnusedQueryParams($countQuery);
  6.         }
  7.         $countQuery->setFirstResult(0)->setMaxResults(null);
  8.         return $countQuery;
  1.     #[ReturnTypeWillChange]
  2.     public function count()
  3.     {
  4.         if ($this->count === null) {
  5.             try {
  6.                 $this->count = (int) array_sum(array_map('current'$this->getCountQuery()->getScalarResult()));
  7.             } catch (NoResultException $e) {
  8.                 $this->count 0;
  9.             }
  10.         }
Paginator->count()
  1.         $paginator = new Paginator($event->target$fetchJoinCollection);
  2.         $paginator->setUseOutputWalkers($useOutputWalkers);
  3.         if (($count $event->target->getHint(self::HINT_COUNT)) !== false) {
  4.             $event->count = (int) $count;
  5.         } else {
  6.             $event->count count($paginator);
  7.         }
  8.         $event->items iterator_to_array($paginator);
  9.     }
  10.     public static function getSubscribedEvents(): array
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.         $this->eventDispatcher->dispatch($beforeEvent'knp_pager.before');
  2.         // items
  3.         $itemsEvent = new Event\ItemsEvent($offset$limit);
  4.         $itemsEvent->options = &$options;
  5.         $itemsEvent->target = &$target;
  6.         $this->eventDispatcher->dispatch($itemsEvent'knp_pager.items');
  7.         if (!$itemsEvent->isPropagationStopped()) {
  8.             throw new \RuntimeException('One of listeners must count and slice given target');
  9.         }
  10.         if ($page ceil($itemsEvent->count $limit)) {
  11.             $pageOutOfRangeOption $options[PaginatorInterface::PAGE_OUT_OF_RANGE] ?? $this->defaultOptions[PaginatorInterface::PAGE_OUT_OF_RANGE];
  1.     public function paginate($targetint $page 1, ?int $limit null, array $options = []) : \Knp\Component\Pager\Pagination\PaginationInterface
  2.     {
  3.         $this->initializer56dfc && ($this->initializer56dfc->__invoke($valueHolderd14db$this'paginate', array('target' => $target'page' => $page'limit' => $limit'options' => $options), $this->initializer56dfc) || 1) && $this->valueHolderd14db $valueHolderd14db;
  4.         if ($this->valueHolderd14db === $returnValue $this->valueHolderd14db->paginate($target$page$limit$options)) {
  5.             return $this;
  6.         }
  7.         return $returnValue;
  8.     }
PaginatorInterface_82dac15->paginate() in src/Controller/Frontend/DatasetController.php (line 79)
  1.             $queryBuilder $queryBuilder->andWhere("this.sektor = " $request->get('sektor'));
  2.         }
  3.         $queryBuilder $queryBuilder->addOrderBy('this.id''desc');
  4.         // dump($queryBuilder->getQuery()->getResult());exit;
  5.         $pagination $paginatorInterface->paginate($queryBuilder$request->query->getInt('page'1), 10);
  6.         $kategori = array();
  7.         $icons = array();
  8.         foreach ($pagination as $pub) {
  9.             $kategori_detail $mUrusanDetailRepository->findBy(['reff_id' => $pub->getId(), 'reff_name' => 'PUBLIKASI'], ['id' => 'ASC']);
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 20)
  1.     Debug::enable();
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Doctrine\ORM\Query\ QueryException

SELECT this FROM App\Entity\TPublikasi this WHERE this.status = 3 AND lower(this.judul) LIKE lower('%'+sleep(20.to_i)+'%') ORDER BY this.id desc

  1.      *
  2.      * @return QueryException
  3.      */
  4.     public static function dqlError($dql)
  5.     {
  6.         return new self($dql);
  7.     }
  8.     /**
  9.      * @param string         $message
  10.      * @param Exception|null $previous
  1.         $message  sprintf('line 0, col %d: Error: '$tokenPos);
  2.         $message .= $expected !== '' sprintf('Expected %s, got '$expected) : 'Unexpected ';
  3.         $message .= $this->lexer->lookahead === null 'end of string.' sprintf("'%s'"$token['value']);
  4.         throw QueryException::syntaxError($messageQueryException::dqlError($this->query->getDQL() ?? ''));
  5.     }
  6.     /**
  7.      * Generates a new semantical error.
  8.      *
  1.             return;
  2.         }
  3.         // If parameter is not identifier (1-99) must be exact match
  4.         if ($token Lexer::T_IDENTIFIER) {
  5.             $this->syntaxError($this->lexer->getLiteral($token));
  6.         }
  7.         // If parameter is keyword (200+) must be exact match
  8.         if ($token Lexer::T_IDENTIFIER) {
  9.             $this->syntaxError($this->lexer->getLiteral($token));
  1.         $parser->match(Lexer::T_IDENTIFIER);
  2.         $parser->match(Lexer::T_OPEN_PARENTHESIS);
  3.         $this->stringPrimary $parser->StringPrimary();
  4.         $parser->match(Lexer::T_CLOSE_PARENTHESIS);
  5.     }
  6. }
  1.         assert($this->lexer->lookahead !== null);
  2.         $funcNameLower strtolower($this->lexer->lookahead['value']);
  3.         $funcClass     self::$stringFunctions[$funcNameLower];
  4.         $function = new $funcClass($funcNameLower);
  5.         $function->parse($this);
  6.         return $function;
  7.     }
  8.     /** @return Functions\FunctionNode */
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php -> FunctionsReturningStrings (line 3498)
  1.         switch (true) {
  2.             case $customFunctionDeclaration !== null:
  3.                 return $customFunctionDeclaration;
  4.             case isset(self::$stringFunctions[$funcName]):
  5.                 return $this->FunctionsReturningStrings();
  6.             case isset(self::$numericFunctions[$funcName]):
  7.                 return $this->FunctionsReturningNumerics();
  8.             case isset(self::$datetimeFunctions[$funcName]):
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php -> FunctionDeclaration (line 3016)
  1.                     return $this->StateFieldPathExpression();
  2.                 }
  3.                 if ($peek['value'] === '(') {
  4.                     // do NOT directly go to FunctionsReturningString() because it doesn't check for custom functions.
  5.                     return $this->FunctionDeclaration();
  6.                 }
  7.                 $this->syntaxError("'.' or '('");
  8.                 break;
  1.         if ($this->lexer->isNextToken(Lexer::T_INPUT_PARAMETER)) {
  2.             $this->match(Lexer::T_INPUT_PARAMETER);
  3.             assert($this->lexer->token !== null);
  4.             $stringPattern = new AST\InputParameter($this->lexer->token['value']);
  5.         } else {
  6.             $stringPattern $this->StringPrimary();
  7.         }
  8.         $escapeChar null;
  9.         if ($this->lexer->lookahead !== null && $this->lexer->lookahead['type'] === Lexer::T_ESCAPE) {
  1.         if ($token['type'] === Lexer::T_BETWEEN) {
  2.             return $this->BetweenExpression();
  3.         }
  4.         if ($token['type'] === Lexer::T_LIKE) {
  5.             return $this->LikeExpression();
  6.         }
  7.         if ($token['type'] === Lexer::T_IN) {
  8.             return $this->InExpression();
  9.         }
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php -> SimpleConditionalExpression (line 2534)
  1.     public function ConditionalPrimary()
  2.     {
  3.         $condPrimary = new AST\ConditionalPrimary();
  4.         if (! $this->lexer->isNextToken(Lexer::T_OPEN_PARENTHESIS)) {
  5.             $condPrimary->simpleConditionalExpression $this->SimpleConditionalExpression();
  6.             return $condPrimary;
  7.         }
  8.         // Peek beyond the matching closing parenthesis ')'
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php -> ConditionalPrimary (line 2513)
  1.             $this->match(Lexer::T_NOT);
  2.             $not true;
  3.         }
  4.         $conditionalPrimary $this->ConditionalPrimary();
  5.         // Phase 1 AST optimization: Prevent AST\ConditionalFactor
  6.         // if only one AST\ConditionalPrimary is defined
  7.         if (! $not) {
  8.             return $conditionalPrimary;
  1.         $conditionalFactors[] = $this->ConditionalFactor();
  2.         while ($this->lexer->isNextToken(Lexer::T_AND)) {
  3.             $this->match(Lexer::T_AND);
  4.             $conditionalFactors[] = $this->ConditionalFactor();
  5.         }
  6.         // Phase 1 AST optimization: Prevent AST\ConditionalTerm
  7.         // if only one AST\ConditionalFactor is defined
  8.         if (count($conditionalFactors) === 1) {
  1.      * @return AST\ConditionalExpression|AST\ConditionalFactor|AST\ConditionalPrimary|AST\ConditionalTerm
  2.      */
  3.     public function ConditionalExpression()
  4.     {
  5.         $conditionalTerms   = [];
  6.         $conditionalTerms[] = $this->ConditionalTerm();
  7.         while ($this->lexer->isNextToken(Lexer::T_OR)) {
  8.             $this->match(Lexer::T_OR);
  9.             $conditionalTerms[] = $this->ConditionalTerm();
in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php -> ConditionalExpression (line 1391)
  1.      */
  2.     public function WhereClause()
  3.     {
  4.         $this->match(Lexer::T_WHERE);
  5.         return new AST\WhereClause($this->ConditionalExpression());
  6.     }
  7.     /**
  8.      * HavingClause ::= "HAVING" ConditionalExpression
  9.      *
  1.      */
  2.     public function SelectStatement()
  3.     {
  4.         $selectStatement = new AST\SelectStatement($this->SelectClause(), $this->FromClause());
  5.         $selectStatement->whereClause   $this->lexer->isNextToken(Lexer::T_WHERE) ? $this->WhereClause() : null;
  6.         $selectStatement->groupByClause $this->lexer->isNextToken(Lexer::T_GROUP) ? $this->GroupByClause() : null;
  7.         $selectStatement->havingClause  $this->lexer->isNextToken(Lexer::T_HAVING) ? $this->HavingClause() : null;
  8.         $selectStatement->orderByClause $this->lexer->isNextToken(Lexer::T_ORDER) ? $this->OrderByClause() : null;
  9.         return $selectStatement;
  1.         $this->lexer->moveNext();
  2.         switch ($this->lexer->lookahead['type'] ?? null) {
  3.             case Lexer::T_SELECT:
  4.                 $statement $this->SelectStatement();
  5.                 break;
  6.             case Lexer::T_UPDATE:
  7.                 $statement $this->UpdateStatement();
  8.                 break;
  1.      * @return AST\SelectStatement|AST\UpdateStatement|AST\DeleteStatement
  2.      */
  3.     public function getAST()
  4.     {
  5.         // Parse & build AST
  6.         $AST $this->QueryLanguage();
  7.         // Process any deferred validations of some nodes in the AST.
  8.         // This also allows post-processing of the AST for modification purposes.
  9.         $this->processDeferredIdentificationVariables();
  1.      *
  2.      * @return ParserResult
  3.      */
  4.     public function parse()
  5.     {
  6.         $AST $this->getAST();
  7.         $customWalkers $this->query->getHint(Query::HINT_CUSTOM_TREE_WALKERS);
  8.         if ($customWalkers !== false) {
  9.             $this->customTreeWalkers $customWalkers;
  10.         }
  1.     }
  2.     private function unbindUnusedQueryParams(Query $query): void
  3.     {
  4.         $parser            = new Parser($query);
  5.         $parameterMappings $parser->parse()->getParameterMappings();
  6.         /** @var Collection|Parameter[] $parameters */
  7.         $parameters $query->getParameters();
  8.         foreach ($parameters as $key => $parameter) {
  9.             $parameterName $parameter->getName();
  1.             $countQuery->setHint(Query::HINT_CUSTOM_OUTPUT_WALKERCountOutputWalker::class);
  2.             $countQuery->setResultSetMapping($rsm);
  3.         } else {
  4.             $this->appendTreeWalker($countQueryCountWalker::class);
  5.             $this->unbindUnusedQueryParams($countQuery);
  6.         }
  7.         $countQuery->setFirstResult(0)->setMaxResults(null);
  8.         return $countQuery;
  1.     #[ReturnTypeWillChange]
  2.     public function count()
  3.     {
  4.         if ($this->count === null) {
  5.             try {
  6.                 $this->count = (int) array_sum(array_map('current'$this->getCountQuery()->getScalarResult()));
  7.             } catch (NoResultException $e) {
  8.                 $this->count 0;
  9.             }
  10.         }
Paginator->count()
  1.         $paginator = new Paginator($event->target$fetchJoinCollection);
  2.         $paginator->setUseOutputWalkers($useOutputWalkers);
  3.         if (($count $event->target->getHint(self::HINT_COUNT)) !== false) {
  4.             $event->count = (int) $count;
  5.         } else {
  6.             $event->count count($paginator);
  7.         }
  8.         $event->items iterator_to_array($paginator);
  9.     }
  10.     public static function getSubscribedEvents(): array
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.         $this->eventDispatcher->dispatch($beforeEvent'knp_pager.before');
  2.         // items
  3.         $itemsEvent = new Event\ItemsEvent($offset$limit);
  4.         $itemsEvent->options = &$options;
  5.         $itemsEvent->target = &$target;
  6.         $this->eventDispatcher->dispatch($itemsEvent'knp_pager.items');
  7.         if (!$itemsEvent->isPropagationStopped()) {
  8.             throw new \RuntimeException('One of listeners must count and slice given target');
  9.         }
  10.         if ($page ceil($itemsEvent->count $limit)) {
  11.             $pageOutOfRangeOption $options[PaginatorInterface::PAGE_OUT_OF_RANGE] ?? $this->defaultOptions[PaginatorInterface::PAGE_OUT_OF_RANGE];
  1.     public function paginate($targetint $page 1, ?int $limit null, array $options = []) : \Knp\Component\Pager\Pagination\PaginationInterface
  2.     {
  3.         $this->initializer56dfc && ($this->initializer56dfc->__invoke($valueHolderd14db$this'paginate', array('target' => $target'page' => $page'limit' => $limit'options' => $options), $this->initializer56dfc) || 1) && $this->valueHolderd14db $valueHolderd14db;
  4.         if ($this->valueHolderd14db === $returnValue $this->valueHolderd14db->paginate($target$page$limit$options)) {
  5.             return $this;
  6.         }
  7.         return $returnValue;
  8.     }
PaginatorInterface_82dac15->paginate() in src/Controller/Frontend/DatasetController.php (line 79)
  1.             $queryBuilder $queryBuilder->andWhere("this.sektor = " $request->get('sektor'));
  2.         }
  3.         $queryBuilder $queryBuilder->addOrderBy('this.id''desc');
  4.         // dump($queryBuilder->getQuery()->getResult());exit;
  5.         $pagination $paginatorInterface->paginate($queryBuilder$request->query->getInt('page'1), 10);
  6.         $kategori = array();
  7.         $icons = array();
  8.         foreach ($pagination as $pub) {
  9.             $kategori_detail $mUrusanDetailRepository->findBy(['reff_id' => $pub->getId(), 'reff_name' => 'PUBLIKASI'], ['id' => 'ASC']);
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle() in public/index.php (line 20)
  1.     Debug::enable();
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Traces 2

[2/2] QueryException
Doctrine\ORM\Query\QueryException:
[Syntax Error] line 0, col 102: Error: Expected Doctrine\ORM\Query\Lexer::T_CLOSE_PARENTHESIS, got '+'

  at vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:32
  at Doctrine\ORM\Query\QueryException::syntaxError()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:457)
  at Doctrine\ORM\Query\Parser->syntaxError()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:311)
  at Doctrine\ORM\Query\Parser->match()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/AST/Functions/LowerFunction.php:41)
  at Doctrine\ORM\Query\AST\Functions\LowerFunction->parse()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3642)
  at Doctrine\ORM\Query\Parser->FunctionsReturningStrings()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3498)
  at Doctrine\ORM\Query\Parser->FunctionDeclaration()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3016)
  at Doctrine\ORM\Query\Parser->StringPrimary()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3313)
  at Doctrine\ORM\Query\Parser->LikeExpression()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2652)
  at Doctrine\ORM\Query\Parser->SimpleConditionalExpression()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2534)
  at Doctrine\ORM\Query\Parser->ConditionalPrimary()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2513)
  at Doctrine\ORM\Query\Parser->ConditionalFactor()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2486)
  at Doctrine\ORM\Query\Parser->ConditionalTerm()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2456)
  at Doctrine\ORM\Query\Parser->ConditionalExpression()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:1391)
  at Doctrine\ORM\Query\Parser->WhereClause()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:882)
  at Doctrine\ORM\Query\Parser->SelectStatement()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:849)
  at Doctrine\ORM\Query\Parser->QueryLanguage()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:256)
  at Doctrine\ORM\Query\Parser->getAST()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:356)
  at Doctrine\ORM\Query\Parser->parse()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:256)
  at Doctrine\ORM\Tools\Pagination\Paginator->unbindUnusedQueryParams()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:245)
  at Doctrine\ORM\Tools\Pagination\Paginator->getCountQuery()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:118)
  at Doctrine\ORM\Tools\Pagination\Paginator->count()
  at count()
     (vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/QuerySubscriber.php:46)
  at Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\ORM\QuerySubscriber->items()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/knplabs/knp-components/src/Knp/Component/Pager/Paginator.php:93)
  at Knp\Component\Pager\Paginator->paginate()
     (var/cache/dev/ContainerF3J4NcO/PaginatorInterface_82dac15.php:30)
  at ContainerF3J4NcO\PaginatorInterface_82dac15->paginate()
     (src/Controller/Frontend/DatasetController.php:79)
  at App\Controller\Frontend\DatasetController->index()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:20)                
[1/2] QueryException
Doctrine\ORM\Query\QueryException:
SELECT this FROM App\Entity\TPublikasi this WHERE this.status = 3 AND lower(this.judul) LIKE lower('%'+sleep(20.to_i)+'%') ORDER BY this.id desc

  at vendor/doctrine/orm/lib/Doctrine/ORM/Query/QueryException.php:21
  at Doctrine\ORM\Query\QueryException::dqlError()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:457)
  at Doctrine\ORM\Query\Parser->syntaxError()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:311)
  at Doctrine\ORM\Query\Parser->match()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/AST/Functions/LowerFunction.php:41)
  at Doctrine\ORM\Query\AST\Functions\LowerFunction->parse()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3642)
  at Doctrine\ORM\Query\Parser->FunctionsReturningStrings()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3498)
  at Doctrine\ORM\Query\Parser->FunctionDeclaration()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3016)
  at Doctrine\ORM\Query\Parser->StringPrimary()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:3313)
  at Doctrine\ORM\Query\Parser->LikeExpression()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2652)
  at Doctrine\ORM\Query\Parser->SimpleConditionalExpression()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2534)
  at Doctrine\ORM\Query\Parser->ConditionalPrimary()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2513)
  at Doctrine\ORM\Query\Parser->ConditionalFactor()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2486)
  at Doctrine\ORM\Query\Parser->ConditionalTerm()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:2456)
  at Doctrine\ORM\Query\Parser->ConditionalExpression()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:1391)
  at Doctrine\ORM\Query\Parser->WhereClause()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:882)
  at Doctrine\ORM\Query\Parser->SelectStatement()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:849)
  at Doctrine\ORM\Query\Parser->QueryLanguage()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:256)
  at Doctrine\ORM\Query\Parser->getAST()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php:356)
  at Doctrine\ORM\Query\Parser->parse()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:256)
  at Doctrine\ORM\Tools\Pagination\Paginator->unbindUnusedQueryParams()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:245)
  at Doctrine\ORM\Tools\Pagination\Paginator->getCountQuery()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Tools/Pagination/Paginator.php:118)
  at Doctrine\ORM\Tools\Pagination\Paginator->count()
  at count()
     (vendor/knplabs/knp-components/src/Knp/Component/Pager/Event/Subscriber/Paginate/Doctrine/ORM/QuerySubscriber.php:46)
  at Knp\Component\Pager\Event\Subscriber\Paginate\Doctrine\ORM\QuerySubscriber->items()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/knplabs/knp-components/src/Knp/Component/Pager/Paginator.php:93)
  at Knp\Component\Pager\Paginator->paginate()
     (var/cache/dev/ContainerF3J4NcO/PaginatorInterface_82dac15.php:30)
  at ContainerF3J4NcO\PaginatorInterface_82dac15->paginate()
     (src/Controller/Frontend/DatasetController.php:79)
  at App\Controller\Frontend\DatasetController->index()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:20)