Views UI (7.x-3.3+122-dev), when enabled triggers these errors (whether or not it is causing the errors or just making them surface is undetermined):

Notice: Undefined index: relation in field_info_instances() (line 687 of /home/account/public_html/drupal/modules/field/field.info.inc).
Notice: Undefined index: reply in field_info_instances() (line 687 of /home/account/public_html/drupal/modules/field/field.info.inc).

Any advice?

Comments

merlinofchaos’s picture

Hm. Views UI by itself doesn't do much with fields. I'm not sure how it could be responsible for a notice like that.

Do you have the 'relation' module by chance?

deanflory’s picture

Yes, Relation is installed an enabled.

dawehner’s picture

Project: Views (for Drupal 7) » Relation
Version: 7.x-3.x-dev » 7.x-1.x-dev
Component: Code » User interface

Maybe the folks from relation module has an idea where this error comes from.

radoeka’s picture

I've a similar warning, but for the index "file";
Notice: Undefined index: file in field_info_instances() (line 687 of modules/field/field.info.inc)

    681 function field_info_instances($entity_type = NULL, $bundle_name = NULL) {
........
    686   if (!isset($bundle_name)) {
    687     return $info['instances'][$entity_type];
    688   }
........

After disabling the views UI module, the warning is gone.
Right after enabling the views UI module the warning is displayed.

I've the module 'file' installed and active.

kinkajous1’s picture

Title: Views UI module triggers Notice: Undefined index: relation in field_info_instances() (line 687 of » Views UI module triggers Notice: Undefined index: relation in field_info_instances() (line 682 of

I'm getting this error message and having server errors when moving around from content to structure etc. I have Views UI enabled and am just learning how to create my site. I do not have the most recent version of 7 - it is the previous iteration.

There may also be a hosting problem causing the server errors. At this point I am trying to pinpoint what the problem is in order to find a fix. Any advice is most welcome!

katannshaw’s picture

Project: Relation » Views (for Drupal 7)
Version: 7.x-1.x-dev » 7.x-3.3
Issue tags: +file, +views, +views ui

I'm receiving the same error, but instead of "relation", it says "file". This is what I see when editing and saving different views with the Views UI:

Notice: Undefined index: file in field_info_instances() (line 687 of ... \modules\field\field.info.inc).

Is there any advice on what this could be?