• Resolved polarracing

    (@polarracing)


    Hi,
    when using with WP Fastest Cache (Version 1.0.5 & Premium 1.6.5) the cookie banner is not shown any more and I get following error messages in the console:

    (index):1036 Uncaught TypeError: Cannot read properties of null (reading 'innerHTML')
        at (index):1036:118

    pointing to following code:

    <script>var realCookieBanner= JSON.parse(window.atob(document.getElementById("a6f75dfd1-ab03-4c35-bb68-5726b310bb45").innerHTML.substr(60)));</script>

    and

    Uncaught TypeError: Cannot read properties of undefined (reading 'publicUrl')
        at r (helpers.tsx:18:28)
        at 9181 (banner.tsx:16:27)
        at o (bootstrap:19:32)
        at startup:4:74
        at o.O (chunk loaded:23:12)
        at startup:5:43
        at c19c3c7a6b771364fa11b5b7954dfa1a.js?ver=0e444261faecab21e2bb7097380c405b:1:85143

    Issue appears only, when using WP Fastest Cache (But the plugin detects WP Fastest Cache according to the dashboard)

    • This topic was modified 2 years, 2 months ago by polarracing.
Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter polarracing

    (@polarracing)

    Update:

    Fastest Cache does not need to be enabled – just activated.

    Thread Starter polarracing

    (@polarracing)

    Update 2:

    Just tested with Cookie Banner Version 2.12.0 & 2.90 – No issues with actual version of Fastest Cache.

    • This reply was modified 2 years, 2 months ago by polarracing.
    Plugin Author devowl.io GmbH

    (@devowl)

    Hi @polarracing,

    We think we have solved the problem. With the last release, we rebuilt a functionality that caused some WordPress security plugins to incorrectly detect Real Cookie Banner as malware. Due to the change, some caching plugins – including yours – let the settings of Real Cookie Banner load too late due to its optimization, which meant that the cookie banner could no longer be displayed.

    Attached, you will find a pre-release of the plugin. This solves the problem you mentioned. You can simply upload this version to your WordPress and replace it with the current version (Plugins > Add new > Upload Plugin). When the next version of the plugin incl. the pre-released feature is available for all users, you will see it as a normal update in your WordPress.

    Download pre-release: https://storage-dev-1.owlsrv.de/prereleases/7ad2313c-9ef8-4215-bd6c-185ecf3eeb7c/real-cookie-banner-3.1.5-13430-plugin.zip

    Does it solve the issue for you?

    Best regards,

    Jan

    Thread Starter polarracing

    (@polarracing)

    Hi,

    thanks very much for the quick help.

    It seems to work partly. The popup is showing again, but now I get some other error messages after the page is cached.

    Uncaught TypeError: e is undefined

    Uncaught TypeError: o.m() is undefined

    both pointing to cached js files.

    And Uncaught TypeError: Cannot read properties of null (reading 'innerHTML')
    pointing to
    <script>var realCookieBanner= JSON.parse(window.atob(document.getElementById("ac81b75ea-f658-4cf2-9475-97b3469b8fd8").innerHTML.substr(60)));</script>

    The result is, that the popup to shows up in some cases multiple times and if the page is already cached, no popup shows up at all.

    One more thing to mention. In this version every page gets a DONOTCACHE flag when called the first time – even after giving consent. This was different in previous versions. There no page got a DONOTCACHE flag after once given the consent.

    • This reply was modified 2 years, 2 months ago by polarracing.
    • This reply was modified 2 years, 2 months ago by polarracing.
    Thread Starter polarracing

    (@polarracing)

    Update:

    Forgot to mention, changing privacy setting or viewing of consent is only possible for un-cached pages and it takes ages until it shows consent date and time – until then only “Not consented to” is shown.

    Plugin Contributor Matthias Günter

    (@mguenter)

    Hey @polarracing !

    Can you please send a screenshot of your used WP Fastest Cache options? Are you using any other optimization plugin? Can you please send a full list of your active plugins?

    Is the website public reachable so I can check this on your website? ??

    Thread Starter polarracing

    (@polarracing)

    Hi,

    as the page is on a local staging server atmo, I did some research myself. ??

    You are indeed right. With this version of your plugin it seems to be a setting of the caching tool, that causes the issue. I forgot to test until now, as it did not change anything, with the previous version.

    Its the setting:

    Render Blocking Js- Eliminate render-blocking JavaScript resources

    Currently talking to Fastest Cache Support and doing some more testing

    Thread Starter polarracing

    (@polarracing)

    Follow up question – are you setting the DONOTCACHE tag on a page when it is loaded the first time?

    Plugin Contributor Matthias Günter

    (@mguenter)

    Hi again @polarracing !

    What version of Real Cookie Banner do you have currently active? With the latest version 3.1.5 we have resolved an issue with render blocking elimination.

    Thread Starter polarracing

    (@polarracing)

    Version 3.1.5-13430 – Did not see the current update – will check tomorrow.

    Plugin Contributor Matthias Günter

    (@mguenter)

    Hey @polarracing !

    Found the issue with WP Fastest Cache and “Render blocking JS”. In fact, WP Fastest Cache does a reordering of the <script tags which leads to issues with scripts defined as <script type="text/plain". This scripts are not render-blocking as they are not executing any code and are HTML5-compliant.

    To fix this issue temporarily, we have added the data-skip-moving="true" attribute to the <script tag so it get’s ignored by WP Fastest Cache.

    If you are already in contact with WP Fastest Cache support, you can mention that they should not reorder scripts with type="text/plain".

    Attached you will find a pre-release of the plugin. This solves the problem you mentioned. You can simply upload this version to your WordPress and replace it with the current version (Plugins > Add new > Upload Plugin; Screenshot). When the next version of the plugin incl. the pre-released feature is available for all users, you will see it as a normal update in your WordPress.

    Download pre-release: https://storage-dev-1.owlsrv.de/prereleases/862af95d-48bf-44e2-8bd4-e423833d8f06/real-cookie-banner-3.1.6-13449-plugin.zip

    Please let me know if this works now for you! ??

    Thread Starter polarracing

    (@polarracing)

    Thanks.

    Just send your findings to Fastest Cache Support.

    Will check the pre-release tomorrow.

    Plugin Author devowl.io GmbH

    (@devowl)

    Hi @polarracing,

    In summary, we would like to present the problem for all readers: With the last two releases, we rebuilt a functionality that caused some WordPress security plugins to incorrectly detect Real Cookie Banner as malware. Due to the rebuild, some caching plugins – including presumably yours – let Real Cookie Banner’s settings load too late, due to their optimization, which prevented the cookie banner from displaying.

    We have been working on the issue all day today and think we have solved the problem for all affected caching plugins with version 3.1.6, which has just been released. Please install the update and let me know shortly if it solves the problem for you too!

    I apologize for any inconvenience caused!

    Best regards,

    Jan

    Thread Starter polarracing

    (@polarracing)

    First tests look pretty promising. No issues with “Render Blocking”, popup is showing up where it should (and if I respect my slow test server, also only there :-))

    Thanks so much for the quick help. Not many plugins get that much love – even paid ones not.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Conflict with WP Fastest Cache’ is closed to new replies.