• Hello Fellow WordPress Gurus,

    Random programming question…

    So I’ve got a site, let’s just say example.com
    I built it using wordpress and whatnot. If you go to an “inside” page on the same server & hosting like http://example.com/videos/ the contact form works fine.
    If you go to a page like http://subdomain.example.com the contact form doesn’t work. The little arrows just spin forever in never-never land.

    The difference is that the second link (one that doesn’t work) is actually hosted on a third party server. It appears to be a subdoamin (subdomain.example.com) but it’s actually just a CNAME that redirects to their site.

    I’ve done a little digging and found that contact form 7 uses this little bugger:
    <input type=”hidden” value=”7ec29b981f” name=”_wpnonce”>

    From what I’ve read, “wpnonce” is a security measure that a lot of forms use to make sure the form is actually on the site. (see this link for more info: http://codex.wordpress.org/Function_Reference/wp_nonce_field)
    Anyway, I don’t know if you’re familiar with this but I thought I’d ask. The subdomain pages are on another server because it’s a database service we subscribe to.

    Basically, I just want the form to work on the third party pages. Any recommendations on what to do? Is there anyway to disable WPNONCE or bypass it? My current solution is an iframe on the third party pages but it loads slower and is somewhat limiting for tracking conversions, etc.

    Thanks for your time and any input would be greatly appreciated.

    -Matt

    http://wordpress.org/plugins/contact-form-7/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    You could disable Contact Form 7’s nonce if you don’t need it. Add this line to your wp-config.php file to define the WPCF7_VERIFY_NONCE constant as false.

    define( 'WPCF7_VERIFY_NONCE', false );

    Thread Starter farfromhome

    (@farfromhome)

    Takayuki,

    I really appreciate you responding to my post. I did exactly what you said and added that line to wp-config.php in root. Should this make the contact form work if the page it’s hosted on is on another server?

    I tried to send a test email to a page that’s hosted on another server and it still spins forever. Do you have any idea why it would be doing that? I’m using a genesis theme if that makes any difference.

    Thanks for your help. I really appreciate it!

    PS. I read this thread from a year ago and I do have W3-Total Cache installed. However, I emptied all cache before trying this and it didn’t work. Is there a certain setting or something different I need to do?

    Matt

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Not sure if this is nonce related issue. Nonce is used for verification and spam checking. It’s hard to think that nonce trouble causes endless spinning arrow. Try deactivating all other plugins and switching to the default theme to rule out conflict cases.

    Thread Starter farfromhome

    (@farfromhome)

    Takayuki,

    I can’t disable all plugins and change themes because our site is for business and is our lifeline. Have you seen your plugin work on multiple hosted sites? It works fine on my site but on my “service pages” (hosted elsewhere) it just spins…

    Do you offer paid support for an issue like this ?

    Thanks,

    Matt

    @farfromhome – Sounds like you have a really good reason to set up a Development site, where you can test things like this, if you don’t already have one.

    We use Development sites on all our projects. We do it at as sub-domain on the same server so we get a setup as close as possible to the live site. We use it primarily to test all WP, theme and plugin updates prior to updating the live site.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Sorry, but I don’t offer any paid support. And requesting paid help is discouraged on this forum.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WPNONCE – Security Measure?’ is closed to new replies.