After upgrading to 4.0.10 today I'm getting an error on webform submission.

Error: Call to undefined method Drupal\referral_portal\Entity\Node\Referral::setPassword() in Drupal\webform_content_creator\Entity\WebformContentCreatorEntity->mapContentField() (line 471 of modules/contrib/webform_content_creator/src/Entity/WebformContentCreatorEntity.php).
Drupal\webform_content_creator\Entity\WebformContentCreatorEntity->createContent() (Line: 25)
webform_content_creator_webform_submission_insert()
call_user_func_array() (Line: 402)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 355)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 401)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 215)
Drupal\Core\Entity\EntityStorageBase->invokeHook() (Line: 915)
Drupal\Core\Entity\ContentEntityStorageBase->invokeHook() (Line: 565)
Drupal\Core\Entity\EntityStorageBase->doPostSave() (Line: 796)
Drupal\Core\Entity\ContentEntityStorageBase->doPostSave() (Line: 1030)
Drupal\webform\WebformSubmissionStorage->doPostSave() (Line: 490)
Drupal\Core\Entity\EntityStorageBase->save() (Line: 804)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (Line: 988)
Drupal\webform\WebformSubmissionStorage->save() (Line: 370)
Drupal\Core\Entity\EntityBase->save() (Line: 913)
Drupal\webform\Entity\WebformSubmission->save() (Line: 2054)
Drupal\webform\WebformSubmissionForm->save()
call_user_func_array() (Line: 105)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 43)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 589)
Drupal\Core\Form\FormBuilder->processForm() (Line: 321)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 48)
Drupal\Core\Entity\EntityFormBuilder->getForm() (Line: 1250)
Drupal\webform\Entity\Webform->getSubmissionForm() (Line: 89)
Drupal\webform\Controller\WebformEntityController->addForm()

Note that this content creator is creating nodes, not users. There is no password field on the webform.

I'm using PHP 8.3.23, Drupal 11.2.2, Webform 6.3.0-beta4.

CommentFileSizeAuthor
#2 3539192-webform-content-creator-1.patch801 bytesfloydm

Comments

floydm created an issue. See original summary.

floydm’s picture

StatusFileSize
new801 bytes

$attributes[$field_id][WebformContentCreatorInterface::TYPE] is resolving to TRUE. 'password' == 'TRUE'

floydm’s picture

Issue summary: View changes
joaomarques736’s picture

Status: Active » Fixed

Hello floydm,

It is already fixed in 4.0.11. Many thanks for reporting this!

joaomarques736’s picture

floydm’s picture

Fantastic. Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

reevo’s picture

Version: 4.0.10 » 4.0.12

4.0.12 seems to have reintroduced this issue.

rteijeiro’s picture

Patch in #2 still fixes the issue for version 4.0.12. Tested and it works. Maybe reopen the issue until it's committed?

sara_asb’s picture

Hello reevo, thanks for the heads-up! We've re-applied the change and it is now available in release 4.0.13.