Problem/Motivation

When editing a content type's settings (admin/structure/types/manage/foo), the following error occurs:

TypeError: Argument 3 passed to Drupal\rabbit_hole\FormManglerService::addRabbitHoleOptionsToEntityForm() must be an instance of Drupal\rabbit_hole\FormStateInterface, instance of Drupal\Core\Form\FormState given.

Proposed resolution

This is due to a missing use statement in FormManglerService.php.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 typeerror-on-ct-settings-2780501-2.patch488 bytesdietr_ch

Comments

dietr_ch created an issue. See original summary.

dietr_ch’s picture

Status: Active » Needs review
StatusFileSize
new488 bytes
andy_read’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for reporting and submitting a patch, @dietr_ch.
I also hit this error this afternoon when I did a composer update, but adding your patch has fixed the problem.

peacog’s picture

+1 for the patch. It also fixes the error for Taxonomy RH settings

kevinquillen’s picture

This absolutely needs to be committed. The module breaks Drupal content management without this fix.

kevinquillen’s picture

Priority: Major » Critical
jecunningham2281’s picture

I also had this issue when attempting to use rabbit hole with content types. Applying this patch resolved the issue for me. I recommend committing this patch.

basvredeling’s picture

+1 for the patch working and being critical

jeroent’s picture

+1

una_maria’s picture

+1

becw’s picture

Necessary, and works for me as well.

dddbbb’s picture

The patch in #2 works for me too.

tassilogroeper’s picture

+1 - already using it in production

johnpitcairn’s picture

Another vote for #2. A commit would be good.

Yoann Bellarosa’s picture

+1, this patch worked for me too

ruslan piskarov’s picture

The patch in #2 works for me too.

dylan donkersgoed’s picture

Status: Reviewed & tested by the community » Fixed

This has been committed. Sorry about the delay, turns out I wasn't subscribed to issues for this module so I just became aware of this when we ran into the issue today.

dylan donkersgoed’s picture

Status: Fixed » Closed (fixed)
kevinquillen’s picture

Thanks!