i’ve made a theme for WordPress and i have included the plugin and all addon-ons. All work fine since version 4.2.2
I get this error on version ACF 4.3.0:
Fatal error: Class 'acf_field' not found in …/acf-gallery/gallery.php on line 4
After a little search in the new ACF 4.3.0 i found the problem in acf.php:
add_action('plugins_loaded', array($this, 'include_before_theme'), 1);
If i change to this:
add_action('after_setup_theme', array($this, 'include_before_theme'), 1);
All work fine but add ons and options disappears, and the exported php not work
Ok, i found the solution. (but an UGLY solution, @elliot surely will do it better)
// includes $this->include_before_theme(); //add_action('plugins_loaded', array($this, 'include_before_theme'), 1); add_action('after_setup_theme', array($this, 'include_after_theme'), 1);
just disabled plugins_loaded
I just posted a temp fix on a similar thread:
The topic ‘Fatal Error 4.3.0 acf_field not found’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.