Title: Call to undefined function get_field_object()
Last modified: June 20, 2017

---

# Call to undefined function get_field_object()

 *  Resolved [mallorydxw-old](https://wordpress.org/support/users/tomdxw/)
 * (@tomdxw)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_field_object/)
 * If you have ACF activated, but not loaded (for example when you need to run WordPress
   code via the CLI), you get these errors:
 * \`
    PHP Fatal error: Uncaught Error: Call to undefined function get_field_object()
   in /var/www/wp-content/plugins/relevanssi/lib/indexing.php `
 * Relevanssi should be using `if (function_exists('get_field_object'))` instead
   of (or as well as) checking if one of the ACF plugins is active.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_field_object/#post-9246814)
 * Thanks, will fix in the next version.

Viewing 1 replies (of 1 total)

The topic ‘Call to undefined function get_field_object()’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/call-to-undefined-function-get_field_object/#post-9246814)
 * Status: resolved