Problem/Motivation
Upgrading to views_bulk_operations from 4.4.8 to 4.4.9 breaks any views where eca_vbo is used due to deprecated code in `eca_vbo/src/Plugin/Action/VboExecute.php`
Steps to reproduce
Visit any view which has eca_vbo related actions enabled in it (after updating views_bulk_operations to 4.4.9) and get "The website encountered an unexpected error. Try again later."
The database log message reads:
Error: Call to undefined method Drupal\views_bulk_operations\Action\ViewsBulkOperationsActionBase::customAccess() in Drupal\eca_vbo\Plugin\Action\VboExecute::customAccess() (line 155 of /var/www/web/modules/contrib/eca_vbo/src/Plugin/Action/VboExecute.php).
A search suggests that this error occurs because the customAccess() method was deprecated and removed in recent versions of the Views Bulk Operations (VBO) module, but eca_vbo still calls it.
Issue fork eca_vbo-3630966
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:
- Glottus-1.0.x-patch-27a9
changes, plain diff MR !7
Comments
Comment #2
mxh commentedAdded related issue #3630966: Call to undefined method customAccess()
Comment #4
mxh commentedThank you for the bug report and suggesting an MR. We need a different solution than MR7 suggests. We cannot just remove the event dispatching part, since users may have configured ECA workflows involving a custom access event. So removing the part would basically just ignore their configured access logic, which would be a severe security concern if we'd just remove it.
I see two options:
Comment #5
erutan commentedCan chime in with a proper MR later, but the following works for me (approach 1 vs the 2 of OP) if anyone else is getting bitten before a solution is settled on
Comment #6
mxh commentedWill put in the fix as shown in #5.
Comment #9
mxh commentedThank you all, will tag new release for this.