Support » Plugin: Ad Inserter - Ad Manager & AdSense Ads » Ad Inserter code editor can’t work properly after update to 2.4.6 version

  • Resolved Muhammad Iqbal



    After I updated my Ad Inserter plugin to the newer version (2.4.6), a bug appear like code editor can’t work properly (block can’t see)

    How can I fix this problem?


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



    it seems you have some javascript issue.
    Check browser console for errors.

    If you can’t diagnose/fix the problem please submit a ticket and refer to this thread.

    Thread Starter Muhammad Iqbal


    Thanks for your kind reply.

    I tried with another browser, it just shows me the same.
    I will submit the ticket for further help.

    Thank you

    Plugin Author Spacetime


    Ticket received and email sent, however, no reply received.

    Same problem here.

    My case is related an option to remove query strings from static resources.

    The new plugin update to 2.4.6 version caused this issue.

    Test some snippet of this and you will see the problem.

    // Removing Query Strings
    add_filter( 'style_loader_src',  'remove_cssjs_ver', 10, 2 );
    add_filter( 'script_loader_src',  'remove_cssjs_ver', 10, 2 );
    function remove_cssjs_ver( $src ) {
    if ( strpos( $src, '?ver=' ) ) {
    	$src = remove_query_arg( 'ver', $src );
    return $src;
    // Removing Query Strings
    function _remove_script_version( $src ){ 
    $parts = explode( '?', $src );  
    return $parts[0]; 
    add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); 
    add_filter( 'style_loader_src', '_remove_script_version', 15, 1 );
    Plugin Author Spacetime


    Query strings should not be removed from Ad Inserter CSS and JS files:

    Version parameters are added so that in the case CSS/JS code changes when plugin is updated, the right files are loaded (and not the cached ones).

    The following files need query string (version info) on the settings page:


    You can try to reload (new) files with Ctrl F5 – to force the browser to reload all the files.
    However, the code may still show some warning that the version info is missing.

    Anyway, you should not change the code generated by the plugin.

    Thread Starter Muhammad Iqbal


    sorry, I never received a reply to my submitted ticket.
    am I fill wrong email or something?

    EDIT: Your reply got my spam message, not to my normal inbox
    Sorry, I never checked my spam folder.
    I will reply now.

    Thread Starter Muhammad Iqbal


    My problem fixed accidentally

    So, I create a new profile for chrome and tried to log in and my problem is gone.
    It seems my old profile not work or something error with that.

    So, my problem resolved.
    Thanks for your kind reply.
    I will rate this awesome plugin with 5 stars.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Ad Inserter code editor can’t work properly after update to 2.4.6 version’ is closed to new replies.