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.
This commit broke hook "message_update_7007". Range is not a method in UpdateQuery and current code produces fatal error (if at least 1 message exists before said update is ran):
PHP Fatal error: Call to undefined method UpdateQuery::range()
Is the batch operation really needed there?
Comments
Comment #1
amitaibuIt's probably needed if there are already lots of Messages. It would be great if you could submit a patch that will find the next batch of IDs and update them. Possible?
Comment #2
fngatia CreditAttribution: fngatia commentedHi! You see this UpdateQuery::range(), there is something wrong with your range i.e range->(0,50).
maybe you forgot a comma or brackets e.tc. Please paste your code here we might figue out the solution.
Comment #3
bluegeek9 CreditAttribution: bluegeek9 as a volunteer commented