Exception detected!

LIMIT argument offset=-3 is not valid

500 Internal Server Error - DBALException

Stack Trace

  1. in vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php at line 3312  -
    1.             $offset = (int) $offset;
    2.             if ($offset 0) {
    3.                 throw new DBALException("LIMIT argument offset=$offset is not valid");
    4.             }
    5.             if ($offset && ! $this->supportsLimitOffset()) {
    6.                 throw new DBALException(sprintf("Platform %s does not support offset values in limit queries."$this->getName()));
  2. at AbstractPlatform ->modifyLimitQuery ('SELECT n0_.id AS id_0, n0_.tipus AS tipus_1, n0_.data AS data_2, n0_.imatge AS imatge_3, n0_.autor AS autor_4, n0_.titol AS titol_5, n0_.slug AS slug_6, n0_.text AS text_7, n0_.visible AS visible_8, n0_.es_video AS es_video_9, n0_.es_imatge AS es_imatge_10, n0_.mes AS mes_11, n0_.any AS any_12, n0_.categoria_noticia_id AS categoria_noticia_id_13 FROM noticia n0_ LEFT JOIN categoria_noticia c1_ ON n0_.categoria_noticia_id = c1_.id WHERE n0_.visible = 1 AND c1_.id = ? ORDER BY n0_.data DESC', '3', '-3')
    in vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php at line 542  +
  3. at SqlWalker ->walkSelectStatement (object(SelectStatement))
    in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php at line 42  +
  4. at SingleSelectExecutor ->__construct (object(SelectStatement), object(SqlWalker))
    in vendor/doctrine/orm/lib/Doctrine/ORM/Query/SqlWalker.php at line 277  +
  5. at SqlWalker ->getExecutor (object(SelectStatement))
    in vendor/doctrine/orm/lib/Doctrine/ORM/Query/Parser.php at line 390  +
  6. at Parser ->parse ()
    in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 281  +
  7. at Query ->_parse ()
    in vendor/doctrine/orm/lib/Doctrine/ORM/Query.php at line 293  +
  8. at Query ->_doExecute ()
    in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 969  +
  9. at AbstractQuery ->executeIgnoreQueryCache (null, '1')
    in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 924  +
  10. at AbstractQuery ->execute (null, '1')
    in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 727  +
  11. at AbstractQuery ->getResult ()
    in src/DBBundle/Entity/NoticiaRepository.php at line 58  +
  12. at NoticiaRepository ->findNoticiesPagina ('noticia', 'planos_de_evacuacin_3d')
    in src/PublicBundle/Controller/BlogController.php at line 17  +
  13. at BlogController ->blogAction ('noticia', 'planos_de_evacuacin_3d')
  14. at call_user_func_array (array(object(BlogController), 'blogAction'), array('noticia', 'planos_de_evacuacin_3d'))
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 144  +
  15. at HttpKernel ->handleRaw (object(Request), '1')
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php at line 64  +
  16. at HttpKernel ->handle (object(Request), '1', true)
    in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php at line 69  +
  17. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in app/bootstrap.php.cache at line 1501  +
  18. at Kernel ->handle (object(Request))
    in web/app.php at line 16  +

Logs  -

Stack Trace (Plain Text)  +