Using the same two configurable actions that work fine on a view with exposed filters, when I use a contextual filter I'm missing the form on one of my actions. The broken action is generating a select list in buildConfigurationForm(), the working one is just presenting a textfield.
I'll keep digging but there was nothing obvious in the error log (right after clearing caches):
Error: Call to a member function getRouteByName() on null in Drupal\views\ViewExecutable->getUrl() (line 1955 of /home/presswire2/drupal8/web/core/modules/views/src/ViewExecutable.php)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | vbo_test.tar_.gz | 2.24 KB | skitten |
Comments
Comment #2
graber commentedThanks for reporting, please provide steps to reproduce, ideally upload file with your action code.
Do you have the latest version (https://www.drupal.org/commitlog/commit/91958/6396370225be7c94caf129b72f...)?
Comment #3
skitten commentedI didn't have latest (grr composer one day I will understand you) but I do now.
I made a simple module (attached) with two configurable actions, one with a text field, one with a select.
Then on a fresh Drupal install I create two nodes and a view. The view has two pages, both with VBO and the two actions, but one has a contextual filter on the node id. I only get the error when the contextual filter actually has a value (and it works the first time, but if I then choose the other action it fails). The site is here if you want to see:
Regular view (works): http://scratch.presswire.com/test
Contextual filter no value (works): http://scratch.presswire.com/test2
Contextual filter with value (doesn't work): http://scratch.presswire.com/test2/1
Comment #4
graber commentedReproduced. It must be a views issue, time to do some debugging.
Comment #5
graber commentedIt's a core views issue, just created it: https://www.drupal.org/node/2880275.
Untill this is fixed, you can use newly added feature of action configuration on a new page (VBO field settings on view admin page -> "Configuration form on new page (configurable actions)" checkbox) or apply temporary fix to ViewsExecutable.php (not recommended though)
Comment #6
joelpittetMoving to
views_bulk_operationsqueueComment #7
graber commentedComment #8
graber commentedBlocked by a core Views issue #2880275.
Comment #10
graber commentedRemoved backtrace.
Comment #11
graber commentedComment #12
graber commentedComment #13
graber commentedAt the moment configuration forms always open on a new page, where the problem doesn't occur. We can reenable AJAX configuration when the source core issue is fixed.
Comment #14
graber commentedRemoving parent port issue as it's no longer relevant. Added reference core issue as related.