-
AuthorPosts
-
January 16, 2018 at 4:17 am #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!
January 17, 2018 at 11:54 am #898406Hey 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,
VictoriaJanuary 17, 2018 at 1:07 pm #898453Hi,
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ünterJanuary 18, 2018 at 7:26 am #898889Hello, thanks for the quick response! That works, thanks!
January 18, 2018 at 10:22 am #898971 -
AuthorPosts
- The topic ‘Conflict with Custom Sidebars Widget’ is closed to new replies.