WordPress.org

Forums

W3 Total Cache
[resolved] Manual Minify Adds Rouge Amazon Add At Top of Page (3 posts)

  1. jlomaga
    Member
    Posted 2 years ago #

    Has anyone else experienced this. When turning Minify to Manual mode a Amazon ad is inserted at the top of every page. I have deactivated every other plugin, and removed any java or iframes I've added, plus checked every theme file for any odd looking scripts.

    To make it even odder and more troubling is disabling W3TC causes the add to disappear, if it was rouge code embedded on my site it should show up when W3TC is off

    http://wordpress.org/extend/plugins/w3-total-cache/

  2. jlomaga
    Member
    Posted 2 years ago #

    I just dug a little further and inside the folder WP-content/W3TC/min is a java file with the following code

    amazon_ad_o = 1;
    amazon_ad_rcm = "rcm.amazon.com";
    amazon_ad_linkcode = "op1";
    document.write("<scr"+"ipt src='"+window.location.protocol+"//www.assoc-amazon.com/s/ads-common.js' type='text/javascr"+"ipt'></scr"+"ipt>");

    Is this something that someone inserted into my server, or is this part of the W3TC code?

    That amazon URL matches the URL found within the iframe code I'm seeing inserted when minify is turned to Manual

    Also I deleted the file from the folder, as soon as I reactivate Minify Manual mode the file is generated. Also this file generation occurs BEFORE I even clear Minify Cache.

    Ran Minify in debug mode and got the following information as well

    <!-- W3 Total Cache: Minify debug info:
    Engine:             memcached
    Theme:              8c780
    Template:           single
    
    Replaced JavaScript files:
    1. http://www.assoc-amazon.com/s/ads.js
    -->

    When running in Auto mode I get the following

    <!-- W3 Total Cache: Minify debug info:
    Engine:             memcached
    Theme:              8c780
    Template:           home
    
    Replaced CSS files:
    1. wp-content/plugins/slimbox/stylesheets/jquery.slimbox.css
    2. wp-content/themes/arras/css/styles/legacy.css
    3. wp-content/themes/arras/css/layouts/2c-r-fixed.css
    4. wp-content/themes/arras/user.css
    
    Replaced JavaScript files:
    1. wp-includes/js/jquery/jquery.js
    2. wp-content/plugins/slimbox/javascript/jquery.slimbox.js
    3. wp-includes/js/swfobject.js
    4. wp-content/themes/arras/js/superfish/hoverIntent.js
    5. wp-content/themes/arras/js/superfish/superfish.js
    6. wp-content/plugins/powerpress/player.js
    7. wp-includes/js/jquery/ui/jquery.ui.core.min.js
    8. wp-includes/js/jquery/ui/jquery.ui.widget.min.js
    9. wp-includes/js/jquery/ui/jquery.ui.tabs.min.js
    10. wp-content/themes/arras/js/jquery.cycle.min.js
    11. wp-content/plugins/wp-retina-2x/js/retina.js
    -->
  3. jlomaga
    Member
    Posted 2 years ago #

    Seems that Amazon couples multiple ad codes within some embeds, and java minification must have caused a conflict causing the ad to display.
    Plus due to what I think was browser caching even with the script removed from the list it wasn't truly removed, hence when removing the amazon code the script continued to load.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • W3 Total Cache
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.