Impossible to use the widget : get the following error

Warning : array_flip(): Can only flip STRING and INTEGER values! in EntityAPIControllerExportable->cacheGet() (ligne 600 dans /home/X/X/X/X/sites/all/modules/entity/includes/entity.controller.inc).

Comments

Anonymous’s picture

Title: White page and array_flip error » White page and array_flip error when using Search Api Ranges widget.
Project: Search API ranges » Entity API
Version: 7.x-1.3 » 7.x-1.x-dev
Component: User interface » Code - misc
Priority: Critical » Normal
Status: Active » Closed (cannot reproduce)

Seems to be an issue in Entity API cache functions?

  /**
   * Overridden.
   * @see DrupalDefaultEntityController::cacheGet()
   */
  protected function cacheGet($ids, $conditions = array()) {
    if (!empty($this->entityCache) && $ids !== array()) {
      $entities = $ids ? array_intersect_key($this->entityCache, array_flip($ids)) : $this->entityCache;
      return $this->applyConditions($entities, $conditions);
    }
    return array();
  }

I don't think this is related to Search API Ranges specifically, probably you have something else going on. Perhaps a cache flush helps.