Fatal error: Call to a member function getState() on a non-object in /home/whyhunger/public_html/networks/src/WhyHunger/Bundle/FrontendBundle/Controller/DefaultController.php on line 371
Error: Call to a member function getState() on a non-object (500 Internal Server Error)
Exception detected!

Error: Call to a member function getState() on a non-object

500 Internal Server Error - FatalErrorException

Stack Trace

  1. in src/WhyHunger/Bundle/FrontendBundle/Controller/DefaultController.php at line 371  -
    1.                 foreach($pagination->getItems() as $item){
    2.                     $addr=$item->getAddress();
    3.                     
    4.                     if ($addr->getState())
    5.                     {
    6.                         
    7.                     }

Logs  -

Stack Trace (Plain Text)  +