Problem/Motivation

Don't have steps to reproduce narrowed down yet, but:

- add Content: nid as a field, hidden
- enable aggregation on the view
- save the view and visit the page

The View I found this with has a couple of non-required reference fields on relationships, and exposed filters using those relationships.

Drupal\\views\\Plugin\\views\\field\\Field::createEntityForGroupBy() must implement interface Drupal\\Core\\Entity\\EntityInterface, null given, called in docroot/core/modules/views/src/Plugin/views/field/Field.php on line 809 and defined in docroot/core/modules/views/src/Plugin/views/field/Field.php on line 851

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

catch created an issue. See original summary.

anruether’s picture

I am seeing the same error on different views each time I turn on Aggregation. In one view it gave me a white screen for the whole site on the other I could still access the Views Admin interface to turn aggregation off. I can give more details, but only next week.

anruether’s picture

Slightly different error message:

AH01071: Got error 'PHP message: TypeError: Argument 1 passed to Drupal\\views\\Plugin\\views\\field\\Field::createEntityForGroupBy() must implement interface Drupal\\Core\\Entity\\EntityInterface, null given, called in /var/www/drupalvm/d_lightning_stable/docroot/core/modules/views/src/Plugin/views/field/Field.php on line 825 in /var/www/drupalvm/d_lightning_stable/docroot/core/modules/views/src/Plugin/views/field/Field.php on line 867\n', referer: http://drupalvm.dev/admin/structure/block/block-content
dawehner’s picture

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Andre-B’s picture

Status: Active » Closed (duplicate)

closed in favor of https://www.drupal.org/node/2799415 (with steps to reproduce, patch, and test suggestion - still some work left to be done there.)