Notice: Undefined index: validate_argument_node_access_op in views_plugin_argument_validate_node->convert_options() (line 67 of /var/www/[site]/sites/all/modules/views/modules/node/views_plugin_argument_validate_node.inc).
Notice: Undefined index: validate_argument_node_access_op in views_plugin_argument_validate_node->convert_options() (line 67 of /var/www/[site]/sites/all/modules/views/modules/node/views_plugin_argument_validate_node.inc).

Comments

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Can you export your view? It would be really helpful here to reproduce/fix the bug at the end.

bensnyder’s picture

$view = new view;
$view->name = 'backlinks';
$view->description = 'Displays a list of nodes that link to the node, using the search backlinks table.';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = '';
$view->core = 0;
$view->api_version = '3.0-alpha1';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */

/* Display: Defaults */
$handler = $view->new_display('default', 'Defaults', 'default');
$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['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = 30;
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['style_options']['type'] = 'ol';
$handler->display->display_options['row_plugin'] = 'fields';
/* No results behavior: Global: Text area */
$handler->display->display_options['empty']['text']['id'] = 'area';
$handler->display->display_options['empty']['text']['table'] = 'views';
$handler->display->display_options['empty']['text']['field'] = 'area';
$handler->display->display_options['empty']['text']['empty'] = FALSE;
$handler->display->display_options['empty']['text']['content'] = 'No backlinks found.';
$handler->display->display_options['empty']['text']['format'] = '1';
/* Field: Content: Title */
$handler->display->display_options['fields']['title']['id'] = 'title';
$handler->display->display_options['fields']['title']['table'] = 'node';
$handler->display->display_options['fields']['title']['field'] = 'title';
$handler->display->display_options['fields']['title']['label'] = '';
$handler->display->display_options['fields']['title']['link_to_node'] = 1;
/* Contextual filter: Search: Links to */
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
$handler->display->display_options['arguments']['nid']['table'] = 'search_node_links_to';
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
$handler->display->display_options['arguments']['nid']['default_action'] = 'not found';
$handler->display->display_options['arguments']['nid']['title_enable'] = 1;
$handler->display->display_options['arguments']['nid']['title'] = 'Pages that link to %1';
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['nid']['specify_validation'] = 1;
$handler->display->display_options['arguments']['nid']['validate']['type'] = 'node';
/* Filter criterion: Content: Published */
$handler->display->display_options['filters']['status']['id'] = 'status';
$handler->display->display_options['filters']['status']['table'] = 'node';
$handler->display->display_options['filters']['status']['field'] = 'status';
$handler->display->display_options['filters']['status']['value'] = 1;
$handler->display->display_options['filters']['status']['group'] = 0;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['defaults']['access'] = FALSE;
$handler->display->display_options['access']['type'] = 'role';
$handler->display->display_options['access']['role'] = array(
  3 => '3',
  2 => '2',
);
$handler->display->display_options['path'] = 'node/%/backlinks';
$handler->display->display_options['menu']['title'] = 'What links here';
$handler->display->display_options['menu']['weight'] = '0';

/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');
$handler->display->display_options['defaults']['title'] = FALSE;
$handler->display->display_options['title'] = 'What links here';
$handler->display->display_options['defaults']['items_per_page'] = FALSE;
$handler->display->display_options['defaults']['use_more'] = FALSE;
$handler->display->display_options['use_more'] = TRUE;
$handler->display->display_options['defaults']['style_plugin'] = FALSE;
$handler->display->display_options['style_plugin'] = 'list';
$handler->display->display_options['defaults']['style_options'] = FALSE;
$handler->display->display_options['defaults']['row_plugin'] = FALSE;
$handler->display->display_options['row_plugin'] = 'fields';
$handler->display->display_options['defaults']['row_options'] = FALSE;
$handler->display->display_options['defaults']['arguments'] = FALSE;
/* Contextual filter: Search: Links to */
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
$handler->display->display_options['arguments']['nid']['table'] = 'search_node_links_to';
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
$handler->display->display_options['arguments']['nid']['default_action'] = 'default';
$handler->display->display_options['arguments']['nid']['title_enable'] = 1;
$handler->display->display_options['arguments']['nid']['title'] = 'What links here';
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'node';
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['nid']['specify_validation'] = 1;
$handler->display->display_options['arguments']['nid']['validate']['type'] = 'node';
$handler->display->display_options['block_description'] = 'What links here';
$translatables['backlinks'] = array(
  t('Defaults'),
  t('more'),
  t('Apply'),
  t('Reset'),
  t('Sort by'),
  t('Asc'),
  t('Desc'),
  t('Items per page'),
  t('- All -'),
  t('Offset'),
  t('No backlinks found.'),
  t('All'),
  t('Pages that link to %1'),
  t('Page'),
  t('Block'),
  t('What links here'),
);

I was getting the errors on pages where "What links here" was in a block. The node/%/backlinks pages load without a problem. I'm debugging this more as we speak.... a revert doesnt even fix this. Might be a conflicting module?

dawehner’s picture

Status: Postponed (maintainer needs more info) » Active

Update status.

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new1.26 KB

So here is a patch for it. Sadly i couldn't reproduce the problem with the export.

bensnyder’s picture

excellent! commit?

dawehner’s picture

So does the patch work for you?

bensnyder’s picture

I apologize for not giving this a better look earlier.

It removes the errors but I am unable to produce a block. I cleared all caches and double checked the visibility settings. No dice. I'll further test.

merlinofchaos’s picture

Can you clarify, ben? I'm not sure what to do with this right now. Should I commit the patch and mark it fixed? It doesn't sound like generating a block is necessarily related.

bensnyder’s picture

I'll do the best I can here..

  • Patch from #4 was applied to my site.
  • "What links here" tab was removed from page display. Block is set on to appear in left sidebar on node view instead.
  • "What links here" isn't working at all - even on nodes where it should for sure.

I did not test re-indexing search/running cron at this point (that's probably by it wasn't working). What I did next was:

  • Reverse patch in #4.
  • Enable "What links here" tab on page display. Keep block set on to appear in left sidebar on node view.
  • Re-index search and run cron.
  • "What links here" node tab does display correctly, without errors defined in this issue's description. (node/%/backlinks)
  • "What links here" block does not display on node view in left sidebar. I get the errors in this issue's description.

To conclude... The patch makes the errors go away but I'm still unable to get the block to appear.

bensnyder’s picture

I think this patch can be committed and this issue fixed as it solves the error. The backlinks block not displaying is another issue. Thanks Merlin for your time!

bensnyder’s picture

Status: Needs review » Reviewed & tested by the community
dawehner’s picture

Status: Reviewed & tested by the community » Fixed

This seems to be commited already in the meantime.

Status: Fixed » Closed (fixed)

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

christianchristensen’s picture

Version: 7.x-3.0-beta3 » 6.x-3.x-dev
Status: Closed (fixed) » Needs review
StatusFileSize
new1.19 KB

Re-rolled this against 6.x-3.x as was getting the same PHP Notice...

Adam S’s picture

I got this error using Drupal 7 after I enabled the core taxonomy View and looked at the arguments at:

admin/structure/views/nojs/config-item/taxonomy_term/page/argument/term_node_tid_depth

dawehner’s picture

Status: Needs review » Fixed

Thanks for rerolling the patch! Commited to 6.x-3.x

Status: Fixed » Closed (fixed)

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