Ok gonna try this one more time. If someone can tell me how or what I should post if this is not enough info, that would help me out. I know you guys are working hard and have a lot going on, so forgive me for my ignorance.

I created a view for a user list. (A list of registered users) Showing their Name, email, picture, Signature , and Last login (with long format) using the instructions (as much as I could) using advanced help-views-Create a page to list users by role.

So I get this once I create the page and got to the link for the page
Notice: Undefined index: format in views_handler_field->get_value() (line 314 of /var/www/drupal/sites/all/modules/views/handlers/views_handler_field.inc).

Thanks

CommentFileSizeAuthor
#7 1116346-markup-notice.patch765 bytesdawehner

Comments

bojanz’s picture

Status: Active » Postponed (maintainer needs more info)

Hm, I thought we killed all of those (notices).
You have the latest -dev version, right?
If you do, provide an export of your view and I'll try to chase down the bug.

bazzly’s picture

Yes...It was the dev. I'm gonna try the new dev version. I'll post back!
Thanks

bazzly’s picture

Ok this is the new dev version... Sorry it took so long for me to get back to you. I'm thinking I must be doing something wrong... If I am please let me know.....here is the export. Can you also; If Possible tell me how and what you looked for to trouble shoot it....
Thanks

$view = new view;
$view->name = 'user_list';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'users';
$view->human_name = 'user_list';
$view->core = 7;
$view->api_version = '3.0-alpha1';
$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'] = 'User List';
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['access']['perm'] = 'access user profiles';
$handler->display->display_options['cache']['type'] = 'none';
$handler->display->display_options['query']['type'] = 'views_query';
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '25';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['grouping'] = 'name';
$handler->display->display_options['style_options']['columns'] = array(
'name' => 'name',
'mail' => 'mail',
'login' => 'login',
'picture' => 'picture',
'signature' => 'signature',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
'name' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
),
'mail' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
),
'login' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
),
'picture' => array(
'sortable' => 1,
'default_sort_order' => 'asc',
'align' => '',
'separator' => '',
),
'signature' => array(
'align' => '',
'separator' => '',
),
);
$handler->display->display_options['style_options']['override'] = 1;
$handler->display->display_options['style_options']['sticky'] = 0;
$handler->display->display_options['style_options']['empty_table'] = 0;
/* Field: User: Name */
$handler->display->display_options['fields']['name']['id'] = 'name';
$handler->display->display_options['fields']['name']['table'] = 'users';
$handler->display->display_options['fields']['name']['field'] = 'name';
$handler->display->display_options['fields']['name']['label'] = '';
$handler->display->display_options['fields']['name']['exclude'] = TRUE;
$handler->display->display_options['fields']['name']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['name']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['name']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['name']['alter']['external'] = 0;
$handler->display->display_options['fields']['name']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['name']['alter']['trim'] = 0;
$handler->display->display_options['fields']['name']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['name']['alter']['word_boundary'] = 0;
$handler->display->display_options['fields']['name']['alter']['ellipsis'] = 0;
$handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['name']['alter']['html'] = 0;
$handler->display->display_options['fields']['name']['element_label_colon'] = 1;
$handler->display->display_options['fields']['name']['element_default_classes'] = 1;
$handler->display->display_options['fields']['name']['hide_empty'] = 0;
$handler->display->display_options['fields']['name']['empty_zero'] = 0;
$handler->display->display_options['fields']['name']['link_to_user'] = 1;
$handler->display->display_options['fields']['name']['overwrite_anonymous'] = 0;
/* Field: User: Picture */
$handler->display->display_options['fields']['picture']['id'] = 'picture';
$handler->display->display_options['fields']['picture']['table'] = 'users';
$handler->display->display_options['fields']['picture']['field'] = 'picture';
$handler->display->display_options['fields']['picture']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['picture']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['picture']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['picture']['alter']['external'] = 0;
$handler->display->display_options['fields']['picture']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['picture']['alter']['trim'] = 0;
$handler->display->display_options['fields']['picture']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['picture']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['picture']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['picture']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['picture']['alter']['html'] = 0;
$handler->display->display_options['fields']['picture']['element_label_colon'] = 1;
$handler->display->display_options['fields']['picture']['element_default_classes'] = 1;
$handler->display->display_options['fields']['picture']['hide_empty'] = 0;
$handler->display->display_options['fields']['picture']['empty_zero'] = 0;
/* Field: User: E-mail */
$handler->display->display_options['fields']['mail']['id'] = 'mail';
$handler->display->display_options['fields']['mail']['table'] = 'users';
$handler->display->display_options['fields']['mail']['field'] = 'mail';
$handler->display->display_options['fields']['mail']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['mail']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['mail']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['mail']['alter']['external'] = 0;
$handler->display->display_options['fields']['mail']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['mail']['alter']['trim'] = 0;
$handler->display->display_options['fields']['mail']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['mail']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['mail']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['mail']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['mail']['alter']['html'] = 0;
$handler->display->display_options['fields']['mail']['element_label_colon'] = 1;
$handler->display->display_options['fields']['mail']['element_default_classes'] = 1;
$handler->display->display_options['fields']['mail']['hide_empty'] = 0;
$handler->display->display_options['fields']['mail']['empty_zero'] = 0;
$handler->display->display_options['fields']['mail']['link_to_user'] = 0;
/* Field: User: Signature */
$handler->display->display_options['fields']['signature']['id'] = 'signature';
$handler->display->display_options['fields']['signature']['table'] = 'users';
$handler->display->display_options['fields']['signature']['field'] = 'signature';
$handler->display->display_options['fields']['signature']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['signature']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['signature']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['signature']['alter']['external'] = 0;
$handler->display->display_options['fields']['signature']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['signature']['alter']['trim'] = 0;
$handler->display->display_options['fields']['signature']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['signature']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['signature']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['signature']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['signature']['alter']['html'] = 0;
$handler->display->display_options['fields']['signature']['element_label_colon'] = 1;
$handler->display->display_options['fields']['signature']['element_default_classes'] = 1;
$handler->display->display_options['fields']['signature']['hide_empty'] = 0;
$handler->display->display_options['fields']['signature']['empty_zero'] = 0;
/* Field: User: Last login */
$handler->display->display_options['fields']['login']['id'] = 'login';
$handler->display->display_options['fields']['login']['table'] = 'users';
$handler->display->display_options['fields']['login']['field'] = 'login';
$handler->display->display_options['fields']['login']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['login']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['login']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['login']['alter']['external'] = 0;
$handler->display->display_options['fields']['login']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['login']['alter']['trim'] = 0;
$handler->display->display_options['fields']['login']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['login']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['login']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['login']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['login']['alter']['html'] = 0;
$handler->display->display_options['fields']['login']['element_label_colon'] = 1;
$handler->display->display_options['fields']['login']['element_default_classes'] = 1;
$handler->display->display_options['fields']['login']['hide_empty'] = 0;
$handler->display->display_options['fields']['login']['empty_zero'] = 0;
$handler->display->display_options['fields']['login']['date_format'] = 'long';
/* Sort criterion: User: Name */
$handler->display->display_options['sorts']['name']['id'] = 'name';
$handler->display->display_options['sorts']['name']['table'] = 'users';
$handler->display->display_options['sorts']['name']['field'] = 'name';
/* Filter criterion: User: Name */
$handler->display->display_options['filters']['uid']['id'] = 'uid';
$handler->display->display_options['filters']['uid']['table'] = 'users';
$handler->display->display_options['filters']['uid']['field'] = 'uid';
$handler->display->display_options['filters']['uid']['operator'] = 'not in';
$handler->display->display_options['filters']['uid']['value'] = array(
0 => 0,
);

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['path'] = 'user-list';
$handler->display->display_options['menu']['type'] = 'normal';
$handler->display->display_options['menu']['title'] = 'User List';
$handler->display->display_options['menu']['weight'] = '0';

/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');
$handler->display->display_options['defaults']['pager'] = FALSE;
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '5';
$translatables['user_list'] = array(
t('Master'),
t('User List'),
t('more'),
t('Apply'),
t('Reset'),
t('Sort by'),
t('Asc'),
t('Desc'),
t('Items per page'),
t('- All -'),
t('Offset'),
t('Picture'),
t('E-mail'),
t('Signature'),
t('Last login'),
t('Page'),
t('Block'),
);

bazzly’s picture

Does this need more info? If it does...what kind?

bojanz’s picture

Status: Postponed (maintainer needs more info) » Active

Should be enough.

bazzly’s picture

I just tried the new dev version and now its line 323, dont know if that helps or adds any value.

Notice: Undefined index: format in views_handler_field->get_value() (line 323 of /var/www/drupal/sites/all/modules/views/handlers/views_handler_field.inc).

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new765 bytes

What about this patch?

The format isn't required to be a number anymore in d7.

bazzly’s picture

You are my new best friend... It worked!
What was the problem?

bojanz’s picture

Status: Needs review » Reviewed & tested by the community

Nice :)

dawehner’s picture

Status: Reviewed & tested by the community » Fixed

This was a bug in 6.x, too, so fixed it there too.

About the problem :

The format isn't required to be a number anymore in d7.
dawehner’s picture

Oh this was just a part of the problem itself.

I have a strong feeling that there was an issue before.

Status: Fixed » Closed (fixed)

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

caseyb’s picture

Status: Closed (fixed) » Needs review

Trying to use views with Amazon Example Views accessed through Features module and receiving the following errors:
Notice: Undefined index: detailpageurl in views_handler_field->get_value() (line 337 of /homepages/5/dx/htdocs/drupal/modules/views/handlers/views_handler_field.inc).
Notice: Undefined index: height in views_handler_field->get_value() (line 337 of /homepages/5/dx/htdocs/drupal/modules/views/handlers/views_handler_field.inc).
Notice: Undefined index: width in views_handler_field->get_value() (line 337 of /homepages/5/dx/htdocs/drupal/modules/views/handlers/views_handler_field.inc).
Notice: Undefined index: detailpageurl in views_handler_field->get_value() (line 337 of /homepages/5/dx/htdocs/drupal/modules/views/handlers/views_handler_field.inc).

I've tried the patch above but get "Reversed (or previously applied) patch detected!" so assume it is already in place.

Any ideas on how to resolve this?

caseyb’s picture

Status: Needs review » Active

I've managed to apply patch successfully on new Views module now but still getting same error message.

caseyb’s picture

After reading http://drupal.org/node/1091980 I tried adding a new view and configuring the same as the original and this seemed to resolve the issue - error no longer occurs and have the same data displayed.

dawehner’s picture

Status: Active » Fixed

Okay then the issue is fixed again. Thanks for reporting your status back.

Status: Fixed » Closed (fixed)

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

johnv’s picture

Title: Notice: Undefined index: format in views_handler_field->get_value() (line 314 of /var/www/drupal/sites/all/modules/views/handler » Notice: Undefined index: format in views_handler_field->get_value() (line 314 of views_handler_field.inc)