Needs review
Project:
Views Bulk Operations (VBO)
Version:
7.x-3.x-dev
Component:
Core
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
12 Apr 2018 at 14:54 UTC
Updated:
3 Feb 2020 at 14:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
joelpittetCan you explain the issue further in the issue summary? What error are you getting?
Comment #3
wipeout_dude commentedHi,
I have a rules that call VBO views that should return all the nodes that need processing by the rule.. The rule then runs a loop on the returned results and does what it needs to do.. These rules have worked fine for ages but somewhere in a recent update it has stopped working and it seems the VBO view is not returning any results for the rule to loop through.. I don't know when exactly it stopped working because its only just been brought to my attention..
Errors being logged are..
- Unable to get a data value. Error: Invalid data value given. Be sure it matches the required data type and format. Value at node(): .
- Unable to evaluate action views_bulk_operations_action_load_list.
- Unable to get variable entity_list, it is not defined.
- Unable to evaluate loop.
Comment #4
wipeout_dude commentedComment #5
brianbrarian commentedI encountered the same errors after recently updating to 3.4. While troubleshooting, I noticed that my VBO view/display wasn't showing up in the "Load a list of entity objects from a VBO View" dropdown in my Rules action set edit UI. A bunch of other views were listed, just not the one I was using in the action set.
My steps to resolving were:
1. Create an entirely new view for the VBO view/display and select that in my Rules action set. But afterwards I still got the "Unable to ..." errors when executing the action set.
2. Implement patch #8 from https://www.drupal.org/node/2853029 or update VBO to 7.x-3.5. (Success either way; the fix from the patch is in 3.5.)
I'm not sure that step 1 was necessary, but I first tried to fix things by tinkering with my view (tried saving my old VBO display, cloning the old display, and cloning the old view before creating a new view) before I searched d.o for the errors and found wipeout_dude's issue posted.
Comment #6
pgrond commentedThe upgrade to 7.x-3.5 is not working as expected in my case. My result object in views_bulk_operations_action_load_list does not have a property $vbo->real_field. It has a property $vbo->field_alias though, containing the correct id. I seems logical it is the field_alias from views.
Comment #7
wipeout_dude commentedMine all seems to have started working again after updating all modules to the latest round of updates.. I guess something in there fixed it..
Comment #8
chalk commentedI can try to explain a nature of the bug: it appears when a field with identifier is not from a View's base table, for example from a joined (via "Relations") table.
In our project we use the OG module + a Rule that uses the views_bulk_operations_action_load_list() to fetch a list of UID. But the base table of a View that is used by the Rule is not "users". The base table is "og_membership". The View contains a relation to the "users" table.
See my screens:
The #6 patch solves the issue for me.
Comment #9
chalk commentedComment #10
JoOneSheep commentedMy rule was working fine in 3.3, but following update direct to 3.5 has stopped working, similar problem to Brianbrarian, when they said "I noticed that my VBO view/display wasn't showing up in the "Load a list of entity objects from a VBO View" dropdown in my Rules action set edit UI. A bunch of other views were listed, just not the one I was using in the action set."
Comment #11
joelpittetAll issues are worked on in the dev branch.
Comment #12
elektrorl commentedMake sure that the VBO field is loaded in the Master display. In the Views module settings, it is possible to force this Master display.
Comment #13
codeyourdream commentedI can confirm the patch from #6 fixes the issue in 7.x-3.x dev branch.