• Resolved ac1643

    (@ac1643)


    Hi,

    I’m having a problem submitting messages via contact form 7 when IP geo block is activated. I get the message:

    “Sorry, there was an error. Please be sure JavaScript and Cookies are enabled in your browser and try again.”

    Deactivating IPGB stops this happening. I think it might be because I have only GB whitelisted and contact form 7 may need to communicate outside of GB to work?

    Any help appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    Hello again @ac1643,

    Sorry, there was an error. Please be sure JavaScript and Cookies are enabled in your browser and try again.

    This message may not come from Contact form 7 but WP-SpamShield. And I suppose you can find the following message in the text box when you push “Show information” button at bottom of “Plugin settings” section in IPGB.

    - 2017-11-08 15:26:08 wp-zep HEAD:/wp-content/plugins/wp-spamshield/js/jscripts.php

    Sometimes, vulnerable plugins and themes would require the PHP file directly under their installed directories without using WordPress standard APIs. So IPGB may check the request is intended by you or not. For more detail, see my blog.

    But WP-SpamShield is OK. So please select it as “Exceptions” at “Plugins area” in “Back-end target settings” section, and give it another try.

    Exceptions in Plugins area

    I hope this may solve the issue.

    Thread Starter ac1643

    (@ac1643)

    Hi,

    Thanks that works perfectly. It also works if I disable the ‘force load wp core’ option.

    Out of interest, should I be selecting ‘block by country’ or ‘prevent zero day exploit’ for the ‘force load wp core’ options? Currently they are set to block by country.

    Many thanks for your quick help

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi @ac1643,

    Thank you for confirming to fix this issue.

    It also works if I disable the ‘force load wp core’ option.

    Yes, because WP-SpamShield directly call its PHP file without including wp-load.php for example.

    should I be selecting ‘block by country’ or ‘prevent zero day exploit’ for the ‘force load wp core’ options?

    Generally speaking, Yes. “Block by country” can’t block the malicious requests from whitelisted countries, while “Prevent Zero-day Exploit” can.

    But those doesn’t provide the perfect solution. There’s always “false positive error“. “Exception” is exactly for that case.

    Anyway, please feel free to ask me anything about the specific issues you have.

    Thanks.

    Thread Starter ac1643

    (@ac1643)

    Hi again,

    Sorry I made a mistake, it DOESN’T work with the force load core for plugins turned on but with WP Spamshield set as an exception. It DOES work if I disable the force load core entirely.

    I think this is because it is still blocking by country? Maybe spamshield does something outside of GB?

    Anyway it is working, just thought you would like to know

    Thanks again

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Contact form 7 error with IP geo block’ is closed to new replies.