I get this Error:

[Tue Aug 09 14:07:19.622317 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP Fatal error:  Call to a member function getMode() on null in /var/www/myproject/modules/contrib/field_group/field_group.module on line 120
[Tue Aug 09 14:07:19.622355 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP Stack trace:
[Tue Aug 09 14:07:19.622364 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP   1. {main}() /var/www/myproject/index.php:0
[Tue Aug 09 14:07:19.622370 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP   2. Drupal\\Core\\DrupalKernel->handle() /var/www/myproject/index.php:19
[Tue Aug 09 14:07:19.622376 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP   3. Stack\\StackedHttpKernel->handle() /var/www/myproject/core/lib/Drupal/Core/DrupalKernel.php:628
[Tue Aug 09 14:07:19.622382 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP   4. Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle() /var/www/myproject/vendor/stack/builder/src/Stack/StackedHttpKernel.php:23
[Tue Aug 09 14:07:19.622387 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP   5. Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle() /var/www/myproject/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php:50
[Tue Aug 09 14:07:19.622394 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP   6. Drupal\\page_cache\\StackMiddleware\\PageCache->handle() /var/www/myproject/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php:47
[Tue Aug 09 14:07:19.622399 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP   7. Drupal\\page_cache\\StackMiddleware\\PageCache->pass() /var/www/myproject/core/modules/page_cache/src/StackMiddleware/PageCache.php:77
[Tue Aug 09 14:07:19.622404 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP   8. Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle() /var/www/myproject/core/modules/page_cache/src/StackMiddleware/PageCache.php:98
[Tue Aug 09 14:07:19.622409 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP   9. Drupal\\Core\\StackMiddleware\\Session->handle() /var/www/myproject/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php:47
[Tue Aug 09 14:07:19.622414 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  10. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /var/www/myproject/core/lib/Drupal/Core/StackMiddleware/Session.php:57
[Tue Aug 09 14:07:19.622420 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  11. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /var/www/myproject/vendor/symfony/http-kernel/HttpKernel.php:64
[Tue Aug 09 14:07:19.622431 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  12. call_user_func_array:{/var/www/myproject/vendor/symfony/http-kernel/HttpKernel.php:144}() /var/www/myproject/vendor/symfony/http-kernel/HttpKernel.php:144
[Tue Aug 09 14:07:19.622437 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  13. Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() /var/www/myproject/vendor/symfony/http-kernel/HttpKernel.php:144
[Tue Aug 09 14:07:19.622443 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  14. Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() /var/www/myproject/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:97
[Tue Aug 09 14:07:19.622448 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  15. Drupal\\Core\\Render\\Renderer->executeInRenderContext() /var/www/myproject/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:124
[Tue Aug 09 14:07:19.622453 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  16. Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}() /var/www/myproject/core/lib/Drupal/Core/Render/Renderer.php:574
[Tue Aug 09 14:07:19.622459 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  17. call_user_func_array:{/var/www/myproject/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123}() /var/www/myproject/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123
[Tue Aug 09 14:07:19.622464 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  18. Drupal\\Core\\Controller\\FormController->getContentResult() /var/www/myproject/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php:123
[Tue Aug 09 14:07:19.622469 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  19. Drupal\\Core\\Form\\FormBuilder->buildForm() /var/www/myproject/core/lib/Drupal/Core/Controller/FormController.php:74
[Tue Aug 09 14:07:19.622473 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  20. Drupal\\Core\\Form\\FormBuilder->prepareForm() /var/www/myproject/core/lib/Drupal/Core/Form/FormBuilder.php:272
[Tue Aug 09 14:07:19.622478 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  21. Drupal\\Core\\Extension\\ModuleHandler->alter() /var/www/myproject/core/lib/Drupal/Core/Form/FormBuilder.php:816
[Tue Aug 09 14:07:19.622482 2016] [:error] [pid 19955] [client 127.0.0.1:54184] PHP  22. field_group_form_alter() /var/www/myproject/core/lib/Drupal/Core/Extension/ModuleHandler.php:501


Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zuernBernhard created an issue. See original summary.

zuernBernhard’s picture

And the attached patch solves the problem.

zuernBernhard’s picture

nils.destoop’s picture

Status: Active » Closed (duplicate)

This was duplicate of #2720287: Check if form mode is present before trying to extract field_group form information. I committed that patch. Thx for the effort.