A view that displays a list of ECK entities shows this notice:
Notice: Undefined index: domain in get_bundle_crud_info() (line 153 of /home/domains/public_html/sites/all/modules/eck/eck.entity.inc).
I have not been able to find the cause. Any hints?

The 'domain' mentioned is the name of the entity type.

error

UPDATE: this has become a fatal error now:
Fatal error: Class name must be a valid object or a string in common.inc on line 7999

CommentFileSizeAuthor
ScreenClip.png27.26 KBYuri

Comments

Yuri created an issue. See original summary.

Yuri’s picture

Issue summary: View changes
Yuri’s picture

I have found out that this notice appears because of the entity bundle filter in the view.
Strange thing is that other views that filter on a bundle, don't show the notice.

Yuri’s picture

This issue now has turned into a fatal error:
Fatal error: Class name must be a valid object or a string in common.inc on line 7999

That line is: return $controllers[$entity_type];

/**
 * Gets the entity controller for an entity type.
 *
 * @return DrupalEntityControllerInterface
 *   The entity controller object for the specified entity type.
 */
function entity_get_controller($entity_type) {
  $controllers = &drupal_static(__FUNCTION__, array());
  if (!isset($controllers[$entity_type])) {
    $type_info = entity_get_info($entity_type);
    $class = $type_info['controller class'];
    $controllers[$entity_type] = new $class($entity_type);
  }
  return $controllers[$entity_type];
}

When I add a bundle filter to an entity view (i.e. "Project: project type, The type of this project entity") this fatal error shows up on a blank page.

Yuri’s picture

Title: A views shows Undefined index: domain in get_bundle_crud_info() » Fatal error and Undefined index
Yuri’s picture

Issue summary: View changes
Yuri’s picture

Priority: Normal » Major
Yuri’s picture

I found the problem: it was caused by an entity reference field that was pointing at an entity bundle which was not part of the view.
A fatal error should not happen though.

Yuri’s picture

Priority: Major » Normal
akalata’s picture

Hi again @Yuri! Same question of 2.x vs. 3.x. :)

dieterholvoet’s picture

Status: Active » Closed (won't fix)

We're dropping support for Drupal 7 since it has officially reached end of life on the 5th of January 2025.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.