- Issue created by @pjanda
- Status changed to Needs review
over 1 year ago 3:33pm 15 June 2023 - Issue was unassigned.
After updating to Drupal 10, the following error occurs:
TypeError: count(): Argument #1 ($value) must be of type Countable|array, stdClass given in template_preprocess_we_megamenu_li() (line 399 of the file /var/www/html/htdocs/modules/contrib/we_megamenu/we_megamenu.module).
Use subtree block in Drupal 10.
The error message suggests that the argument passed to the count() function is expected to be either an array or a Countable object, but it's receiving an stdClass object instead. To fix this error, you need to ensure that the value passed to count() is a valid array or Countable object.
Needs review
1.0
Code