I'm getting these errors:

  • Notice: Undefined index: ideal_transaction in idealui_transaction_list() (line 73 of /var/www/X/plazaregalo/sites/all/modules/ideal/idealui/includes/idealui.admin.inc).
  • Warning: array_keys() expects parameter 1 to be array, null given in idealui_transaction_list() (line 73 of /var/www/X/plazaregalo/sites/all/modules/ideal/idealui/includes/idealui.admin.inc).
  • Here's the referenced code, for convenience:

      $entities = $query->entityCondition('entity_type', 'ideal_transaction')
        ->propertyOrderBy($sort_field, $order)
        ->range($page * 20, 20)
        ->execute();
      $transactions = entity_load('ideal_transaction', array_keys($entities['ideal_transaction']));
    

    Turns out that the query returns nothing (an empty array). Is that the expected behavior? If so, a simple check before line 73 wold suffice.

    Comments

    xano’s picture

    Title: Error in admin UI after clean installation. » Undefined index after EntityFieldQuery execution
    Component: User interface » Code
    Assigned: Unassigned » xano
    Priority: Normal » Minor
    Status: Active » Fixed

    Thanks for reporting this bug!

    Fixed and committed to 7.x-2.x-dev.

    Status: Fixed » Closed (fixed)

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

    xano’s picture

    Assigned: xano » Unassigned