I created a form for an event.
I created a "type" field (select) that I will use for the event fee for the event.
I want to used that field with the commerce webform order handler to go to my checkout page.
But after I submitted my form, I still stay on that page and will see this error.
When I check my logs, I see this errors:
Exception: Unable to load the specified entity of type commerce_purchasable_entity. in Drupal\commerce_webform_order\Plugin\WebformHandler\CommerceWebformOrderHandler->loadEntityValue() (regel 1713 van /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/commerce_webform_order/src/Plugin/WebformHandler/CommerceWebformOrderHandler.php).
#0 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/commerce_webform_order/src/Plugin/WebformHandler/CommerceWebformOrderHandler.php(1369): Drupal\commerce_webform_order\Plugin\WebformHandler\CommerceWebformOrderHandler->loadEntityValue('maryhealy_inter...', 'commerce_purcha...', Array)
#1 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/commerce_webform_order/src/Plugin/WebformHandler/CommerceWebformOrderHandler.php(1306): Drupal\commerce_webform_order\Plugin\WebformHandler\CommerceWebformOrderHandler->prepareData(Object(Drupal\webform\Entity\WebformSubmission))
#2 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/commerce_webform_order/src/Plugin/WebformHandler/CommerceWebformOrderHandler.php(987): Drupal\commerce_webform_order\Plugin\WebformHandler\CommerceWebformOrderHandler->shouldBeExecuted(Object(Drupal\webform\Entity\WebformSubmission))
#3 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/webform/src/Entity/Webform.php(2758): Drupal\commerce_webform_order\Plugin\WebformHandler\CommerceWebformOrderHandler->postSave(Object(Drupal\webform\Entity\WebformSubmission), false, NULL)
#4 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/webform/src/WebformSubmissionStorage.php(1214): Drupal\webform\Entity\Webform->invokeHandlers('postSave', Object(Drupal\webform\Entity\WebformSubmission), false, NULL)
#5 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/webform/src/WebformSubmissionStorage.php(1122): Drupal\webform\WebformSubmissionStorage->invokeWebformHandlers('postSave', Object(Drupal\webform\Entity\WebformSubmission), false)
#6 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/Entity/EntityStorageBase.php(489): Drupal\webform\WebformSubmissionStorage->doPostSave(Object(Drupal\webform\Entity\WebformSubmission), false)
#7 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php(806): Drupal\Core\Entity\EntityStorageBase->save(Object(Drupal\webform\Entity\WebformSubmission))
#8 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/webform/src/WebformSubmissionStorage.php(985): Drupal\Core\Entity\Sql\SqlContentEntityStorage->save(Object(Drupal\webform\Entity\WebformSubmission))
#9 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/Entity/EntityBase.php(354): Drupal\webform\WebformSubmissionStorage->save(Object(Drupal\webform\Entity\WebformSubmission))
#10 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/webform/src/Entity/WebformSubmission.php(913): Drupal\Core\Entity\EntityBase->save()
#11 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/webform/src/WebformSubmissionForm.php(2017): Drupal\webform\Entity\WebformSubmission->save()
#12 [internal function]: Drupal\webform\WebformSubmissionForm->save(Array, Object(Drupal\Core\Form\FormState))
#13 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/Form/FormSubmitter.php(129): call_user_func_array(Array, Array)
#14 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/Form/FormSubmitter.php(67): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState))
#15 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/Form/FormBuilder.php(597): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState))
#16 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/Form/FormBuilder.php(326): Drupal\Core\Form\FormBuilder->processForm('webform_submiss...', Array, Object(Drupal\Core\Form\FormState))
#17 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/Entity/EntityFormBuilder.php(48): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\webform\WebformSubmissionForm), Object(Drupal\Core\Form\FormState))
#18 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/webform/src/Entity/Webform.php(1250): Drupal\Core\Entity\EntityFormBuilder->getForm(Object(Drupal\webform\Entity\WebformSubmission), 'add')
#19 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/webform/src/Controller/WebformEntityController.php(89): Drupal\webform\Entity\Webform->getSubmissionForm()
#20 [internal function]: Drupal\webform\Controller\WebformEntityController->addForm(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\webform\Entity\Webform))
#21 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#22 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#23 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#24 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#25 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#26 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#27 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#28 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#29 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#30 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#31 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#32 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#33 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/modules/contrib/webform_product/src/RedirectMiddleware.php(43): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#34 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\webform_product\RedirectMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#35 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#36 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#37 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#38 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#39 /data/sites/web/charisbelgiumbe/subsites/uat.charisbelgium.be/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#40 {main}
I am not sure if I found a new bug, or if it is a wrong configuration from my side.
It looks it's the same like [this bug]( https://www.drupal.org/project/commerce_webform_order/issues/3386001 💬 Unable to load the specified entity of type commerce_product_variation after upgrade Active ) , but all fixes mentioned in that ticket are already in my version.
Active
3.0
Miscellaneous
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.