Steps to replicate the issue (include links if applicable):
- Run php maintenance/DeferredDescriptionUpdate.php --force
What happens?:
[61f4a2bcf066c55a13557817] [no req] TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given Backtrace: from w/extensions/WikiSEO/includes/DeferredDescriptionUpdate.php(109) #0 w/extensions/WikiSEO/includes/DeferredDescriptionUpdate.php(109): count() #1 w/extensions/WikiSEO/maintenance/GenerateDescription.php(94): MediaWiki\Extension\WikiSEO\DeferredDescriptionUpdate->doUpdate() #2 w/maintenance/doMaintenance.php(114): GenerateDescription->execute() #3 w/extensions/WikiSEO/maintenance/GenerateDescription.php(102): require_once(string) #4 {main}
What should have happened instead?:
The maintenance script should have finished successfully.
Software version (skip for WMF-hosted wikis like Wikipedia):
1.38.2 with WikiSEO snapshot from GitHub.
Other information (browser name/version, screenshots, etc.):
N/A
Adding var_dump() prior and after
$propertyDescription = array_shift( $propertyDescription ) ?? [];
results in
array(1) { [6]=> string(137) "…" } string(137) "…"
This is followed by
case count( $propertyDescription ) > 1: