setPassword Error when submitting webform

Created on 31 July 2025, about 2 months ago

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.

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇨🇦Canada floydm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024