Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #897846

    I’m trying to use this widget: https://wordpress.org/plugins/custom-sidebars/

    On the widgets screen, they have an option to select location for the widget. Clicking on that comes up with an Enfold-related error:

    Uncaught TypeError: settings.data.search is not a function
    at HTMLDocument.<anonymous> (avia_google_maps_widget.js?ver=1.0.0:27)
    at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:3)
    at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:3)
    at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:3)
    at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:9)
    at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:4)
    at XMLHttpRequest.c (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:4)

    I found a support topic that says to add in:
    typeof settings.data.search != 'undefined' &&
    https://wordpress.org/support/topic/widget-stuck-on-load-after-when-selecting-location/

    I see that framework/js/conditional_load/avia_google_maps_widget.js has:
    typeof(settings.data) !== 'undefined'

    So that should actually be:
    typeof(settings.data.search) !== 'undefined'

    That allows this widget to load, though the widgets page does now say:

    avia_google_maps_widget.js?ver=1.0.0:27 Uncaught TypeError: Cannot read property ‘search’ of undefined
    at HTMLDocument.<anonymous> (avia_google_maps_widget.js?ver=1.0.0:27)
    at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:3)
    at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:3)
    at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:3)
    at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:9)
    at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:4)
    at XMLHttpRequest.c (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,underscore,shortcode,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,backbon&load[]=e,wp-util,wp-backbone,media-models,moxiejs,plupload,wp-plupload&ver=4.9.1:4)

    Can Enfold be updated to correct settings.data to settings.data.search so that this plugin can work correctly?

    Thanks!

    #898406

    Hey Prizem,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
    Can you switch to the default theme and see if the issue persists?

    Best regards,
    Victoria

    #898453

    Hi,

    Thank you for using our theme and reporting the problem.

    Could reproduce it and added a fix to our core. Should be in one of the next updates.

    To avoid that error message replace the line:

    
    if(typeof(settings.data) !== 'undefined' && .....
    

    with:

    
    if(typeof(settings.data) !== 'undefined' && typeof(settings.data.search) !== 'undefined' && .....
    

    Best regards,
    Günter

    #898889

    Hello, thanks for the quick response! That works, thanks!

    #898971

    Hi,

    Glad we could help you.

    Feel free to open a new topic if you need further assistance.
    Enjoy the theme.

    Best regards,
    Günter

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Conflict with Custom Sidebars Widget’ is closed to new replies.