• Chrispian

    (@chrispianb)


    We are getting two errors in the console.

    First one:

    Failed to load resource: net::ERR_NAME_NOT_RESOLVED in sfbap1-script.js:1

    When you try to go to the JS source for this error it’s a 404.

    https://www.EXAMPLE.comjs/sfbap1-script.js?ver=5.3.2

    It’s not including the full path to the JS so it’s failing to load.

    And this one, which I think is a cascade error due to the first script not loading properly:

    sfbap1-script.js?ver=5.3.2:4 Uncaught TypeError: this._addClass is not a function
    at e.<computed>.<computed>._create (sfbap1-script.js?ver=5.3.2:4)
    at e.<computed>.<computed>._create (plugins.js?ver=1.0.0:75)
    at e.<computed>.<computed>._createWidget (plugins.js?ver=1.0.0:75)
    at new e.<computed>.<computed> (plugins.js?ver=1.0.0:75)
    at HTMLDivElement.<anonymous> (plugins.js?ver=1.0.0:75)
    at Function.each (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-position,utils&ver=5.3.2:2)
    at a.fn.init.each (load-scripts.php?c=0&load[chunk_0]=jquery-core,jquery-migrate,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-resizable,jquery-ui-position,utils&ver=5.3.2:2)
    at a.fn.init.e.fn.<computed> [as draggable] (plugins.js?ver=1.0.0:75)
    at initDraggable (backend.min.js?ver=6.0.5:10)
    at p (load-scripts.php?c=0&load[chunk_0]=jquery-ui-draggable,jquery-ui-button,jquery-ui-dialog,wpdialogs,hoverIntent,common,hoverintent-js,admin-bar,heartbeat,autosave,w&load[chunk_1]=p-ajax-response,jquery-color,wp-lists,quicktags,jquery-query,admin-comments,suggest,postbox,jquery-ui-menu,jquery-ui-autocomplet&load[chunk_2]=e,tags-suggest,tags-box,underscore,word-count,wp-sanitize,post,editor-expand,thickbox,shortcode,backbone,wp-util,wp-backbone,med&load[chunk_3]=ia-models,wp-plupload&ver=5.3.2:432)

    We found this while trying to edit pages in WP Bakery. Disabling WP Social Feeds fixes the error but we would like to keep using this plugin.

Viewing 1 replies (of 1 total)
  • Chrispian

    (@chrispianb)

    I found where the issue is and what needs to be updated:

    In wp-social-feed/includes/sfbap1-enqueue-scripts.php line 46 reads:

    wp_enqueue_script( 'sfbap1-scriptjs', 'js/sfbap1-script.js', array() );

    But it should be something like:

    wp_enqueue_script( 'sfbap1-scriptjs', 'plugin_dir_url( __FILE__ ) . '../'js/sfbap1-script.js', array() );

    The issue is that as it’s written it’s throwing a 404 on admin side and it’s causing an error that’s conflicting with WP Bakery’s page editor.

    Happy to do a quick PR if you have a repo for this plugin.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.