"My account / workflows owned" views failure

Bryan Martin - January 12, 2008 - 03:36
Project:Workflow Owner
Version:5.x-1.0
Component:Code
Category:support request
Priority:critical
Assigned:Unassigned
Status:patch (to be ported)
Description

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

Bryan Martin - January 12, 2008 - 04:21

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

JacobSingh - February 14, 2008 - 08:59

d'oh. Let me review this and get back to you. This seems bad.

#3

JacobSingh - March 26, 2008 - 09:06
Status:active» patch (to be ported)

Hi Brian, I've committed a change for this to HEAD, I'll be porting to a new version this week.

#4

carj - August 22, 2008 - 03:20
Title:"My account / workflows owned" views failure» warning: Invalid argument supplied for foreach() in :\hshome\myname\modules\views\theme\views-view-table.tpl.php on line 22.
Project:Workflow Owner» Drupal.org webmasters
Version:5.x-1.0» <none>
Component:Code» Other
Category:bug report» support request
Status:patch (to be ported)» active

#5

AjK - August 21, 2008 - 21:54
Title:warning: Invalid argument supplied for foreach() in :\hshome\myname\modules\views\theme\views-view-table.tpl.php on line 22.» "My account / workflows owned" views failure
Project:Drupal.org webmasters» Workflow Owner
Version:<none>» 5.x-1.0
Component:Other» Code
Status:active» patch (to be ported)

Please don't hijack existing issues and swap them around projects.

For support please see http://drupal.org/support

#6

carj - August 22, 2008 - 03:19

Sorry ,I did not intend to hijack the issue,that was a mistake.

 
 

Drupal is a registered trademark of Dries Buytaert.