Hello,

I've been getting this error repeatedly this afternoon and haven't been able to pinpoint where it is coming from. It usually happens when I try to purge all the webform submissions or install the content sync module.

I tried deleting all my webforms and webform submissions but no luck.

Does anyone have any suggestions?

Thank you for any assistance you may be able to provide.

[Mon Apr 08 18:42:47.821936 2019] [php7:notice] [pid 12711] [client 100.11.xxx.xxx:64760] Error: Call to a member function getElementsInitializedFlattenedAndHasValue() on null in /var/www/html/modules/contrib/webform/src/WebformSubmissionStorage.php on line 1278 #0 /var/www/html/modules/contrib/webform/src/WebformSubmissionStorage.php(145): Drupal\\webform\\WebformSubmissionStorage->loadData(Array)\n#1 /var/www/html/core/lib/Drupal/Core/Entity/EntityStorageBase.php(279): Drupal\\webform\\WebformSubmissionStorage->doLoadMultiple(Array)\n#2 /var/www/html/modules/contrib/webform/src/WebformSubmissionStorage.php(241): Drupal\\Core\\Entity\\EntityStorageBase->loadMultiple(Array)\n#3 /var/www/html/modules/contrib/webform/src/Form/WebformSubmissionsDeleteFormBase.php(204): Drupal\\webform\\WebformSubmissionStorage->deleteAll(NULL, NULL, 500, '2664')\n#4 /var/www/html/core/includes/batch.inc(294): Drupal\\webform\\Form\\WebformSubmissionsDeleteFormBase->batchProcess(NULL, NULL, '2664', Array)\n#5 /var/www/html/core/includes/batch.inc(137): _batch_process()\n#6 /var/www/html/core/includes/batch.inc(93): _batch_do()\n#7 /var/www/html/core/modules/system/src/Controller/BatchController.php(55): _batch_page(Object(Symfony\\Component\\HttpFoundation\\Request))\n#8 [internal function]: Drupal\\system\\Controller\\BatchController->batchPage(Object(Symfony\\Component\\HttpFoundation\\Request))\n#9 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)\n#10 /var/www/html/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#11 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\\Core\\Render\\Renderer->executeInRenderContext(Object(Drupal\\Core\\Render\\RenderContext), Object(Closure))\n#12 /var/www/html/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)\n#13 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\\Core\\EventSubscriber\\EarlyRenderingControllerWrapperSubscriber->Drupal\\Core\\EventSubscriber\\{closure}()\n#14 /var/www/html/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#15 /var/www/html/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#16 /var/www/html/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\\Core\\StackMiddleware\\Session->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#17 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#18 /var/www/html/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\\page_cache\\StackMiddleware\\PageCache->pass(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#19 /var/www/html/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\\page_cache\\StackMiddleware\\PageCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#20 /var/www/html/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#21 /var/www/html/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#22 /var/www/html/core/lib/Drupal/Core/DrupalKernel.php(693): Stack\\StackedHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#23 /var/www/html/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#24 {main}, referer: https://app.quadstat.net/batch?id=463&op=start

Comments

pmagunia created an issue. See original summary.

jrockowitz’s picture

One of your webforms is missing its elements. I have only seen this type of bug on multilingual sites.

jmagunia’s picture

Status: Active » Closed (works as designed)

OK Thanks @jrockowitz!

I’ll try tracing the particular Webform.