Fatal Error on batch update Woocommerce Categories
-
Hello,
When I batch update my woocommerce categories I get a fatal error…
2022-11-18T15:34:24+00:00 CRITICAL Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /data/sites/web/domain/www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php:184 Stack trace: #0 /data/sites/web/domain/www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php(223): WC_REST_Controller->check_batch_limit() #1 /data/sites/web/domain/www/wp-includes/rest-api/class-wp-rest-server.php(1143): WC_REST_Controller->batch_items() #2 /data/sites/web/domain/www/wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respond_to_request() #3 /data/sites/web/domain/www/wp-includes/rest-api/class-wp-rest-server.php(414): WP_REST_Server->dispatch() #4 /data/sites/web/domain/www/wp-includes/rest-api.php(394): WP_REST_Server->serve_request() #5 /data/sites/web/domain/www/wp-includes/class-wp-hook.php(307): rest_api_loaded() #6 /data/sites/web/domain/www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #7 /data/sites/web/domain/www/wp-includes/plugin.php(524): WP_Hook->do_action() #8 /data/sites/web/domain/www/wp-includes/class-wp.php(398): do_action_ref_array() #9 /data/sites/web/domain/www/wp-includes/class-wp.php(770): WP->parse_request() #10 /data/sites/web/domain/www/wp-includes/functions.php(1330): WP->main() #11 /data/sites/web/domain/www/wp-blog-header.php(16): wp() #12 /data/sites/web/domain/www/index.php(17): require('/data/sites/web...') #13 {main} thrown in /data/sites/web/domain/www/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-controller.php op de lijn 184
I posted the data as:
`{
“create”:[
{
“name”:”Geurspray”
},
{
“name”:”Geurstokjes”
},
{
“name”:”Toestellen”
},
{
“name”:”Stalen”
}
]
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Fatal Error on batch update Woocommerce Categories’ is closed to new replies.