How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support ACF Pro issue


Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #2514
    Craig Mason

    I am currently working on a website that is built using the Poka 2 theme.

    I am trying to use ACF Pro to create additional fields that are required but I can getting js errors in the console (see below).

    Do you know a solution to this? I have already tried deactivating all plugins but this has not fixed it, switching themes made the fields work so it must be a theme issue.

    Thanks in advance.


    post-new.php?post_type=acf-field-group:740 Uncaught TypeError: acf.newPostbox is not a function
    at post-new.php?post_type=acf-field-group:740
    (anonymous) @ post-new.php?post_type=acf-field-group:740
    post-new.php?post_type=acf-field-group:825 Uncaught TypeError: acf.newPostbox is not a function
    at post-new.php?post_type=acf-field-group:825
    (anonymous) @ post-new.php?post_type=acf-field-group:825
    post-new.php?post_type=acf-field-group:888 Uncaught TypeError: acf.doAction is not a function
    at post-new.php?post_type=acf-field-group:888
    (anonymous) @ post-new.php?post_type=acf-field-group:888
    acf-input.min.js?ver=5.7.6:1 Uncaught TypeError: Cannot read property ‘outerHTML’ of undefined
    at a.fn.init.$.fn.outerHTML (acf-input.min.js?ver=5.7.6:1)
    at Object.update_field_meta (acf-field-group.min.js?ver=5.7.6:1)
    at Object.wipe_field (acf-field-group.min.js?ver=5.7.6:1)
    at Object.add_field (acf-field-group.min.js?ver=5.7.6:1)
    at Object.add (acf-field-group.min.js?ver=5.7.6:1)
    at HTMLAnchorElement.o (acf-input.min.js?ver=5.7.6:1)
    at HTMLDocument.dispatch (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable,jquery-u&load[]=i-position,jquery-ui-draggable,wp-pointer&ver=4.9.8:formatted:2117)
    at HTMLDocument.r.handle (load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-resizable,jquery-u&load[]=i-position,jquery-ui-draggable,wp-pointer&ver=4.9.8:formatted:1996)

    • This topic was modified 5 years, 8 months ago by Craig Mason.

    Hi Craig,

    ACF is already included in Poka v2 theme. So there is no need to have it installed as a separate plugin.
    I believe that the errors you are getting is because of this.
    So first remove the ACF pro as a plugin if you have it installed.
    After that you can enable the Fields menu by adding the following to your child theme:

    `add_filter(‘acf/settings/show_admin’, ‘__return_true’, 100);`

    In order to add more custom fields you can add them in the “Fields” tab as you normally do or you can overwrite /inc/acf-metaboxes.php to your child theme and add your new fields in this file if you want the fields to be independent from the specific WP setup.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.