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.
Problem/Motivation
When doing the dry run we noticed messages like
Deleted 0 revisions for node with nid 1568.
Deleted 0 revisions for node with nid .
Debugging the code a bit more we found that in many cases there is no value for the $nid
and it is still being passed to the delete batch process
hence we propose a check to see if the nid is set.
Comment | File | Size | Author |
---|---|---|---|
#2 | 3119141.patch | 987 bytes | yasheshb |
Comments
Comment #2
yasheshb CreditAttribution: yasheshb commentedthe patch below does a check if the nid is set. if not, it does not call the function to delete it.
Comment #3
adriancidComment #4
adriancidThanks for the patch