Problem/Motivation
I'm getting the following error with the 8.x-1.8 version of the module:
ArgumentCountError: Too few arguments to function Drupal\taxonomy\Plugin\views\argument\IndexTidDepth::__construct(), 4 passed in /taxonomy_entity_index/src/Plugin/views/argument/TaxonomyEntityIndexDepth.php on line 58 and exactly 5 expected in Drupal\taxonomy\Plugin\views\argument\IndexTidDepth->__construct()
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3276743.patch | 1.38 KB | larowlan |
| #2 | 3276743-too-few-arguments.patch | 3.02 KB | optasy |
Comments
Comment #2
optasy commentedI attached the patch to fix the issue.
Comment #3
larowlanWhat version of core are you seeing this on?
Comment #4
larowlanI don't see those arguments in 9.4.x or 10.0.x
Comment #5
larowlanI think you must have a patch applied to core
Comment #6
jipiuno commentedI encounter the same error on D10 (php 8.2.1) :
ArgumentCountError: Too few arguments to function Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid::__construct(), 5 passed in /home/*/**/web/modules/contrib/taxonomy_entity_index/src/Plugin/views/filter/TaxonomyEntityIndexTidDepth.php on line 57 and exactly 6 expected in Drupal\taxonomy\Plugin\views\filter\TaxonomyIndexTid->__construct() (line 69 of /home/*/**/web/core/modules/taxonomy/src/Plugin/views/filter/TaxonomyIndexTid.php).Comment #7
larowlanCan you check your composer.json or similar to see if you have any patches applied to views?
Comment #8
jipiuno commentedhere my composer.json :
Comment #9
larowlanAh I see the issue, I was looking at the wrong class
Let's fix this using https://www.previousnext.com.au/blog/safely-extending-drupal-8-plugin-cl...
Comment #10
larowlanComment #12
larowlanwill cut 8.x-1.13 with this fix, thanks
Comment #13
larowlanhttps://www.drupal.org/project/taxonomy_entity_index/releases/8.x-1.13