• adolfopitanza

    (@adolfopitanza)


    Ok, sorry. I’ve just read what I’ve said and realized this exception is caused by ACF and your plugin only catches this error.
    Sorry for bothering you 🙂

    Love this plugin!

    Original message:
    Hello! First of all thanks for this awesome plugin! I’ve been using it for several months now and I absolutely love its functionalities.

    But there’s an error that seems to occur only when I use Advanced Custom Fields.
    If a post has a Map field (inserted using ACF) I get this error:
    ___________________________________________________
    AG Custom Admin caught a JavaScript on your site

    Uncaught TypeError: Cannot read property ‘Autocomplete’ of undefined
    source: …/wp-content/plugins/advanced-custom-fields-pro/assets/js/acf-input.min.js?ver=5.1.8
    line:1
    ___________________________________________________

    Is there anything I can do? (I’m not using any custom Javascript code within your plugin)
    Thank you so much!

    https://wordpress.org/plugins/ag-custom-admin/

Viewing 1 replies (of 1 total)
  • WAP Support

    (@argonius)

    Hi,

    Thanks for the comments. You should contact the plugin support and report this error to them. You could also fix this error manually, but the problem is that they have minified version of JS script so that can be difficult task.

    Basically, in order to fix such errors, you would need to wrap it out with “undefined” check like this:

    if(typeof someObject !== "undefined"){
         //it's safe to read its property
         someObject.Autocomplete
    }

    but, the best way is to report this to the support and wait for the patch.

Viewing 1 replies (of 1 total)
  • The topic ‘Conflict with ACF Map’ is closed to new replies.