PHP Fatal error: Declaration of Drupal\restui\Form\RestUIForm::buildForm() must be compatible with Drupal\Core\Form\FormInterface::buildForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) in /Users/clemens/Sites/drupal/d8/www/modules/restui/src/Form/RestUIForm.php on line 244

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

al.ex’s picture

FileSize
1.81 KB

@clemens.tolboom I appended a patch that fixes this error.

clemens.tolboom’s picture

Status: Active » Reviewed & tested by the community
FileSize
1.74 KB

I had to run patch -p4 <form_state_8.patch. Attached patch fixes this.

@al.ex thanks. This make drush and the page work again.

  • juampy committed 2d279c8 on 8.x-1.x
    Issue #2316445 by clemens.tolboom, al.ex, juampy: Fixed Fatal when...
juampynr’s picture

Status: Reviewed & tested by the community » Fixed

I worked on this offline and did not see the patch. Added a few more changes for validating the form and removed an unneeded service.

Thanks guys!

Status: Fixed » Closed (fixed)

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