• Resolved chinwag

    (@chinwag)


    setup all went well last month (May 2020) and worked brilliantly in CF7. The CF7 Form variables for City, Region and Country all passed into CFDB.
    The mail text still works, but the CF7 Input text shortcodes do not. Our server is located in Germany and that’s what Geolocation IP thinks for every submission except the Admin, which is correct.

    PHP 7.3
    WordPress: 5.4.2
    CF7: 5.1.9

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter chinwag

    (@chinwag)

    Since an update to CF7 the Shortcodes do not work in the “Form”, but work in the “Email Text”.
    I have found out that if I am logged into the Admin Panel the shortcodes in the Form work correctly, but logged out they do not.

    Any help please, thank you.

    Plugin Author Benjamin Pick

    (@benjamin4)

    I need more information.
    – You mean the plugin “Contact Form 7 Database Addon – CFDB7 ” ?
    – Which data source are you using?
    – “The mail text still works” – do you mean the CF7 shortcodes work in the mail text, but not in the DB?
    – “if I am logged into the Admin Panel” – are you using a page cache?
    – Can you show me your CF7 shortcodes and how you use them in the form, please?

    Thread Starter chinwag

    (@chinwag)

    Good morning,

    – “Automatic download & update of Maxmind GeoIP Lite City” was installed and configured, all worked as expected.

    – The shortcodes appear in the “email text” of the sent email, but the shortcodes do not appear in CF7 Form when rendered in the browser, i.e. no populated input fields:

    <div style="display:none">
    <span class="wpcf7-form-control-wrap city"><input type="text" name="city" class="wpcf7-form-control wpcf7-geoip_detect2_text_input" aria-invalid="false" /> </span>
    <span class="wpcf7-form-control-wrap mostSpecificSubdivision"><input type="text" name="mostSpecificSubdivision" class="wpcf7-form-control wpcf7-geoip_detect2_text_input" aria-invalid="false" /> </span>
    <span class="wpcf7-form-control-wrap country"><input type="text" name="country" class="wpcf7-form-control wpcf7-geoip_detect2_text_input" aria-invalid="false" value="Germany" /> </span>
    </div>

    “Germany” is where our servers are located. CFDB stores the value of “Germany” so is working correctly.

    – Using the “WP Fastest Cache” plugin.

    Please ask if you require any further information.

    Best wishes and thank you.

    Plugin Author Benjamin Pick

    (@benjamin4)

    I see, my documentation was incorrect. Does this shortcode work for you?

    [geoip_detect2_text_input city property:city lang:fr id:id class:class]

    Plugin Author Benjamin Pick

    (@benjamin4)

    – Using the “WP Fastest Cache” plugin.

    Then you have to make sure that the page where the form is located is not cached by that plugin. AJAX mode does not work yet with the shortcodes.

    Thread Starter chinwag

    (@chinwag)

    I see, my documentation was incorrect. Does this shortcode work for you?

    Yes, these shortcodes worked as I downloaded the plugin source code to verify what was going on within the plugin 🙂

    <div style="display:none">
    [geoip_detect2_text_input city property:city]
    [geoip_detect2_text_input mostSpecificSubdivision property:mostSpecificSubdivision]
    [geoip_detect2_text_input country property:country]
    </div>

    Then you have to make sure that the page where the form is located is not cached by that plugin. AJAX mode does not work yet with the shortcodes.

    – Excluded from Cache and it worked perfectly, even though the WP Latest Cache was setup the same time as the other plugins, i.e. CF7 and GeoIP, but very happy to find a solution 🙂

    Thank you so much for your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘CF7 Integration stopped working, thinks i’m in Germany?’ is closed to new replies.