Exception detected!

500 Internal Server Error - NonUniqueResultException

Stack Trace

  1. in /home/senso/megapoint/vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php at line 657  -
    1.         }
    2.         if (count($result) > 1) {
    3.             throw new NonUniqueResultException;
    4.         }
    5.         return array_shift($result);
  2. at AbstractQuery ->getSingleResult ()
    in /home/senso/megapoint/src/Megapoint/CmsBundle/Repository/CategoryRepository.php at line 41  +
  3. at CategoryRepository ->getCategoryBySlug ('termoparells')
    in /home/senso/megapoint/src/Megapoint/CmsBundle/Controller/Frontend/CmsController.php at line 259  +
  4. at CmsController ->categoryAction (object(Request), 'termoparells')
  5. at call_user_func_array (array(object(CmsController), 'categoryAction'), array(object(Request), 'termoparells'))
    in kernel.root_dir/bootstrap.php.cache at line 2911  +
  6. at HttpKernel ->handleRaw (object(Request), '1')
    in kernel.root_dir/bootstrap.php.cache at line 2883  +
  7. at HttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 3022  +
  8. at ContainerAwareHttpKernel ->handle (object(Request), '1', true)
    in kernel.root_dir/bootstrap.php.cache at line 2303  +
  9. at Kernel ->handle (object(Request))
    in /home/senso/public_html/app.php at line 27  +

Logs  -

Stack Trace (Plain Text)  +