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.
If a service has no configuration form, then form state will have no values for it (obviously).
While the submit handler has this code:
$options = isset($values['options']['form']) ? $values['options']['form'] : array();
$server->configurationFormSubmit($form['options']['form'], $options, $form_state);
the validate handler doesn't, and just passes form state directly:
$service->configurationFormValidate($form['options']['form'], $form_state['values']['options']['form'], $form_state);
which then triggers the fatal error when configurationFormValidate() gets NULL instead of an empty array.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1535726-fix-fatal-error.patch | 655 bytes | bojanz |
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedHere's a simple fix.
Comment #2
jsacksick CreditAttribution: jsacksick commentedThanks.