Conflict with Cookie Control and Cookie Law Info plugins

Home Forums Quform WordPress Conflict with Cookie Control and Cookie Law Info plugins

This topic is: resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #18904
    DavidRomano
    Participant

    Hi, I have tried installing both the Cookie Control and Cookie Law Info plugins (not simultaneously) but with both the site’s Quforms load then dissapear if viewed through Firefox and Chrome. This behaviour does not occur in IE.

    The site uses W3 Total Cache and is delivered through Cloudflare.

    Can you suggest a way to fix this as I do need a EU compliant cookie notice.

    I don’t think this problem was present prior to Quform 1.7.8 but I’m not totally sure.

    #18913
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #18916
    DavidRomano
    Participant

    Hi Ally,

    I’ve spent the morning working through possible sources for this.

    The plugin I was using is http://cookielawinfo.com/

    I also get the same issue with this plugin https://silktide.com/tools/cookie-consent/

    I’ve simplified the site by taking out W3 Total Cache which made no difference.

    I’ve also turned off Cloudflare by using development mode – again no difference.

    What I have found is that the problem is not present on a simple form https://bestitalianmortgage.com/contact-us/

    However using a more complex form https://bestitalianmortgage.com/italian-mortgage-quote/ the form loads then disappears if either of the cookie plugins are enabled.

    The problem does not occur in IE but only in Chrome and Firefox.

    I haven’t yet found an error reported in the Firefox console.

    The Firebug console also does not report an error

    Rgds, David

    • This reply was modified 7 years, 11 months ago by DavidRomano.
    • This reply was modified 7 years, 11 months ago by DavidRomano.
    #18919
    DavidRomano
    Participant

    Hi Ally,

    Still no report of an error in the Chrome console or in Firebug using Firefox.

    However, I’ve also now tried the Cookie Notice plugin https://www.dfactory.eu/products/cookie-notice/ and it has the same behaviour.

    It looks as though what is happening is that the page loads with the conditional logic Quform which then disappears from the page once the page has fully loaded. (This behaviour also exists if the form is loaded via Fancybox). Forms with no conditional logic do not seem to be affected.

    With no cookie notice plugin enabled the page loads with the conditional logic Quform then appears to rapidly reload the form.

    Interestingly everything works perfectly if viewed via an iPhone.

    What I’ve been able to establish so far is:

    1. This problem affects both of my websites that use Quform.
    2. Removing W3 Total Cache and turning off Cloudflare made no difference.
    3. I’ve tried 4 cookie notice plugins and all have the same issue.
    4. No errors show on the Chrome console.
    5. No errors show in Firebug.
    6. Only Quforms with conditional logic are affected.
    7. Quforms with condiditional logic appear to load twice (or just flash).
    8. Only Firefox and Chrome are affected – IE is fine.
    9. The behaviour is not restricted to a single computer – I’ve tried 3 different machines (Xeon, i7 and AMD) all with Windows 10 x64 and the behaviour is the same.
    10. Site is running
    php 7.0.1
    MySQL 5.5.36
    WP 4.5.2
    GD image + FreeType + mbstring libs are available

    Can you give me some further help to diagnose and fix the problem, please. Maybe I’m missing something obvious but it presently beats me,

    David

    • This reply was modified 7 years, 11 months ago by DavidRomano.
    • This reply was modified 7 years, 11 months ago by DavidRomano.
    #18928
    DavidRomano
    Participant

    Following the discovery of a PHP level inconsistency with Quform (https://support.themecatcher.net/forums/topic/quform-captcha-module-incompatible-with-php-7-bug) I’ve just checked to see if there PHP issue was implicated in this issue but as far as I can see it is not the cause.

    #18929
    DavidRomano
    Participant

    Ally, I’ve made a little more progress on diagnosing this problem.

    With the Cookie Law Info plugin activated the start of the display box for the Quform form begins

    <div id=”iphorm-outer-573b0da415a19″ class=”iphorm-outer iphorm-outer-3 iphorm-uniform-theme-default iphorm-theme-light-rounded iphorm-has-logic iphorm-responsive”>

    With the Cookie Law Info plugin deactivated the start of the display box for the Quform form begins

    <div id=”iphorm-outer-573b0e38e823a” class=”iphorm-outer iphorm-outer-3 iphorm-uniform-theme-default iphorm-theme-light-rounded iphorm-has-logic iphorm-responsive” style=”visibility: visible;”>

    so it looks as though style=”visibility: visible;” is being stripped off the code somehow.

    The results with Cookie Notice plugin are identical.

    With this extra information can you suggest a fix – I will copy this post to the 2 cookie plugin authors.

    D

    #18935
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #18939
    DavidRomano
    Participant

    Hi Ally,

    I should have posted this yesterday evening when I got it working but I ran out of time, sorry.

    The issue appears to originate from the Cloudflare Rocket Loader module. The problem does not occur when Rocket Loader is OFF or in MANUAL mode but does occur in AUTOMATIC mode.

    Looking at the Rocket Loader documentation:

    https://support.cloudflare.com/hc/en-us/articles/200168056-What-does-Rocket-Loader-do-

    https://support.cloudflare.com/hc/en-us/articles/200169436-How-can-I-have-Rocket-Loader-ignore-my-script-s-in-Automatic-Mode-

    I should be able to exclude either Quform or the cookie plugin (or both) from Rocket Loader, but as Rocket Loader is only giving a 4% speed uplift I’m reluctant to mess with the script tags – I’d probably need to do this again after every plugin update.

    Maybe this paramater is something that could be built in to a future Quform update, perhaps as a blanket Rocket Loader exclusion or as something switchable.

    I still don’t understand why this issue is related to the combination of every cookie plugin that I’ve tried + Quform but as the combination now functions (with a small speed penalty) I’ll leave it for someone else to figure out. Maybe it’s obvious to you guys.

    D

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy