I have this error:
Notice: Undefined index: rules_link_rewrite in views_handler_field_rules_link->render() (line 47 of E:\wamp\www\profiles\recruiter\modules\rules_link\rules_link.views.inc

Comments

sepgil’s picture

Status: Active » Postponed (maintainer needs more info)

When does this error occur?

kaizerking’s picture

I am using erecruiter install profile,it has got "job manage" view. This occured when i was clicking on one of the links manage jobs.

BenK’s picture

I'm getting the exact same error when using the latest -dev version. I'm displaying a Rules link in a view which is part of a Panel. The error occurred after I updated to the latest commits over the past couple of months.

Any ideas?

--Ben

BenK’s picture

Status: Postponed (maintainer needs more info) » Needs work

Hey everyone,

I've rolled back the latest git commits and have confirmed that the error seems to have been introduced during the following commit:

http://drupalcode.org/project/rules_link.git/commit/cf9cbae

This commit was intended to solve the following issue:

Issue #1401780 by fubhy: Allow custom link titles for the views links.
(http://drupal.org/node/1401780)

Any ideas about how to fix? I've rolled back to the commit right before this one and the error message goes away.

Thanks,
Ben

mitchell’s picture

Title: Notice: Undefined index: rules_link_rewrite in views_handler_field_rules_link->render() (line 47... » Views custom link rewriting is broken in -dev
Category: support » bug
Priority: Normal » Major
Status: Needs work » Active

No patch yet to work on, but this is the right issue to fix the bug. If anyone has more info or can help track it down, that would be very nice.

haradhansharma’s picture

i m facing same problem also on beta7. And waiting for kind solutions.

sepgil’s picture

Status: Active » Postponed (maintainer needs more info)

I can't replicate this issue, can anyone provide an example view.

wipeout_dude’s picture

Since the update to 7.x-1.0-Beta4 I am seeing a lot of these errors being logged..

Notice: Undefined index: rules_link_rewrite in views_handler_field_rules_link->render() (line 47 of /home/websites/platform/sites/all/modules/contrib/rules_link/rules_link.views.inc).

I have looked at the view and the can't see that the rules links are being rewritten..

As I say I didn't see this with beta3 so its something that's changed between beta3 and beta4..

wipeout_dude’s picture

Status: Postponed (maintainer needs more info) » Active

Would there be any issues if I roll back to beta3?

sepgil’s picture

There are some Improvements you would loose, but nothing major.
Anyway could any of you post an exported view, which produces such errors? I'd really like to fix issue, but as stated before, I haven't been able to reproduce it.

wipeout_dude’s picture

Here is a view that's producing the error.. Hope it helps..

$view = new view();
$view->name = 'registration_staff';
$view->description = 'Time clocking for staff.';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'Registration - Staff';
$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'] = 'Staff Register';
$handler->display->display_options['use_more_always'] = FALSE;
$handler->display->display_options['access']['type'] = 'perm';
$handler->display->display_options['access']['perm'] = 'access registration pages';
$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['pager']['type'] = 'full';
$handler->display->display_options['pager']['options']['items_per_page'] = '25';
$handler->display->display_options['pager']['options']['offset'] = '0';
$handler->display->display_options['pager']['options']['id'] = '0';
$handler->display->display_options['style_plugin'] = 'table';
$handler->display->display_options['style_options']['columns'] = array(
  'title' => 'title',
);
$handler->display->display_options['style_options']['default'] = '-1';
$handler->display->display_options['style_options']['info'] = array(
  'title' => array(
    'sortable' => 0,
    'default_sort_order' => 'asc',
    'align' => '',
    'separator' => '',
    'empty_column' => 0,
  ),
);
/* No results behavior: Global: Text area */
$handler->display->display_options['empty']['area']['id'] = 'area';
$handler->display->display_options['empty']['area']['table'] = 'views';
$handler->display->display_options['empty']['area']['field'] = 'area';
$handler->display->display_options['empty']['area']['content'] = 'No staff scheduled in today.';
$handler->display->display_options['empty']['area']['format'] = 'plain_text';
/* Relationship: Content: Staff Member (field_nref_staff) */
$handler->display->display_options['relationships']['field_nref_staff_nid']['id'] = 'field_nref_staff_nid';
$handler->display->display_options['relationships']['field_nref_staff_nid']['table'] = 'field_data_field_nref_staff';
$handler->display->display_options['relationships']['field_nref_staff_nid']['field'] = 'field_nref_staff_nid';
$handler->display->display_options['relationships']['field_nref_staff_nid']['delta'] = '-1';
/* Field: Content: Scheduled Times */
$handler->display->display_options['fields']['field_staff_schedule_times']['id'] = 'field_staff_schedule_times';
$handler->display->display_options['fields']['field_staff_schedule_times']['table'] = 'field_data_field_staff_schedule_times';
$handler->display->display_options['fields']['field_staff_schedule_times']['field'] = 'field_staff_schedule_times';
$handler->display->display_options['fields']['field_staff_schedule_times']['exclude'] = TRUE;
$handler->display->display_options['fields']['field_staff_schedule_times']['settings'] = array(
  'format_type' => 'time',
  'fromto' => 'both',
  'multiple_number' => '',
  'multiple_from' => '',
  'multiple_to' => '',
  'show_repeat_rule' => 'show',
);
/* Field: Content: Staff Member */
$handler->display->display_options['fields']['field_nref_staff']['id'] = 'field_nref_staff';
$handler->display->display_options['fields']['field_nref_staff']['table'] = 'field_data_field_nref_staff';
$handler->display->display_options['fields']['field_nref_staff']['field'] = 'field_nref_staff';
$handler->display->display_options['fields']['field_nref_staff']['alter']['alter_text'] = TRUE;
$handler->display->display_options['fields']['field_nref_staff']['alter']['text'] = '<STRONG>[field_nref_staff]</STRONG><br>[field_staff_schedule_times]';
$handler->display->display_options['fields']['field_nref_staff']['type'] = 'node_reference_plain';
/* Field: Content: Staff Clock-In */
$handler->display->display_options['fields']['staff_clock_in']['id'] = 'staff_clock_in';
$handler->display->display_options['fields']['staff_clock_in']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['staff_clock_in']['field'] = 'staff_clock_in';
$handler->display->display_options['fields']['staff_clock_in']['label'] = '';
$handler->display->display_options['fields']['staff_clock_in']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['staff_clock_in']['rules_link'] = array(
  'rules_link_parameters' => '',
);
/* Field: Content: Staff Clock-Out */
$handler->display->display_options['fields']['staff_clock_out']['id'] = 'staff_clock_out';
$handler->display->display_options['fields']['staff_clock_out']['table'] = 'views_entity_node';
$handler->display->display_options['fields']['staff_clock_out']['field'] = 'staff_clock_out';
$handler->display->display_options['fields']['staff_clock_out']['label'] = '';
$handler->display->display_options['fields']['staff_clock_out']['element_label_colon'] = FALSE;
$handler->display->display_options['fields']['staff_clock_out']['rules_link'] = array(
  'rules_link_parameters' => '',
);
/* Sort criterion: Content: Surname (field_staff_surname) */
$handler->display->display_options['sorts']['field_staff_surname_value']['id'] = 'field_staff_surname_value';
$handler->display->display_options['sorts']['field_staff_surname_value']['table'] = 'field_data_field_staff_surname';
$handler->display->display_options['sorts']['field_staff_surname_value']['field'] = 'field_staff_surname_value';
$handler->display->display_options['sorts']['field_staff_surname_value']['relationship'] = 'field_nref_staff_nid';
/* Sort criterion: Content: Scheduled Times -  start date (field_staff_schedule_times) */
$handler->display->display_options['sorts']['field_staff_schedule_times_value']['id'] = 'field_staff_schedule_times_value';
$handler->display->display_options['sorts']['field_staff_schedule_times_value']['table'] = 'field_data_field_staff_schedule_times';
$handler->display->display_options['sorts']['field_staff_schedule_times_value']['field'] = 'field_staff_schedule_times_value';
/* 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'] = 1;
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
/* Filter criterion: Content: Type */
$handler->display->display_options['filters']['type']['id'] = 'type';
$handler->display->display_options['filters']['type']['table'] = 'node';
$handler->display->display_options['filters']['type']['field'] = 'type';
$handler->display->display_options['filters']['type']['value'] = array(
  'staff_schedule' => 'staff_schedule',
);
/* Filter criterion: Content: Scheduled Times -  start date (field_staff_schedule_times) */
$handler->display->display_options['filters']['field_staff_schedule_times_value']['id'] = 'field_staff_schedule_times_value';
$handler->display->display_options['filters']['field_staff_schedule_times_value']['table'] = 'field_data_field_staff_schedule_times';
$handler->display->display_options['filters']['field_staff_schedule_times_value']['field'] = 'field_staff_schedule_times_value';
$handler->display->display_options['filters']['field_staff_schedule_times_value']['form_type'] = 'date_text';
$handler->display->display_options['filters']['field_staff_schedule_times_value']['default_date'] = 'now';
/* Filter criterion: Content: Actual Times - end date (field_staff_schedule_time_actual:value2) */
$handler->display->display_options['filters']['field_staff_schedule_time_actual_value2']['id'] = 'field_staff_schedule_time_actual_value2';
$handler->display->display_options['filters']['field_staff_schedule_time_actual_value2']['table'] = 'field_data_field_staff_schedule_time_actual';
$handler->display->display_options['filters']['field_staff_schedule_time_actual_value2']['field'] = 'field_staff_schedule_time_actual_value2';
$handler->display->display_options['filters']['field_staff_schedule_time_actual_value2']['value']['value'] = '2000-01-01';
$handler->display->display_options['filters']['field_staff_schedule_time_actual_value2']['form_type'] = 'date_text';

/* Display: Page */
$handler = $view->new_display('page', 'Page', 'page');
$handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
$handler->display->display_options['path'] = 'registration/staff';
$handler->display->display_options['menu']['type'] = 'tab';
$handler->display->display_options['menu']['title'] = 'Staff Register';
$handler->display->display_options['menu']['weight'] = '1';
$handler->display->display_options['menu']['context'] = 0;
tribsel’s picture

same problem, rollback to beta3 fixed it

omissis’s picture

Here's a patch to at least get rid of the error message.
I am not sure what's the source of the problem yet, I'll see if I'll be able(and have time) to debug it to its roots.

omissis’s picture

Rerolled patch since previous one's wasn't working properly.

sepgil’s picture

Status: Active » Fixed

Thx for the patch, I committed it.

Status: Fixed » Closed (fixed)

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