There are methods still called validate() in some of the forms.

According to change record EntityFormInterface::validate() removed in favor of EntityFormInterface::validateForm() they need to be renamed.

If they are not renamed, they aren't called. This breaks IndexForm which requires validateForm to create a $this->originalEntity before submitForm for a new index.
Without the patch that leads into a fatal error.

Comments

ekes’s picture

Cleans up a set of test fails I had.

mkalkbrenner’s picture

Title: Form validate() to formValidate() » Form validate() to formValidate(), leads to fatal error on index creation
Priority: Normal » Critical
Status: Active » Needs review

Priority is 'Critical' because it leads to a fatal error when creating a new index:
Fatal error: Call to a member function getOptions() on a non-object ...

BTW: The corresponding change record is EntityFormInterface::validate() removed in favor of EntityFormInterface::validateForm()

Status: Needs review » Needs work

The last submitted patch, 1: 2529036-01-form_validate_to_formValidate.patch, failed testing.

ekes’s picture

NB: The exception that this fails on is there without this patch. It's something separate.

mkalkbrenner’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new508 bytes
new2.29 KB

Just a minor addition. IndexProcessorsForm::validateForm() should also delegate to parent::validateForm().

Status: Needs review » Needs work

The last submitted patch, 5: 2529036-formValidate-05.patch, failed testing.

ekes’s picture

See #2529990: Call to Renderer::render() causing an exception. for a patch that makes that exception go away.

  • drunken monkey committed a4b7029 on 8.x-1.x authored by ekes
    Issue #2529036 by ekes, mkalkbrenner: Adapted to validate() method name...
drunken monkey’s picture

Status: Needs work » Fixed

Thanks a lot to both of you, looks good. Committed.
In the future, if Core breaks our module, please feel free to ping me in IRC or via mail to commit the patch.
In any case, thanks again!

Status: Fixed » Closed (fixed)

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