Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | fatal_when_enabling_the-2316445-2.patch | 1.74 KB | clemens.tolboom |
#1 | form_state.patch | 1.81 KB | al.ex |
Comments
Comment #1
al.ex CreditAttribution: al.ex commented@clemens.tolboom I appended a patch that fixes this error.
Comment #2
clemens.tolboomI had to run
patch -p4 <form_state_8.patch
. Attached patch fixes this.@al.ex thanks. This make drush and the page work again.
Comment #4
juampynr CreditAttribution: juampynr commentedI 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!