wp-graphql-acf icon indicating copy to clipboard operation
wp-graphql-acf copied to clipboard

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

Open sdegetaus opened this issue 1 year ago • 1 comments

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.

sdegetaus avatar Mar 13 '24 16:03 sdegetaus

@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 avatar Mar 26 '24 17:03 jasonbahl

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

jasonbahl avatar Jul 23 '24 16:07 jasonbahl