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.
Because of other modules I have found that sometimes the method $view_entity = $view->display_handler->get_option('entity_type');
can return NULL / FALSE. Causing errors and Notices, especially in eva_field_extra_fields();
EG:
Warning: array_keys() expects parameter 1 to be array, null given in eva_field_extra_fields() (line 34 of /sites/all/modules/common/eva/eva.module).
Warning: Invalid argument supplied for foreach() in eva_field_extra_fields() (line 36 of /sites/all/modules/common/eva/eva.module).
The attached patch mitigates this.
Comment | File | Size | Author |
---|---|---|---|
eva-handle-empty-options.patch | 1.76 KB | NaX | |
Comments
Comment #1
geek-merlinHmm, this looks like it only covers a bug from another module. Can you provide a minimal setup to reproduce this and a PBT backtrace?