Symfony Exception

FatalThrowableError

HTTP 500 Internal Server Error

Call to a member function __get() on null

Exception

Symfony\Component\Debug\Exception\ FatalThrowableError

  1.         }
  2.         
  3.         $pager $this->get'sonata.news.manager.post' )->getPager$criteria$request->get'page') );
  4.         
  5.         $pictureService $this->get'GoodMorningEarth\CoreBundle\Business\PictureService' );
  6.         $pictures $pictureService->reorganizePictures$country->__get'pictures' ) );
  7.         
  8.         $parameters = [ 
  9.                 'page' => 'country',
  10.                 'country' => $country,
  11.                 'tab' => $tab,
MainController->country(object(Request)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)
  1.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER_ARGUMENTS$event);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response = \call_user_func_array($controller$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new GetResponseForControllerResultEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch(KernelEvents::VIEW$event);
HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  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) {
HttpKernel->handle(object(Request), 1, true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200)
  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(object(Request)) in web/app.php (line 18)
  1. // $kernel = new AppCache($kernel);
  2. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  3. // Request::enableHttpMethodParameterOverride();
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle$request );
  6. $response->send();
  7. $kernel->terminate$request$response );

Logs 2

Level Channel Message
DEBUG 09:44:00 app recreate countries session
DEBUG 09:44:00 app recreate stats session
DEBUG 09:44:01 app recreate news session
DEBUG 09:44:01 doctrine SELECT t0.id AS id_1, t0.current_country AS current_country_2, t0.current_state AS current_state_3, t0.current_city AS current_city_4, t0.current_datetime AS current_datetime_5, t0.next_country AS next_country_6, t0.next_state AS next_state_7, t0.next_city AS next_city_8, t0.last_pic_country AS last_pic_country_9, t0.last_pic_state AS last_pic_state_10, t0.last_pic_city AS last_pic_city_11 FROM gme_news t0 WHERE t0.id = ?
INFO 09:44:01 php User Deprecated: Doctrine\Common\ClassLoader is deprecated.
DEBUG 09:44:01 doctrine SELECT count(DISTINCT n0_.id) AS sclr_0 FROM news__post n0_ LEFT JOIN news__post_tag n2_ ON n0_.id = n2_.post_id LEFT JOIN classification__tag c1_ ON c1_.id = n2_.tag_id AND (c1_.enabled = 1) LEFT JOIN fos_user_user f3_ ON n0_.author_id = f3_.id AND (f3_.enabled = 1) WHERE n0_.enabled = ?
DEBUG 09:44:01 doctrine SELECT DISTINCT n0_.id AS id_0, n0_.publication_date_start AS publication_date_start_1 FROM news__post n0_ LEFT JOIN news__post_tag n2_ ON n0_.id = n2_.post_id LEFT JOIN classification__tag c1_ ON c1_.id = n2_.tag_id AND (c1_.enabled = 1) LEFT JOIN fos_user_user f3_ ON n0_.author_id = f3_.id AND (f3_.enabled = 1) WHERE n0_.enabled = ? ORDER BY n0_.publication_date_start DESC LIMIT 1
DEBUG 09:44:01 doctrine SELECT n0_.title AS title_0, n0_.abstract AS abstract_1, n0_.content AS content_2, n0_.raw_content AS raw_content_3, n0_.content_formatter AS content_formatter_4, n0_.enabled AS enabled_5, n0_.slug AS slug_6, n0_.publication_date_start AS publication_date_start_7, n0_.comments_enabled AS comments_enabled_8, n0_.comments_close_at AS comments_close_at_9, n0_.comments_default_status AS comments_default_status_10, n0_.comments_count AS comments_count_11, n0_.created_at AS created_at_12, n0_.updated_at AS updated_at_13, n0_.id AS id_14, c1_.name AS name_15, c1_.enabled AS enabled_16, c1_.slug AS slug_17, c1_.created_at AS created_at_18, c1_.updated_at AS updated_at_19, c1_.id AS id_20, n0_.image_id AS image_id_21, n0_.author_id AS author_id_22, n0_.collection_id AS collection_id_23, c1_.context AS context_24 FROM news__post n0_ LEFT JOIN news__post_tag n2_ ON n0_.id = n2_.post_id LEFT JOIN classification__tag c1_ ON c1_.id = n2_.tag_id AND (c1_.enabled = 1) LEFT JOIN fos_user_user f3_ ON n0_.author_id = f3_.id AND (f3_.enabled = 1) WHERE n0_.enabled = ? AND n0_.id IN ('8') ORDER BY n0_.publication_date_start DESC
INFO 09:44:01 request Matched route "gme_country".
INFO 09:44:01 security Populated the TokenStorage with an anonymous Token.
DEBUG 09:44:01 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "GoodMorningEarth\CoreBundle\Listener\KernelListener::onKernelRequest".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::onKernelRequest".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "FOS\RestBundle\EventListener\BodyListener::onKernelRequest".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
DEBUG 09:44:01 event Notified event "kernel.request" to listener "SunCat\MobileDetectBundle\EventListener\RequestResponseListener::handleRequest".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "FOS\RestBundle\EventListener\ParamFetcherListener::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
DEBUG 09:44:02 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".
INFO 09:44:02 php User Deprecated: The "sonata.classification.manager.collection" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
DEBUG 09:44:02 doctrine SELECT t0.name AS name_1, t0.enabled AS enabled_2, t0.slug AS slug_3, t0.description AS description_4, t0.created_at AS created_at_5, t0.updated_at AS updated_at_6, t0.id AS id_7, t0.context AS context_8, t0.media_id AS media_id_9 FROM classification__collection t0 WHERE t0.context = ? AND t0.slug = ? AND t0.enabled = ? LIMIT 1
INFO 09:44:02 php User Deprecated: The "sonata.classification.manager.tag" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
DEBUG 09:44:02 doctrine SELECT t0.name AS name_1, t0.enabled AS enabled_2, t0.slug AS slug_3, t0.created_at AS created_at_4, t0.updated_at AS updated_at_5, t0.id AS id_6, t0.context AS context_7 FROM classification__tag t0 WHERE t0.context = ? AND t0.slug = ? AND t0.enabled = ? LIMIT 1
INFO 09:44:02 php User Deprecated: The "sonata.news.manager.post" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.
DEBUG 09:44:02 doctrine SELECT count(DISTINCT n0_.id) AS sclr_0 FROM news__post n0_ LEFT JOIN news__post_tag n2_ ON n0_.id = n2_.post_id LEFT JOIN classification__tag c1_ ON c1_.id = n2_.tag_id AND (c1_.enabled = 1) LEFT JOIN fos_user_user f3_ ON n0_.author_id = f3_.id AND (f3_.enabled = 1) WHERE n0_.enabled = ? AND n0_.collection_id = ?
CRITICAL 09:44:02 php Call to a member function __get() on null
CRITICAL 09:44:02 request Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function __get() on null" at /homepages/41/d556688721/htdocs/src/GoodMorningEarth/CoreBundle/Controller/MainController.php line 209
DEBUG 09:44:02 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "GoodMorningEarth\CoreBundle\Listener\KernelListener::onKernelRequest".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::onKernelRequest".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "FOS\RestBundle\EventListener\BodyListener::onKernelRequest".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
DEBUG 09:44:02 event Notified event "kernel.request" to listener "SunCat\MobileDetectBundle\EventListener\RequestResponseListener::handleRequest".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "FOS\RestBundle\EventListener\ParamFetcherListener::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ControllerListener::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\HttpCacheListener::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\TemplateListener::onKernelController".
DEBUG 09:44:02 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
DEBUG 09:44:02 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".

Stack Trace

FatalThrowableError

Symfony\Component\Debug\Exception\FatalThrowableError:
Call to a member function __get() on null

  at src/GoodMorningEarth/CoreBundle/Controller/MainController.php:209
  at GoodMorningEarth\CoreBundle\Controller\MainController->country(object(Request))
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (web/app.php:18)