Support

Account

Home Forums Backend Issues (wp-admin) Call to undefined function acf_get_field_groups()

Helping

Call to undefined function acf_get_field_groups()

  • Today I have received an email from WordPress it says I have a problem with my site.
    Unfortunately, it’s a white screen for both the front end and back end.

    How to fix these issues? does downgrade to the last version of the ACF plugin fix the issue, and how to do it?

    Wordpress version: 5.7.2
    PHP version: 7.3.28

    Errors:

    An error of type occurred E_ERROR because of line 203 in the file /srv/htdocs/wp-content/themes/s7/functions.php. error msg: Uncaught Error: Call to undefined function acf_get_field_groups() in /srv/htdocs/wp-content/themes/s7/functions.php:203
    Stack trace:
    #0 /wordpress/core/5.7.2/wp-includes/class-wp-hook.php(292): {closure}(”)
    #1 /wordpress/core/5.7.2/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters(NULL, Array)
    #2 /wordpress/core/5.7.2/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #3 /wordpress/core/5.7.2/wp-settings.php(560): do_action(‘init’)
    #4 /srv/htdocs/wp-config.php(81): require_once(‘/wordpress/core…’)
    #5 /wordpress/core/5.7.2/wp-load.php(42): require_once(‘/srv/htdocs/wp-…’)
    #6 /wordpress/core/5.7.2/wp-login.php(12): require(‘/wordpress/core…’)
    #7 {main}
    thrown

  • Place this in your wp-config.php file to gain access to your site admin.

    
    define('WP_DISABLE_FATAL_ERROR_HANDLER', true);
    

    The only reason to get this error is that ACF has been deactivated.

    You wouldn’t happen to be hosting on wordpress.com would you?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.