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.
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
Comment | File | Size | Author |
---|---|---|---|
#5 | 2781315-fatal-error-3.patch | 756 bytes | andyrigby |
|
Comments
Comment #2
andyrigby CreditAttribution: andyrigby at Ixis - UK Drupal Support, Maintenance, Hosting and Development commentedComment #3
andyrigby CreditAttribution: andyrigby at Ixis - UK Drupal Support, Maintenance, Hosting and Development commentedComment #4
andyrigby CreditAttribution: andyrigby at Ixis - UK Drupal Support, Maintenance, Hosting and Development commentedComment #5
andyrigby CreditAttribution: andyrigby at Ixis - UK Drupal Support, Maintenance, Hosting and Development commentedComment #6
eshta CreditAttribution: eshta at Acquia commentedSetting the testbots on it. Looks clear enough, though. Thanks!
Comment #8
eshta CreditAttribution: eshta at Acquia commented