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.
Webform nodes can no longer be deleted when mollom is enabled after updating to beta7. Attempting to delete leads to the following fatal error: Call to a member function initialize() on null in /var/www/natarch/modules/contrib/mollom/src/API/FeedbackManager.php on line 51.
This is the referenced code:
$forms = FormController::getProtectedForms();
$mollom_form = Form::load($forms['delete'][$form_state->getFormObject()->getFormId()])->initialize();
$entity_type = $mollom_form['entity'];
Other nodes can still be deleted, so I suspect that this is a webform issue.
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThis is not a Webform issue, because the Webform module does not implement any support hooks for Mollom.
I am assuming the problem goes away if Mollom is disabled.
Comment #3
LaravZ CreditAttribution: LaravZ commentedTrue, the problem disappears when mollom is disabled. Unfortunately, this means that, for now, integration of webforms with mollom is not without problems. I'll close the ticket on this module.