Problem/Motivation
When attempting to use the shs module, I encountered a TypeError related to the count() function. The error message indicates that the first argument passed to count() must be of type Countable|array, but an int was given instead.
TypeError: count(): Argument #1 ($value) must be of type Countable|array, int given in count()
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | shs.mkv | 1.62 MB | lavanyatalwar |
| #2 | 3513876.patch | 1.02 KB | catcat811 |
Issue fork shs-3513876
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
catcat811 commentedComment #5
arunsahijpal commentedCreated an MR and also fixed the pipeline.
Comment #6
lavanyatalwar commentedHi @catcat811, @arunsahijpal,
I’m unable to reproduce this error. I added Simple Hierarchical Select as the widget and tried adding terms and sub-terms in my vocabulary. Everything worked fine, and the content was added without any issues.
Could you please let me know if I’m missing something?
I am adding screen recording of the same for your reference.
Comment #7
lavanyatalwar commentedComment #10
joseph.olstadComment #12
joseph.olstadhttps://www.drupal.org/project/shs/releases/3.0.0-beta4
https://www.drupal.org/project/shs/releases/2.0.4