Fatal error: Call to a member function getPhoto() on null in /home/bureaufr/new.bureaucultureleg.fr/src/AdminBundle/Controller/ArticleController.php on line 162
Error: Call to a member function getPhoto() on null (500 Internal Server Error)
Exception detected!

Error: Call to a member function getPhoto() on null

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/AdminBundle/Controller/ArticleController.php at line 162  -
    1.         $session=$request->getSession();
    2.         $affich=2;
    3.         $article=$em->getRepository('ArticleBundle:Article')->find($id);
    4.         $filename=$article->getPhoto();
    5.                 
    6.         // Quand origin == 3 ou 6, edition d'Article et d'activités avec Subject complété !

Logs  -

Stack Trace (Plain Text)  +