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.
Steps to reproduce:
- Go to a node and on `claim` tab,
without filling anything, submit it for claim. - Go to administrator interface from where you can accept/decline the claim.
- If you approve the claim, everything works fine. But when you `Decline` the claim, it gives a fatal error.
Here is the error message:
Fatal error: Declaration of Drupal\nodeownership\Form\NodeownershipClaimDeclineForm::submitForm(array &$form, Drupal\nodeownership\Form\FormStateInterface $form_state) must be compatible with Drupal\Core\Form\FormInterface::submitForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) in [DRUPALROOT]/modules/nodeownership/src/Form/NodeownershipClaimDeclineForm.php on line 13
Thanks!!
~Amit
Comment | File | Size | Author |
---|---|---|---|
#4 | nodeownership-fatal_error_when_the_claim_is_declined-2778163-4.patch | 1.31 KB | bkhandruk |
Comments
Comment #2
vyasamit2007 CreditAttribution: vyasamit2007 as a volunteer and commentedComment #3
bkhandruk CreditAttribution: bkhandruk commentedComment #4
bkhandruk CreditAttribution: bkhandruk commentedChanged name of decline ownership claim class in order to comply with PSR-4 standards.
Comment #5
vyasamit2007 CreditAttribution: vyasamit2007 as a volunteer and commentedThe patch doesn't follow the structure of the module, but the issue will be fixed.
This will be part of the next release.
Thanks!
Comment #6
vyasamit2007 CreditAttribution: vyasamit2007 as a volunteer and commented