Problem/Motivation

I've followed the steps outlined in the Placing webforms as block video tutorial, and I'm getting the following message when submitting the block form.

I have also tried the Webform Demo: Application/Evaluation System, on a fresh install with the same result.

Drupal\Core\Entity\EntityStorageException: Field entity_id_webform_submission is unknown. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save()

Drupal 9.4.5 & Webform 6.1.3 & php 7.4 , 8.1

Steps to reproduce

Install Webform Demo: Application/Evaluation System
Go to Demo Application form, complete the field and submit the form.
Go to the submission, view the recent submission, complete the Evaluation form and submit.

Comments

pablozuy created an issue. See original summary.

pablozuy’s picture

Version: 6.2.x-dev » 6.1.3
jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)

I am not able to reproduce this issue using PHP 8.0.

This type of error indicates that the Webform module was installed correctly or as expected.
@see #2861863: InvalidArgumentException "Field is unknown" in ContentEntityBase

Are you able to reproduce this issue using https://simplytest.me?

pablozuy’s picture

Hello, thank you very much for your answer. I tried to install an instance on simpletest.me but it returns errors when installing Drupal + Webform module.

But in the install I had done locally, I had enabled all the "webforms" modules that I had in my composer.json.
Checking the error I saw the line: webform_views_extras_entity_presave()

So I uninstalled the webform_views_extras module and now it works.
It's a shame as it's a useful module to extend the functionalities of webform in views. If you have any ideas to fix this problem without uninstalling the module, that would be welcome.

I copy the first lines of initial error.

Drupal\Core\Entity\EntityStorageException: Field entity_id_webform_submission is unknown. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 811 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Drupal\Core\Entity\ContentEntityBase->get() (Line: 628)
Drupal\Core\Entity\ContentEntityBase->set() (Line: 99)
webform_views_extras_entity_presave()
call_user_func_array() (Line: 426)

cilefen’s picture

Project: Webform » Webform Views Extras
Version: 6.1.3 » 2.0.x-dev
Status: Postponed (maintainer needs more info) » Active
jaswindersingh’s picture

Is there a solution for this issue. This modules seems unusable without resolving open issues.