• I have som problems regarding Advanced Custom Fields on a site. Have tried to deactivate all other plugins but no success there.

    Everything works fine on the site but in the admin view I cant expand any ACF-fields. I′ve tried to search for any related problems but cant seem to fix this.

    Below you can se the errors in the console:

    
    acf-field-group.min.js?ver=5.7.13:1 Uncaught TypeError: acf.Model is not a constructor
        at acf-field-group.min.js?ver=5.7.13:1
        at acf-field-group.min.js?ver=5.7.13:1
    acf-pro-field-group.min.js?ver=5.7.13:1 Uncaught TypeError: Cannot read property 'extend' of undefined
        at acf-pro-field-group.min.js?ver=5.7.13:1
        at acf-pro-field-group.min.js?ver=5.7.13:1
    post.php?post=378&action=edit:4663 Uncaught TypeError: acf.newPostbox is not a function
        at post.php?post=378&action=edit:4663
    post.php?post=378&action=edit:4756 Uncaught TypeError: acf.newPostbox is not a function
        at post.php?post=378&action=edit:4756
    post.php?post=378&action=edit:4816 Uncaught TypeError: acf.doAction is not a function
        at post.php?post=378&action=edit:4816
    post.php?post=378&action=edit:4857 Uncaught ReferenceError: QTags is not defined
        at post.php?post=378&action=edit:4857
Viewing 3 replies - 1 through 3 (of 3 total)
  • Mr_sordum

    (@paulcityhopper)

    Here I have the same issue. Its in combination with the Yoast SEO Plugin.

    So you should check it like Yoast aswell. If you deactivate one of the plugins it will work.

    Please fix that issue.

    Here is the link to my ticket @yoast: https://www.ads-software.com/support/topic/editor-error-9/#post-11404629

    Alex

    (@infinityseeker)

    I had the same issue and it was caused by my optimisation efforts. I installed a plugin called Remove Query Strings, which caused ACF to load wrong js files. Disabled that plugin and all works like a charm.

    @infinityseeker! Thank you!
    This could also be a code in your functions.php removing query strings.
    i had:

    
    function _remove_script_version( $src ){
      $parts = explode( '?ver', $src );
      return $parts[0];
    }
    
    add_filter( 'script_loader_src', '_remove_script_version', 15, 1 );
    add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
    

    And when i removed that – it all worked again.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught TypeError in admin view’ is closed to new replies.