Home › Forums › Front-end Issues › Error after updating › Reply To: Error after updating
Hey folks,
If you’re getting this error, and you’ve upgraded to ACF 6.4.0, it means you’ve code in your custom plugins or theme that is forcing ACF to initialise too early.
This is likely to be called like get_field
or acf_add_options_page
.
Once you’ve found the ACF calls which are happening too early, you can wrap the code in:
add_action('acf/init', function() { [existing code] });
to resolve this error.
Thanks,
Liam
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.