- Issue created by @ikeigenwijs
doing export of taxonomy
An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=92537&op=do_nojs&op=do StatusText: Service unavailable (with message) ResponseText: TypeError: count(): Argument #1 ($value) must be of type Countable|array, stdClass given in taxonomy_csv_term_export() (line 566 of /modules/taxonomy_csv/export/taxonomy_csv.export.api.inc).
upgrade to php8.2 --> do export
quick fix explicate cast
works for us but its treating a symptom, i did not run through all te code.
line 536 replace
if (count($term)) {
with
if (count((array)$term)) {
create patch and pull request
Needs work
5.0
Code
The issue particularly affects sites running on PHP version 8.2.0 or later.