If you happen to have Multiversion enabled on a site, and you make a view that is powered by Search API, you will frequently encounter this annoying warning:

Notice: Undefined offset: 0 in multiversion_views_post_execute() (line 248 of path/to/multiversion/multiversion.module).

This is due to an assumption made in multiversion_views_post_execute():

if (is_array($view->result) && $content_type = $content_type_info[0])

Since Search API views aren't really pinned to an entity type, $content_type_info is empty. Thus the warning.

CommentFileSizeAuthor
#2 2844998-2.patch747 bytesphenaproxima
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

phenaproxima created an issue. See original summary.

phenaproxima’s picture

Status: Active » Needs review
FileSize
747 bytes
Grimreaper’s picture

  • jeqq committed 2b672b4 on 8.x-1.x authored by phenaproxima
    Issue #2844998 by phenaproxima, jeqq: multiversion_views_post_execute()...
jeqq’s picture

Status: Needs review » Fixed

Thanks @phenaproxima!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.