Problem/Motivation
if ($pager_offset = $this->view->pager->getOffset()) { on ViewsBulkOperationsActionProcessor.
The pager is not set resulting in the following error:
Error: Call to a member function getOffset() on null in /var/www/html/web/modules/contrib/views_bulk_operations/src/Service/ViewsBulkOperationsActionProcessor.php on line 241
VBO 3.13, Drupal 8.9.15.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | vbo_3217543_d8_13.patch | 553 bytes | navneet0693 |
Issue fork views_bulk_operations-3217543
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
krystalcode commentedComment #4
krystalcode commentedI have created an MR with a check that the pager is set before calling a method on it. Not sure if that's the correct solution, should the pager always be set and there's something missing elsewhere?
Comment #5
ressinelI have the same error. After some investigation, I got that changes by this issue raise the error.
Comment #6
ressinelHere's the patch that helps me to fix this error.
Comment #7
ressinelComment #8
navneet0693 commentedComment #9
graber commentedThe merge request needs to be rebased and the patch doesn't apply. Also not sure what's RTBCed - the MR or the patch?
Comment #10
navneet0693 commentedComment #11
ressinelI have updated the patch.
Comment #12
ressinelComment #13
navneet0693 commentedComment #14
navneet0693 commented@Graber The RTBC was for the patch, somehow the previous was getting applied via the composer.
Comment #16
graber commentedSorry it took so much time to commit this.
Comment #17
ressinel@Graber I see that you have reverted changes of this issue in this commit. We should add them again since
views_bulk_operations4.0.1release has this issue marked as fixed: https://www.drupal.org/project/views_bulk_operations/releases/4.0.1Comment #19
graber commentedAhh, indeed. Re-added in https://git.drupalcode.org/project/views_bulk_operations/-/commit/8b821c....
Thank you!