Incompatibility with EVA module.

Created on 10 September 2013, almost 12 years ago
Updated 30 July 2025, 13 days ago

First off thanks for the module. It is great. I am using it successfully on other sites that don't use EVA.

Not sure if I would really say this is a bug with this module but it is not compatible with EVA: Entity Views Attachment.

When both enabled it causes an infinite loop and you get an error like: "PHP Fatal error: Maximum function nesting level of '500' reached, aborting! in ....../includes/cache.inc on line 335"

This is because

function _extrafield_views_integration_get_extra_fields_for_entity_type($entity_type, $bundles, &$extra_fields) {
  foreach ($bundles as $bundle) {
    $temp_fields = field_info_extra_fields($entity_type, $bundle, 'display');

This function is called by extrafield_views_integration_views_data. When field_info_extra_fields is called it in turn calls eva_field_extra_fields which needs Views information so it comes back to extrafield_views_integration_views_data thus causing the infinite loop.

The only way around this that I can think of right off is making a custom version of field_info_extra_fields that would call all implementations of hook_field_extra_fields except eva_field_extra_fields. Though that feels kind of hacky.

I am not sure if is worth it but it would nice if there was some kind of notice on the project page that it is not compatible with EVA since it has over 25k usage.

πŸ› Bug report
Status

Closed: outdated

Version

1.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡¦Ukraine bohart Lutsk, Ukraine

    D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
    Development or support is not planned for D7.

    All D7-related issues are marked as outdated in a bunch.
    Still, everyone can apply the patch above to their projects.

    If the issue's topic is actual in D10+ versions, please create a follow-up issue or comment on this one (to re-open and switch to the 2.2.x development branch).
    Thanks!

Production build 0.71.5 2024