This issue is a showstopper with the latest Drupal core.

I get WSOD when displaying a node comment form with Mollom enabled. This means the node itself fails to show if the comment form is on the same page.

The log shows:

Notice: Array to string conversion in Drupal\Core\Config\Entity\ConfigEntityStorage->doLoadMultiple() (line 181 of /home/ross/devel/d8test/www/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php).

I have solved it and I'm happy to submit a patch but I'm still quite new to most of Drupal 8 so ... perhaps there is more to it than I'm seeing.

In mollom.module, mollom_form_alter, line 303 we have this:

if (isset($forms['protected'][$form_id])) {
  $protected_form_id = [$form_id];
}

I don't think $protected_form_id should be turned into a one element array. The form displays correctly if I remove the square brackets so $protected_form_id is just a string.

Then there is another problem when I attempt to post a comment ("reason" can't be null) but I'll create another issue for that.

CommentFileSizeAuthor
#4 2560147-4.patch560 bytestetranz
PASSED: [[SimpleTest]]: [PHP 5.5 MySQL] 68 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more

Comments

tetranz created an issue. See original summary.

tetranz’s picture

Issue summary: View changes
tetranz’s picture

Title: Warning: array_flip(): Can only flip STRING and INTEGER values! in Drupal\Core\Entity\EntityStorageBase->loadMultiple() » Warning: array_flip(): Can only flip STRING and INTEGER values! in EntityStorageBase
tetranz’s picture

FileSize
560 bytes
PASSED: [[SimpleTest]]: [PHP 5.5 MySQL] 68 pass(es). View

I thought I'd create a patch.

Maybe there is more to it than I'm seeing but I think it is just this.

tetranz’s picture

Assigned: Unassigned » tetranz
Status: Active » Needs review
eshta’s picture

Status: Needs review » Fixed

Darn... this was fixed while I was doing some other stuff....
http://cgit.drupalcode.org/mollom/commit/?h=8.x-1.x&id=73fd7c7aa428bba7c...
But you and mbaynton win the I'll buy you a beer at the next Drupalcon commit award.

Status: Fixed » Closed (fixed)

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