Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dimaivanov84

    (@dimaivanov84)

    Hi Erik,

    Thank you once more. Sorry for my late reply, had a busy weekend with family 🙂

    I run the two websites through https://www.stackpath.com/products/cdn/ – and please remember, I’m not super techy – even if I turn WP Rocket off, and set the WP_CACHE to true, wouldn’t running the NETWORK test (F12) in my browser show the edge server’s cache status, rather than the website hosting server’s cache status?

    I can confirm the following details – I’ve done this experiment twice:
    1. If I run CF7 + WP Rocket + Invisible reCaptcha = issues with the messages disappearing
    2. If I run CF7 with EITHER OF WP Rocket or Invisible reCaptcha (only one) – no problems, everything works
    3. If I deactivate WP Rocket, and manually change the WP_CACHE to true, and replace wpconfig file via FileZilla – the issue starts appearing again (but the WP ROcket plugin is turned off, so it can’t possibly be “caching” as it’s deactivated)
    4. When I then re-load the original wpconfig file back up into the site via FileZila that has WP_CACHE set to FALSE, the issue goes away again. Once more, I’m not changing the Active/Inactive status of the WP ROcket plugin – the ONLY change i’m making is to the WP_CACHE line inside the wpconfig file. To me, at least, this clears the WP ROcket plugin – as whether it’s enabled, or disabled, the ONLY difference is made by changing the WP_CACHE flag from TRUE to FALSE inside wpconfig file.

    I’m most happy to try and see if I can turn off WP ROcket (deactivate), and change the WP_CACHE flag to TRUE – and test if it’s still cached or not when this happens. How can I do this?

    Thanks in advance 🙂

    Thread Starter dimaivanov84

    (@dimaivanov84)

    Hi Erik – that is a good idea! I don’t know how to do this (I’m not a developer, just happen to know WordPress pretty well), but will write to the WP Rocket guys to see if I can somehow specify the .JS files for both CF7 and invisible reCaptcha to see if it helps.

    However, as I wrote already a couple of times – I can deactivate WP-Rocket completely (keep it installed, but, deactivate it via the plugin page), however, change the “WP_CACHE” flag to TRUE in config.php – the WP Rocket guys told me there’s a known issue with CF7 and how it handles the WP_CACHE flag. Sorry for repeating:

    1. If WP Rocket is deactivated, by default, WP Rocket sets the WP_CACHE flag to FALSE (which is correct, as there’s no cache). If I do this – the CF7 issue doesn’t occur.

    2. If WP Rocket is deactivated, but I change the WP_CACHE flat to TRUE (thus tricking CF7 into thinking that cache is being built and used, but it’s actually NOT being built as WP Rocket is deactivated) – the issue in CF7 returns. Apparently, this is because CF7 adjusts its behaviour based on the FLAG (true/false), but not on the actual presence of cache.

    With this in mind, even if I exclude CF7 and invisible re-captcha from cache, the issue will likely still persist – as it does when everything is not cached.

    Does that sort of make sense?

    And thank you for helping me…. 🙂

    Thread Starter dimaivanov84

    (@dimaivanov84)

    Hi Erik, or ciao! 🙂

    One of my three websites where I have WP Rocket active works perfectly with Contact Form 7 – clicking SUBMIT will see the messages stick around. However, on this website, I have the “Invisible reCaptcha” plugin disabled. So – just like you – using a caching plugin (WP Rocket, in my case) with CF7 doesn’t have issues alone – it’s when I mix WP Rocket with invisible reCaptcha that I get this problem. It can be fixed by EITHER of:
    – disabling WP rocket (but keeping invisible reCaptcha running)
    – disabling invisible reCaptcha (but keeping WP rocket running)

    I actually find that sometimes invisible reCapture doesn’t loat at all!!! If that happens, when someone submits the form – they get an error. I’ve tried trouble-shooting this for a very long time (i.e. why the reCapture doens’t load sometimes) but couldn’t find the answer. I thought I solved it a few weeks ago, but today found that this issue still happened.

    I’ve now deactivated invisible reCaptcha for a while – everything will work, I’m sure (as i’m sure that I’ll be spammed), but it appears there are two issues linked to it (i.e. the form will NOT submit as the reCaptcha didn’t load, and, when used with WP ROcket the validation messages disappear).

    I’ll just put up with the spam for a while until I find some more time to trouble-shoot and bullet-proof it a little better 🙂 Thank you for your help.

    Thread Starter dimaivanov84

    (@dimaivanov84)

    Hi Erik.

    Thank you – but I’ve already run a test by fully deactivating WP Rocket – so nothing is cached at all. Even then – but as long as there’s a string of code in the wp-config file define( ‘WP_CACHE’, true ); – the error occurs.

    Are you able to send me some links to these known issues? The WP Rocket guys already provided some support, and since deactivating the plugin doesn’t make the issue go away – they said it’s a Contact Form 7 issue with a caching plugin in general (not just WP Rocket).

    Look forward to your reply.
    Dima

    Thread Starter dimaivanov84

    (@dimaivanov84)

    Hi Jules,

    Wonderful! Thank you for your prompt response, and your offer of help. One of my main objectives is to keep the footer.php as light as possible to decrease page load times across all pages on the site, so I tried to configure your plugin properly, even if it’s more work initially.

    Luckily, with your hints, I’ve got cascading running perfectly using Excel scripts, Notepad++ and the FREE plugin! Thank you 🙂

    For anyone with a similar goal to mine, here are some tips on achieving it:

    1. Use the “clear_on_hide” flag for the groups, so if the user changes a higher-step, the form forgets the previously-selected lower step.

    e.g.
    [group A clear_on_hide]

    2. Not related to this plugin as such, but to make the form more personal, one of Jules’ tutorials shows a script using the “first_as_label” script after the CF7 “select” operator – this replaces the “—” if you use the “include_blank” operator with a custom message, which I think is better user experience.

    e.g.
    [group A clear_on_hide]
    [select A first_as_label “– Please choose –”
    “option1”
    “option 2”
    ]
    [/group]

    3. Jules’ suggestion of using lots of AND conditions worked beautifully, albeit a bit of work in Excel to write up. The only tricky bit was figuring out why it wasn’t working straight out of Excel, where I was using CONCAT to generate a very long string. I found that for this plugin to accept AND conditions, they needed to start on new lines. So, I pasted the 1000+ row Excel script into Notepad++ and using Replace (Search mode = Regular Expression, with Wrap Around checked), searching for “and if ” – I replaced all with “\r\n and if ” – this added a line-break, and, enough spaces in front of an AND for this plugin to work.

    e.g.
    This was output after Notepad++ edits, and will work:

    show [success-message-G392200] if [G392] equals “Tyre Retailing (G392200)”
    and if [G39] equals “Motor Vehicle Parts Retailing (G392)”
    and if [G] equals “Motor Vehicle and Motor Vehicle Parts Retailing (G39)”
    and if [industry] equals “Retail Trade (G)”

    While this text straight out of Excel will not work, although the text is the same:

    show [success-message-G392200] if [G392] equals “Tyre Retailing (G392200)” and if [G39] equals “Motor Vehicle Parts Retailing (G392)” and if [G] equals “Motor Vehicle and Motor Vehicle Parts Retailing (G39)” and if [industry] equals “Retail Trade (G)”

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