For a fix with the coexistence with Simple History please refer to https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-_acf_get_field_by_id/#post-11222978.
However, I still don’t understand why ACF changed the function name when deprecating it.
I have already done and I have been corresponding with Kenny.
Just for the record, I renamed the deprecated function to “_acf_get_field_by_id” back to singular “field” and Simple History is now working without throwing the error.
So, I did a little digging into this and it seems that in version 5.7.11/12 ACF decided to deprecate the function called “_acf_get_field_by_id”. However, in the /advanced-custom-fields-pro/includes/acf-deprecated-functions.php line 57 the function is called “_acf_get_fields_by_id” (Note “fields” in plural) and that seems to be breaking resources that are still using the deprecated _acf_get_field_by_id, due to a typo/misspelling of the function?
ACF, any input on this?
On /wp-content/plugins/simple-history/loggers/Plugin_ACF.php line 374 you have the following:
$parent_field = _acf_get_field_by_id( $parent_field['parent'] );
It seems that function no longer exists in ACF.
Having a similar issue here as well.
Error thrown
Call to undefined function _acf_get_field_by_id()
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.