Support » Fixing WordPress » wp-json: Invalid argument supplied for foreach()

  • When accesing my.domain/wp-json/, error logs displays:

    PHP message: PHP Warning: Invalid argument supplied for foreach() in wp-content/plugins/woocommerce/includes/class-wc-api.php on line 372.

    This happens with all the /wp-json/ routes, for example:

    /wp-json/pum/v1/analytics/?event=open&pid=XXXXX&_cache=1558629315866
    /wp-json/wp/v2/
    /wp-json/yoast/v1/statistics

    I’m using WordPress 5.2.1 and Woocommerce 3.6.3 (may be relevant)

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘wp-json: Invalid argument supplied for foreach()’ is closed to new replies.