• Resolved guardiano78

    (@guardiano78)


    Hello,
    after updating the plugin to the latest version, the banner is displayed 2 times, one below the other.
    If I restore the previous version, the problem disappears.
    Can someone help me?
    Thank you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author rpetersen29

    (@rpetersen29)

    Hi @guardiano78 that’s very unusual. My only guess is that you have some plugin that is caching the javascript files incorrectly and loading the simple banner script twice. The explanation for the for it working with previous versions is there was two scripts loading the banner sequentially, which didn’t work for a lot of people who had different caching mechanisms. So, i would check your other plugins and see if disabling any of them fixes your issue.

    Thread Starter guardiano78

    (@guardiano78)

    Hi,
    i cloned the website in another domain for testing plugins (enable/disable one by one).
    I don’t know why, but in project cloned, the problem does not appear.
    The only difference beetwin two domains, is the account cookiebot that manage cookies.
    Obviously in domain that i use for testing, this account doesn’t exist.
    Maybe that javascripts used by cookiebot could duplicate simple banner?

    thank you.

    Plugin Author rpetersen29

    (@rpetersen29)

    Its not entirely clear what Cookiebot does under the hood so i’m not sure thats it. It’s quite possible that your browser may be caching a previous version of the plugin, if you provide me with the URL i can take a look.

    Thread Starter guardiano78

    (@guardiano78)

    Hi,
    i tries with different browser.
    The url is: love-helix.com

    Thank you.

    Plugin Author rpetersen29

    (@rpetersen29)

    Hi @guardiano78
    The good news is I only see one banner. So you may need to clear your browser cache, or check if any of your plugins have a CDN cache that need to be reset. The problem exists in one of your caching mechanisms.

    Thread Starter guardiano78

    (@guardiano78)

    Hi rpetersen29,
    I cleared the cache using the “WP Super Cache” plugin.
    But I still see the problem from different PCs and smartphones.
    Now from FTP I have deleted the folder of the latest version and loaded the folder of version 2.1.3;
    In doing so the problem disappears.
    What I don’t understand is why the CACHE problem you mentioned, only occurs with version 2.2.2;

    Thanks again for your help, bye

    Plugin Author rpetersen29

    (@rpetersen29)

    Glad your issue is fixed.

    I can give you a little explanation why the cache is the issue now with 2.2.x. In previous versions there were two scripts, one to create the simple banner <div> and one to insert text into that <div>. That first script was impervious to a cache due to the way it was created using WordPress hooks. The second script just added the text, so even if it was cached, it would just replace the inner html of the banner twice. Now everything happens in one script that is able to be cached, so if two versions are cached they will create two banners. This solved an issue that a lot of users were experiencing where different plugins optimized the javascript at different times and caused the banner to not show. Caching is good for your website, it causes your website to load quicker for users, however it can cause this issue when you’re making changes or upgrading. There are ways i could avoid the issue entirely, but it may cause a slight slowdown of the website since the javascript would need to be loaded new every time the page loads. I would rather take advantage of the users cache plugins and help debug when stuff like this occurs.

    Thread Starter guardiano78

    (@guardiano78)

    Hi rpetersen29,
    everything is perfectly clear.
    Thank you for the explanation. ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘double-displayed banner after latest update’ is closed to new replies.