Home Forums ACF PRO Error with API and v5.7.1 with Custom Taxonomy


Error with API and v5.7.1 with Custom Taxonomy

  • I’m making calls to the API endpoint like so to get all terms for a specific custom taxonomy:

    I get an error that is returning HTML:

    <b>Notice</b>: Trying to get property 'post_parent' of non-object in <b>/var/www/html/wp-content/plugins/advanced-custom-fields-pro/includes/locations/class-acf-location-page-parent.php</b> on line <b>63</b><br />

    And this error appears 2 times for every term within that taxonomy. I don’t have this issue with any other endpoint, even custom post types. I only get it for custom taxonomies.

    The json data I want DOES get returned though after all those error messages.

    I’m also using the following plugins: v1.5.8 v3.1.0

    Is it maybe because the plugin to insert acf data into the rest api results is only intended for post objects?

  • Yeah it was that ACF to REST API plugin. I switched to the ACF to WP API and no longer get that error.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Error with API and v5.7.1 with Custom Taxonomy’ is closed to new replies.