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

acf_get_options_page requires ACF Pro

Open james-wfaa opened this issue 4 years ago • 1 comments

Running wp-graphql-acf 0.5.2 with advanced-custom-fields 5.9.6, I got this error when trying to load the GraphiQL browser:

PHP Fatal error: Uncaught Error: Call to undefined function WPGraphQL\ACF\acf_get_options_page() in /nas/content/live/uwadvancement/wp-content/plugins/wp-graphql-acf-develop/src/location-rules.php:948

I think we had ported over some /acf-json/ files from a different project, and one of them contained a field group definition that was on an options page.

But this code in location-rules.php should probably check for the existence of the function before calling it.

james-wfaa avatar Jun 02 '21 13:06 james-wfaa

+1

benbender avatar Nov 02 '21 13:11 benbender

I also have this error

mkreidler avatar Oct 02 '22 13:10 mkreidler

This bug has been resolved in the new version of WPGraphQL for ACF, being worked on over here: https://github.com/wp-graphql/wpgraphql-acf.

It's a major re-architecture of the plugin and resolves a LOT of issues this plugin suffered from. It's the version we'll be releasing to the WordPress.org plugin repo (in the review queue now) and it's what we'll be supporting long-term. This repo will be archived in the not-too-distant future.

jasonbahl avatar Oct 31 '23 16:10 jasonbahl