Skip to content
This repository was archived by the owner on Jul 23, 2024. It is now read-only.

Post object as draft return null value which causes internal server error #379

Closed
jakubnakielskixebia opened this issue Jan 30, 2024 · 2 comments
Labels

Comments

@jakubnakielskixebia
Copy link

Similar to issue #173 but with Post Object field type. When we'll pick post which is not published, GraphQL returns 500 Internal Server Error.

Screenshot 2024-01-30 at 14 38 16

@jasonbahl
Copy link
Contributor

@jakubnakielskixebia This issue has been resolved in the new WPGraphQL for ACF v2.0.

You can find the new version on the WordPress.org repo: https://wordpress.org/plugins/wpgraphql-acf/

The upgrade guide is here: https://acf.wpgraphql.com/upgrade-guide/

I would encourage you to upgrade to the new version at your earliest convenience as it is the version we'll be supporting long term and this repo will be archived in the near future.

@DevMude
Copy link

DevMude commented Feb 6, 2024

@jasonbahl I have a large project on v0.6.1 of this plugin. Unfortunately it would simply take significantly longer to update the plugin to latest and adjust all my front-end code than to fix the issue myself.

It looks like it would require a change somewhere around here:

case 'post_object':

But I just don't know enough of the internals of how wp-graphql works to figure out a fix myself.

Could you please give me some pointers on how I might fix this one?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants