• Resolved casbboy

    (@casbboy)


    I’ve updated the Ad Inserter to 2.1.8 and am now having issues in the settings. On top of the pages, under Ad Inserter, it says:

    Javascript 2.1.5 to the left, and this to the right:

    Missing version parameter for the javascript file, probably due to inappropriate caching. (I have version parameter removed in the wordpress functions, is this breaking it?)
    Incompatible (old) javascript file loaded, probably due to inappropriate caching.
    Please delete browsers cache and all other caches used and reload this page.

    My browser has no cache and I cleared the cache. So not sure what is going on. But I can’t see tabs now or edit the ad blocks due to this error.

    Cheers
    Ryan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Spacetime

    (@spacetime)

    Yes, you should not change the code generated by the plugin. Version parameter is needed.

    Thread Starter casbboy

    (@casbboy)

    I have this function in my site functions file for SEO. Could this be doing it?

    //remove script versions
    function vc_remove_wp_ver_css_js( $src ) {
        if ( strpos( $src, 'ver=' ) )
            $src = remove_query_arg( 'ver', $src );
        return $src;
    }
    add_filter( 'style_loader_src', 'vc_remove_wp_ver_css_js', 9999 );
    add_filter( 'script_loader_src', 'vc_remove_wp_ver_css_js', 9999 );
    Plugin Author Spacetime

    (@spacetime)

    Yes. The version parameter is there to ensure the browser loads the right files when the plugin is updated.

    Thread Starter casbboy

    (@casbboy)

    Yep, noting that out fixed it.

    Just to report – all installed here and working fine – thanks Igor

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Incompatible Javascript Loaded’ is closed to new replies.