"My account / workflows owned" views failure
| Project: | Workflow Owner |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | patch (to be ported) |
Jump to:
After installation, when clicking on my account and workflows owned i get the following errors:
# warning: Invalid argument supplied for foreach() in C:\....com\sites\all\modules\views\views_query.inc on line 81.
# warning: Invalid argument supplied for foreach() in C:\....com\sites\all\modules\views\views_query.inc on line 16.
# warning: Invalid argument supplied for foreach() in C:\....com\sites\all\modules\views\views_query.inc on line 195.
# warning: Invalid argument supplied for foreach() in C:\....com\sites\all\modules\location\contrib\location_views\location_views.module on line 1051.
# warning: Invalid argument supplied for foreach() in C:\....com\sites\all\modules\views\modules\views_node.inc on line 801.
# warning: Invalid argument supplied for foreach() in C:\....com\sites\all\modules\views\views_rss.module on line 56.
If i create a view called workflow_owner it kills the errors but does not give a proper view.
Any thoughts?

#1
Adding this view seems to solve the problem:
$view = new stdClass();
$view->name = 'workflow_owner';
$view->description = '';
$view->access = array (
0 => '2',
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = '';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'table';
$view->url = '';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->sort = array (
);
$view->argument = array (
array (
'type' => 'workflow_owner',
'argdefault' => '1',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Title',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'node',
'field' => 'created',
'label' => 'Created',
'handler' => 'views_handler_field_date_small',
),
array (
'tablename' => 'workflow_states',
'field' => 'state',
'label' => 'State',
),
array (
'tablename' => 'workflow_node_history',
'field' => 'comment',
'label' => 'Comment',
),
);
$view->filter = array (
);
$view->exposed_filter = array (
);
$view->requires = array(node, workflow_states, workflow_node_history);
$views[$view->name] = $view;
#2
d'oh. Let me review this and get back to you. This seems bad.
#3
Hi Brian, I've committed a change for this to HEAD, I'll be porting to a new version this week.
#4
#5
Please don't hijack existing issues and swap them around projects.
For support please see http://drupal.org/support
#6
Sorry ,I did not intend to hijack the issue,that was a mistake.