Download & Extend

Error with workflow and views module

Project:Workflow
Version:7.x-1.0
Component:Code
Category:support request
Priority:major
Assigned:laurie87
Status:closed (fixed)

Issue Summary

Hello,

I installed the workflow module version 7.x-1.0 with the views module version 7.x-3.x with Drupal 7.10. When I click on the menu summary workflow I get the following error:
Fatal error: Unsupported operand types in C:\wamp\ www\drupal\ sites\all\modules\views\handlers\ views_handler_filter_in_operator.inc on line 158.

Also the type of content workflow does not exist and the following error appears on the screens admin

Notice: Undefined variable: workflows in workflow_views_handler_filter_sid-> get_value_options () (line 21 in
Notice: Undefined variable: states in workflow_views_handler_filter_sid-> get_value_options () (line 34 in

Has anyone ever encountered this error and if so what is the solution?

Thank you

Comments

#1

Status:active» needs review

It looks like the filter is choking on there not being any workflows configured. If you aren't planning to use workflows on the site, the quickest fix for you would be to turn workflow views off. That *should* get you going immediately.

I've added some code to the views handler to check if no workflows exist and to bail out if so. Please pull a copy of dev and let me know if that works for you. Thanks. :)

#2

Hi,
I have tried the new version and now I have the following error:
Fatal error: Unsupported operand types in C:\wamp\www\drupal\sites\all\modules\views\handlers\views_handler_filter_in_operator.inc on line 159

#3

Define some workflows so it stops choking, or turn off Workflow Views. (Leaving it on will just cause performance overhead.)

#4

Status:needs review» closed (fixed)

I've tweaked the results from the check for empty that should take care of things on dev, but the quickest fix for your situation is just to turn off the module if you're not using it.

nobody click here