Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a few hundred nodes of which I want to modify a value. Hence I created a view (see attachment) with a VBO field. The resulting list is correct (filtering works). When I select one item / all of this page / all, then click "modify entity values" and define the values I get a page like that:
You selected the following 0 items:
...and 722 more.
[Confirm] [cancel]
If I click [Confirm] I see a progress bar taking a long time pretending to process 722 nodes but then back in the view nothing has changed.
Comment | File | Size | Author |
---|---|---|---|
failing_view.txt | 12.07 KB | Tim-Erwin |
Comments
Comment #1
bojanz CreditAttribution: bojanz commentedThis is a duplicate of #1845056: Warning: array_chunk() expects parameter 2 to be long (same cause).
Comment #2
Tim-Erwin CreditAttribution: Tim-Erwin commentedI can't see how this is a duplicate. In the issue you link to, the option "Number of entities to load at once" is not set, in my view it is. I also tried setting it to 1 because it says I should do so in case I experience problems, but still nothing* happens.
*) pretends to do something, uses CPU cycles and causes hd I/O but doesn't change any value
Comment #3
bojanz CreditAttribution: bojanz commentedOkay, it just looked the same then.
I'll try to reproduce the next time I work on VBO.
You can try the 3.1 release to see if anything changed in the behavior.
Comment #4
ilreports CreditAttribution: ilreports commentedI've been having the exact same issue that @Tim-Erwin described. It appears to go through the process of modifying entity values but makes no changes. I've tried doing one node at a time, small groups, large groups; all with the same result. I'm currently using the 3.1 release.
Comment #5
bojanz CreditAttribution: bojanz commentedIs it possible that the items are skipped because of permission issues?
(Does it work if you use the view as admin?)
That's the only reason why a node could be skipped.
I can't reproduce it in any way.
Comment #6
bojanz CreditAttribution: bojanz commentedSo, let me know.
Comment #7
bojanz CreditAttribution: bojanz commentedNo further information provided.
Comment #8
notanumber6789 CreditAttribution: notanumber6789 commentedI am experiencing the same issue with VBO 7.x-3.3 while trying to modify the value of a text field in a custom entity created with ECK.
Everything seems to work as expected, after clicking confirm the bulk operation appears to execute and I receive the confirmation "Performed Modify entity values on X items", but no values are in fact modified.
I am attempting this as the admin user 1 to avoid any permissions issues.
Perhaps related I noticed the available tokens list only shows site tokens, despite having entity token enabled. I have tried modifying the value of my text field with tokens and with plain text - in both cases it appears to work, but no values are modified.
The option "Number of entities to load at once" was set to 10 by default, I tried setting it to 1 as suggested. I have also tried selecting a single record for modification, nothing works.
Can this issue be re-opened? Is there a workaround or fix I can try?
Thanks for the help.
Comment #9
GarChris CreditAttribution: GarChris commentedAfter deleting a taxonomy vocabulary with over 8,000 terms I ended up with that many "ghost" terms in my database not assigned to any vocabulary. Even though they showed up in Views, Views Bulk Operations could not act on them. Selecting the terms and pressing
"execute" gives: "You selected the following 0 items" and VBO fails silently.
To remove these terms:
WHERE tid BETWEEN 9765 AND 42369
This was specific to Taxonomy, but it might apply to other entities as well
Comment #10
artsakenos CreditAttribution: artsakenos as a volunteer and commentedI have the same issue, i put some more information.
The Issue:
VBO Succesfully updates the node property, the node is correctly saved with the correct property set up.
As a consequence the exposed filter correctly select the items, but when you edit the node the former value is reported.
Debug:
The node seems to be correctly saved. The property is correctly set up.
But, implementing a _form_alter is possible to see that the entity object is not set propertly.
This leads to a wrong value during the edit of the item (which is cause data loss if user saves the node without re-setting the value).
Note that, if the field value is edited without using vbo, the correct new value is saved.
It is obvious but it was not at soon as I found this discrepancy on the website data.
I am working on a solution, if any suggestions please comment.
Comment #11
mattyboy57 CreditAttribution: mattyboy57 commentedI am getting the same problem. It states that the entities were updated and yet they are not. Using the same versions as Tim above. But not always!
I have some list-fieldss used in the user profile which can be VBO edited by one role. Even as Admin I find that they are variable in whether the VBO actually changes the value. I have tried one at a time, setting value to 1, and changing "separate button" to "drop down"
I also have a total problem with a "delete entities" VBO where none of the entities are deleted
I recently added the Additional Aggregation Views Module and some Permission modules related to subscribing to notifications so I will disable these and see if that affects anything.
Comment #12
ericwongcm CreditAttribution: ericwongcm commentedI experienced something similar, i.e. Drupal says it is updated but nothing happens and it seems to originate from the code changes to 7.x-3.3 as a result of this..
https://www.drupal.org/node/2516688
If I go back to 7.x-3.2, VBO works fine.
Something needs to be done to roll back the change or implement the fix differently.
Note: I was using VBO to change the Ubercart order status.
Duplicate issue: https://www.drupal.org/node/2537244
Comment #13
jas1988 CreditAttribution: jas1988 as a volunteer commentedFacing same issue nodes just get proceed but no values changes even when logged-in with admin user 1I have tested with new view and modified permissions it works fine with newer version as well !
Comment #14
vaccinemedia CreditAttribution: vaccinemedia commentedI have a view of taxonomy terms in order to bulk update their meta tags. I have two issues here:
The first one is that the token [term:description] is not allowed for the meta description field.
The second one is that on bulk updating the terms with new or default meta tags the change is not shown on the front end. The meta tags are all the same as they were before. HOWEVER, if I edit the term, I can see the new values in the edit form and upon saving the term the new values are then reflected on the website. It appears that the term is being updated but not saved by VBO?