Support

Account

Home Forums Bug Reports Undefined function acf_enqueue_scripts()

Unread

Undefined function acf_enqueue_scripts()

  • Noticed this error on a site when trying to edit a post:

    PHP Fatal error: Uncaught Error: Call to undefined function acf_enqueue_scripts() in /var/www/site.com/htdocs/wp-content/plugins/advanced-custom-fields-pro/includes/forms/form-post.php:137

    The plugin was running version 5.7.0. Downgrading to 5.6.10 solved the issue.

    Stack trace:

    #0 /var/www/site.com/htdocs/wp-includes/class-wp-hook.php(286): ACF_Form_Post->admin_enqueue_scripts(‘post.php’)
    #1 /var/www/site.com/htdocs/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array)
    #2 /var/www/site.com/htdocs/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /var/www/site.com/htdocs/wp-admin/admin-header.php(97): do_action(‘admin_enqueue_s…’, ‘post.php’)
    #4 /var/www/site.com/htdocs/wp-admin/edit-form-advanced.php(483): require_once(‘/var/www/site.c…’)
    #5 /var/www/traneviken.se/htdocs/wp-admin/post.php(174): include(‘/var/www/site.c…’)
    #6 {main}

Viewing 1 post (of 1 total)

The topic ‘Undefined function acf_enqueue_scripts()’ is closed to new replies.