• Resolved soufix

    (@soufix)


    Hey Support i hope you are doing well, We had lot of post not display correctly. So we found problem is LiteSpeed caching, So we decide to order a service with their devs to fix the problem, and when they checked they find that the problem is related to advanced ads, when they disable it it works well, so they deeply searching why there is conflit between advanced ads & litespeed plugin. so they asked me to ask advenced ads devs why this code causes issues with caching.
    ================

    <script type="text/javascript" src="//WEBSITE(I hide it).com/script/su.js" zid="xxxxx" admn="xxxxxx==" admc="xxxxxxx==" did="XXXX"></script><script type="text/javascript">
    (function() {setTimeout(function(){if(!window["XXXXX"]){let e=document.querySelector('script[did="XXX"]'),t=!!e.hasAttribute("admc")&&function(e){let t=atob(e).replace(/[a-zA-Z]/g,function(e){var t=e<="Z"?65:97;return String.fromCharCode(t+(e.charCodeAt(0)-t+13)%26)});return t.replaceAll("_",".")}(e.getAttribute("admc")),r=e.getAttribute("src"),a=e.parentElement,c=document.createElement("script");!function(e,t){let r,a=["did","admc","src"],c=Array.prototype.slice.call(t.attributes);for(;r=c.pop();)-1===a.indexOf(r.nodeName)&&e.setAttribute(r.nodeName,r.nodeValue)}(c,e),c.src=(d=r,"//"+t+d.replace(/^.*\/\/[^\/]+/,"")),c.setAttribute("sadbl",1),a.removeChild(e),a.appendChild(c)}var d},150);document.body.addEventListener("click",function(e){window["XXXX"]instanceof Function&&window["XXXX"](e)});})();
    </script>

    ============

    btw i notice “admn” & “zid” are related to my ads code which is PHP code (i copy it past it inside new ads in advanced ads). so is this related to plugin or my PHP ads code ? and is their solution to fix this ?

    • This topic was modified 4 years, 5 months ago by soufix.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi @soufix,

    thanks for reaching out.

    I don’t believe the issue is caused by Advanced Ads, but have a couple of questions to make sure I am not missing something.

    1. Are you using only Advanced Ads or also any of our add-ons?
    2. Does the code work on a cached site when you use it in a “Custom HTML” block without Advanced Ads involved?
    3. Does a simple “Dummy” ad in Advanced Ads work, or also break your site?
    4. You mention some PHP code, but I don’t see any. If that is correct and you have the “Allow PHP” option in Advanced Ads enabled, then please try without it.

    Thanks,
    Thomas

    Thread Starter soufix

    (@soufix)

    1- Only Advanced Ads
    2- Idk we didn’t test or how to test it, it’s PHP code file, that why we use Advanced ADS because our ads network support suggest us to use especially if we are afraid to upload php to website. So what they told us is to open php code with bloc note and copy all text from file and creat new ads with using “Allow PHP” option because it’s php code that bypass adsblock extensions (which auto generate new domains everytime a domain is blocked)
    3- No we didn’t test it tbh. we are using our in /head like always
    4- Yes it’s php code what i shared it’s what they got after visiting website as visitor but as code it’s doesn’t look like that, it’s long code start with (((((<?php)))))

    Plugin Author Thomas Maier

    (@webzunft)

    Hey @soufix,

    thanks for your reply!

    From your description, it seems that the code itself is the issue, not Advanced Ads. The plugin only adds it as entered.

    If the problem only happens in connection with LiteSpeed then maybe there is something that the ad network didn’t think of when it comes to cached sites.

    E.g., I don’t know about LiteSpeed, but other caching plugins have bots that fill the cache. That bot is not a natural user. Maybe the PHP code in the ad doesn’t handle that well.

    If there are critical errors with PHP, you can often find them listed in a log file. See Using WP_DEBUG.

    If the issue is with JavaScript, then you can find the error in the browser’s console, see Finding JavaScript errors.

    If there is an error pointing towards Advanced Ads then I would be happy to take another look.

    Thanks!
    Thomas

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Issue with cachine (LiteSpeed)’ is closed to new replies.