wp-graphql / wp-graphql-acf

WPGraphQL for Advanced Custom Fields
https://wpgraphql.com/acf
626 stars 124 forks source link

Deprecated function "WPGraphQL\Data\DataSource::resolve_post_object" #382

Closed sdegetaus closed 1 month ago

sdegetaus commented 5 months ago

Hello!

We started getting a thousand warnings once we went live. We believe this is the culprit:

image

Our website is in Spanish, so sorry about the "spanglish" 😁

User Deprecated: ¡La función WPGraphQL\Data\DataSource::resolve_post_object ha quedado obsoleta desde la versión 0.8.4! Usa Use $context->get_loader( 'post' )->load_deferred( $id ) instead. en su lugar.

Any chance of fixing this on the production version?

Thanks for you help.

jasonbahl commented 5 months ago

@sdegetaus what version of WPGraphQL for ACF are you using? I would highly recommend updating to WPGraphQL for ACF v2.*+ when you can. This repo will be archived in the not-too-distant future.

I will consider doing a minor release for this, but it has already been publicly stated many times that this repo will no longer be supported long-term in favor of the re-built WPGraphQL for ACF v2.0+ which is available on GitHub (https://github.com/wp-graphql/wpgraphql-acf) and the WordPress.org repository: https://wordpress.org/plugins/wp-graphql/

jasonbahl commented 1 month ago

This was fixed and released in https://github.com/wp-graphql/wp-graphql-acf/releases/tag/v0.6.2