Whenever I create, modify, view a view or clear cache I see this message (two or more times):

Notice: Undefined index: field w views_handler_relationship->option_definition() (linia 63 z /mnt/host-users/r/a/d/radror/drupal7/sites/all/modules/views/handlers/views_handler_relationship.inc).

I also tried dev version on clean D7 install.

CommentFileSizeAuthor
#3 1261468-notices.patch1.6 KBdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

You seems to provide not a lot of informations.

In general it would help if you could think that we aren't sitting in front of your computer seeing the exact
same error message, and so are able to just see what is going on.

There is a handbook page how to provide helpful bug reports, which you should really read, because you want to get this issue fixed as well: http://drupal.org/node/571990

rq’s picture

Sample view giving an error

$view = new view;
$view->name = 'odwiedziny_zewnetrzne';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'accesslog';
$view->human_name = 'odwiedziny_zewnetrzne';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Master */
$handler = $view->new_display('default', 'Master', 'default');
$handler->display->display_options['title'] = 'Wizyty';
$handler->display->display_options['access']['type'] = 'none';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['query']['options']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Przywróć';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '30';
$handler->display->display_options['style_plugin'] = 'table';
/* Relationship: Access log: Użytkownik */
$handler->display->display_options['relationships']['uid']['id'] = 'uid';
$handler->display->display_options['relationships']['uid']['table'] = 'accesslog';
$handler->display->display_options['relationships']['uid']['field'] = 'uid';
$handler->display->display_options['relationships']['uid']['label'] = '';
$handler->display->display_options['relationships']['uid']['required'] = 0;
/* Pole: Access log: Nazwa hosta */
$handler->display->display_options['fields']['hostname']['id'] = 'hostname';
$handler->display->display_options['fields']['hostname']['table'] = 'accesslog';
$handler->display->display_options['fields']['hostname']['field'] = 'hostname';
$handler->display->display_options['fields']['hostname']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['hostname']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['hostname']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['hostname']['alter']['external'] = 0;
$handler->display->display_options['fields']['hostname']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['hostname']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['hostname']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['hostname']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['hostname']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['hostname']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['hostname']['alter']['trim'] = 0;
$handler->display->display_options['fields']['hostname']['alter']['html'] = 0;
$handler->display->display_options['fields']['hostname']['element_label_colon'] = 1;
$handler->display->display_options['fields']['hostname']['element_default_classes'] = 1;
$handler->display->display_options['fields']['hostname']['hide_empty'] = 0;
$handler->display->display_options['fields']['hostname']['empty_zero'] = 0;
$handler->display->display_options['fields']['hostname']['hide_alter_empty'] = 0;
/* Pole: Access log: Ścieżka */
$handler->display->display_options['fields']['path']['id'] = 'path';
$handler->display->display_options['fields']['path']['table'] = 'accesslog';
$handler->display->display_options['fields']['path']['field'] = 'path';
$handler->display->display_options['fields']['path']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['path']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['path']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['path']['alter']['external'] = 0;
$handler->display->display_options['fields']['path']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['path']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['path']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['path']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['path']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['path']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['path']['alter']['trim'] = 0;
$handler->display->display_options['fields']['path']['alter']['html'] = 0;
$handler->display->display_options['fields']['path']['element_label_colon'] = 1;
$handler->display->display_options['fields']['path']['element_default_classes'] = 1;
$handler->display->display_options['fields']['path']['hide_empty'] = 0;
$handler->display->display_options['fields']['path']['empty_zero'] = 0;
$handler->display->display_options['fields']['path']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['path']['display_as_link'] = 1;
/* Pole: Access log: Odsyłający */
$handler->display->display_options['fields']['url']['id'] = 'url';
$handler->display->display_options['fields']['url']['table'] = 'accesslog';
$handler->display->display_options['fields']['url']['field'] = 'url';
$handler->display->display_options['fields']['url']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['url']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['url']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['url']['alter']['external'] = 0;
$handler->display->display_options['fields']['url']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['url']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['url']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['url']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['url']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['url']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['url']['alter']['trim'] = 0;
$handler->display->display_options['fields']['url']['alter']['html'] = 0;
$handler->display->display_options['fields']['url']['element_label_colon'] = 1;
$handler->display->display_options['fields']['url']['element_default_classes'] = 1;
$handler->display->display_options['fields']['url']['hide_empty'] = 0;
$handler->display->display_options['fields']['url']['empty_zero'] = 0;
$handler->display->display_options['fields']['url']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['url']['display_as_link'] = 1;
/* Pole: Access log: Data */
$handler->display->display_options['fields']['timestamp']['id'] = 'timestamp';
$handler->display->display_options['fields']['timestamp']['table'] = 'accesslog';
$handler->display->display_options['fields']['timestamp']['field'] = 'timestamp';
$handler->display->display_options['fields']['timestamp']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['timestamp']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['timestamp']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['timestamp']['alter']['external'] = 0;
$handler->display->display_options['fields']['timestamp']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['timestamp']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['timestamp']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['timestamp']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['timestamp']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['timestamp']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['timestamp']['alter']['trim'] = 0;
$handler->display->display_options['fields']['timestamp']['alter']['html'] = 0;
$handler->display->display_options['fields']['timestamp']['element_label_colon'] = 1;
$handler->display->display_options['fields']['timestamp']['element_default_classes'] = 1;
$handler->display->display_options['fields']['timestamp']['hide_empty'] = 0;
$handler->display->display_options['fields']['timestamp']['empty_zero'] = 0;
$handler->display->display_options['fields']['timestamp']['hide_alter_empty'] = 0;
$handler->display->display_options['fields']['timestamp']['date_format'] = 'short';
/* Filter criterion: Użytkownik: Rangi */
$handler->display->display_options['filters']['rid']['id'] = 'rid';
$handler->display->display_options['filters']['rid']['table'] = 'users_roles';
$handler->display->display_options['filters']['rid']['field'] = 'rid';
$handler->display->display_options['filters']['rid']['relationship'] = 'uid';
$handler->display->display_options['filters']['rid']['operator'] = 'empty';
$handler->display->display_options['filters']['rid']['reduce_duplicates'] = 0;

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'visits';
$translatables['odwiedziny_zewnetrzne'] = array(
  t('Master'),
  t('Wizyty'),
  t('more'),
  t('Apply'),
  t('Przywróć'),
  t('Sort by'),
  t('Asc'),
  t('Desc'),
  t('Items per page'),
  t('- All -'),
  t('Offset'),
  t('Nazwa hosta'),
  t('Ścieżka'),
  t('Odsyłający'),
  t('Data'),
  t('Page'),
);

I have Views 7.x-3.0-rc1 on Drupal 7.5 (upgraded from D6) and 7.x-3.x-dev version on Drupal 7.7 (clean install).

The error message is displayed when I click on the Save button or view created page.

dawehner’s picture

Status: Postponed (maintainer needs more info) » Needs review
FileSize
1.6 KB

Here is a patch which fixes all issues

dawehner’s picture

Oh by the way huge thanks for the export, it really helped a lot.

Just import, reproduce the error, creating a patch... it can be not easier!

rq’s picture

Messages are gone now.

bojanz’s picture

Status: Needs review » Reviewed & tested by the community

Looks good, and we have the confirmation in #5 as well.

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

Great thanks for testing and looking at the patch.
Also thanks to provide a proper bug report, you know things can be easy sometimes.

Here is a patch which fixes all issues

Mh, i'm not convinced here :)

Commited to 7.x-3.x and 6.x-3.x

Status: Fixed » Closed (fixed)

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