I have a couple of sites using the Newspaper theme, love it!
I know that Ultimate addons isnt a plugin that has been tested by you guys but was wondering if I could get any help with an issue.
I have Ultimate Addons on two of the sites, one of which it works perfectly on. The other when I enable it, it doesnt allow me to use the WPBakery Page builder… I am getting the following error in the console log:
Uncaught ReferenceError: _ is not defined
at HTMLDocument.<anonymous> (post-new.php?post_type=page:2809)
at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,moxiejs,plupload&ver=4.9.8:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,moxiejs,plupload&ver=4.9.8:2)
at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,moxiejs,plupload&ver=4.9.8:2)
at HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,moxiejs,plupload&ver=4.9.8:2)
post-new.php?post_type=page:2809
When I click through to this file it takes me to this section of code :
<script>
jQuery(document).ready(function(){
// add your shortcode attribute and its default value to the
// gallery settings list; $.extend should work as well…
_.extend(wp.media.gallery.defaults, {
td_select_gallery_slide: ”, td_gallery_title_input: ”
});
// merge default gallery settings template with yours
wp.media.view.Settings.Gallery = wp.media.view.Settings.Gallery.extend({
template: function(view){
return wp.media.template(‘gallery-settings’)(view)
+ wp.media.template(‘td-custom-gallery-setting’)(view);
}
// ,initialize: function() {
// if (typeof this.model.get(‘td_select_gallery_slide’) == ‘undefined’) {
// this.model.set({td_select_gallery_slide: ‘slide’});
// }
// }
});
//console.log();
// wp.media.model.Attachments.trigger(‘change’)
});
</script>
Any ideas as why I would be getting this on one installation but not the other?
I have done the standard checks of, checking if it was the theme, and disabling all other plugins etc. Both sites have the exact same plugins installed on them as well.
Any help would be appreciated!
Hi,
Something must be different there if you use the same theme and exactly the same plugins, but there is an error.
Does it happen if you switch to a default theme? Could also be server related if you have different hosting.
Maybe contact the plugin author as well, they might have an idea about the problem. Or search for similar issues with the plugin, online. I have no experience with the addons unfortunately.
Thanks