• Resolved benfegore

    (@benfegore)


    Hi there, we are getting the following error in our log:
    FastCGI sent in stderr: “PHP message: PHP Warning: Invalid argument supplied for foreach() in [path to WP installation]/wp-includes/class-wp-post-type.php on line 669 [ … ] request: “POST /wp-json/complianz/v1/track HTTP/1.1”

    the respective code on line 669 in class-wp-post-type.php is

    foreach ( $this->taxonomies as $taxonomy ) {
    			register_taxonomy_for_object_type( $taxonomy, $this->name );
    		}

    Could you point us to any solutions?

Viewing 1 replies (of 1 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi @benfegore,

    As you can see in the log, this warning (not an error) comes from WordPress core, and is not related to Complianz.

    It looks like it’s related to php 8, and will likely get fixed by the community in one of the coming versions.

Viewing 1 replies (of 1 total)

The topic ‘PHP Warning: Invalid argument supplied for foreach()’ is closed to new replies.