- Issue created by @saket kumar
we are using below drupal module Webform, Webform REST and Next.js, when using Webform and Webform Rest module and we enable webform setting of Disable saving of submissions then webform submission work as expected but as soon as we enable the drupal Next.js module and do webform submission for the same form or any new form where this setting is enabled we start getting below 500 Internal server error for webform having Disable saving of submissions setting enabled.
The website encountered an unexpected error. Try again later.
Drupal\Core\Entity\EntityStorageException: The "webform_submission" entity cannot have a URI as it does not have an ID in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 817 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Drupal\next\Event\EntityActionEvent::createFromEntity() (Line: 71)
next_entity_insert()
call_user_func_array() (Line: 416)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 395)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 415)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 217)
Drupal\Core\Entity\EntityStorageBase->invokeHook() (Line: 900)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook() (Line: 564)
Drupal\Core\Entity\EntityStorageBase->doPostSave() (Line: 781)
Drupal\Core\Entity\ContentEntityStorageBase->doPostSave() (Line: 1027)
Drupal\webform\WebformSubmissionStorage->doPostSave() (Line: 489)
Drupal\Core\Entity\EntityStorageBase->save() (Line: 806)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (Line: 985)
Drupal\webform\WebformSubmissionStorage->save() (Line: 354)
Drupal\Core\Entity\EntityBase->save() (Line: 913)
Drupal\webform\Entity\WebformSubmission->save() (Line: 3346)
Drupal\webform\WebformSubmissionForm::submitWebformSubmission() (Line: 3278)
Drupal\webform\WebformSubmissionForm::submitFormValues() (Line: 171)
Drupal\webform_rest\Plugin\rest\resource\WebformSubmitResource->post()
call_user_func_array() (Line: 219)
Drupal\rest\RequestHandler->delegateToRestResourcePlugin() (Line: 68)
Drupal\rest\RequestHandler->handle()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 68)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 53)
Asm89\Stack\Cors->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)
Active
1.6
Code