gatsbyjs / wp-gatsby

WordPress plugin for gatsby-source-wordpress
Other
167 stars 41 forks source link

Call to undefined function "acf_get_options_pages" #214

Closed laurent-le-graverend closed 2 years ago

laurent-le-graverend commented 2 years ago

Facing this issue since the last update, it happens when saving a post.

PHP message: PHP Fatal error:
Uncaught Error: Call to undefined function WPGatsby\ActionMonitor\Monitors\acf_get_options_pages()
in /var/www/wordpress/wp-content/plugins/wp-gatsby/src/ActionMonitor/Monitors/AcfMonitor.php:40

Probably coming from #206.

andy-dextrous commented 2 years ago

Happening to me now too. Started within the last 2 weeks, not sure exactly when. It occurs every time I save any page or post that has ACF fields attached.

Screen Shot 2022-02-14 at 5 07 12 pm
shawngrona commented 2 years ago

Same for me, looks like issue goes away if I rollback to wp-gatsby 2.2.0 supporting OP mention of https://github.com/gatsbyjs/wp-gatsby/pull/206

This issue surfaced for me when I tried saving the meta description of a post in the Yoast plugin

TylerBarnes commented 2 years ago

This is fixed in version 2.3.1 (it's publishing now 😄) Thanks for the bug report!