Problem/Motivation

When using the core_views_facets and facets modules and trying to configure a facet source I receive the following fatal error:

Fatal error: Cannot access protected property Drupal\facets\Entity\FacetSource::$id in /var/www/ixis.vm/public/modules/contrib/mollom/mollom.module on line 602

Proposed resolution

The $id property is protected and mollom_entity_update() should use the public id() method instead. After a bit of digging it would seem many classes that extend ConfigEntityBase define the $id property as protected.

Remaining tasks

Patch + tests

User interface changes

None

API changes

None

Data model changes

None

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andyrigby created an issue. See original summary.

andyrigby’s picture

FileSize
876 bytes
andyrigby’s picture

Issue summary: View changes
andyrigby’s picture

andyrigby’s picture

eshta’s picture

Status: Active » Needs review

Setting the testbots on it. Looks clear enough, though. Thanks!

  • eshta committed eec46eb on 8.x-1.x authored by andyrigby
    Issue #2781315 by andyrigby: Fatal error in mollom_entity_update()
    
eshta’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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