Hello,
I'm getting the following error when I try to update from 8.7.10 to 8.8.0 using drush updb
The two updates that fail are
views module
Define default values for limit operators settings in all filters.
Remove core key from views configuration.
With error
In ProcessBase.php line 188:
Unable to decode output into JSON: Syntax error
ArgumentCountError: Too few arguments to function Drupal\taxonomy\Plugin\views\argument\IndexTidDepth::__construct(), 4 passed in /core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php on line 54 and exactly 5 expected in Drupal\taxonomy\Plugin\views\argument\IndexTidDepth->__cons
truct() (line 39 of /core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php).
Any suggestions?
Regards,
Comments
Comment #2
cilefen commentedWhat is the Drush version?
Does /update.php work?
Comment #3
mellowtothemax commentedDrush is version 10 but it happens with 9 also. No the same error from the browser.
Full drush output if it helps
Comment #4
berdirHow does the constructor of core/modules/taxonomy/src/Plugin/views/argument/IndexTidDepth.php look like? There should only be 4 arguments, do you have any patches applied that didn't fully apply or something?
Comment #5
krzysztof domańskiI confirm Berdir's suggestion.
@mellowtothemax You must reroll patch that modifies an IndexTidDepth.php file. Maybe you're using a patch from #2765297: Return translated term name on views "Content: Has taxonomy term ID (with depth)".
It's probably related to small refactoring with 408c540. The code may be malformed after applying the old patch.
Comment #6
mellowtothemax commentedThank you both, Krzysztof Domański you were right on the money with the solution. I had patch 23 applied and had forgotten to alter my composer.json with the updated patches. Using the latest patch fixed the issue and the update completed successfully.
Will keep an eye on my patches from now on.
Comment #7
berdirSee https://twitter.com/berdir/status/1203596784150499329, with that setting this should be much more visible as it will abort hard and early in such a case.