PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

qTranslate + validation "Page not found"

  1. jfernesto
    Member

    This is my website: http://www.debla.com
    You can translate it to English and take a look at my 'Registration Form'.
    If you click "Send" without filling any field you'll see a '404 page not found'.
    The form URL is http://www.debla.com/en/registration but the validation process is trying to access to http://www.debla.com/registration so there's nothing to show.
    How can i solve this?
    Thank you!

    Posted 11 years ago on Monday February 11, 2013 | Permalink
  2. I see a JavaScript error on the page right now:

    Timestamp: 2/11/13 11:43:36 PM
    Error: TypeError: $ is not a function
    Source File: http://www.debla.com/en/registration/
    Line: 317

    I don't think that's related to your problem but it is worth fixing.

    It does not look like qTranslate is translating the form tag, so the form is submitting to 'registration':

    <form method='post' enctype='multipart/form-data'  id='gform_4'  action='/registration/'>

    Here is a related topic regarding another form plugin and qTranslate:
    http://wordpress.org/support/topic/plugin-fast-secure-contact-form-doesnt-work-with-qtranslate?replies=16#post-1999436

    I don't think there is anything Gravity Forms can do about it, since qTranslate is adding the language to the path, but does not change the form action in the same way.

    Posted 11 years ago on Tuesday February 12, 2013 | Permalink
  3. jfernesto
    Member

    Ok, i'll take a look at this. Thank you!

    Posted 11 years ago on Tuesday February 12, 2013 | Permalink
  4. Please let us know how it turns out.

    Posted 11 years ago on Wednesday February 13, 2013 | Permalink
  5. jfernesto
    Member

    I'm not sure if this code is "correct" because i'm not a good programmer but it's working fine for my purposes. It's very simple.

    In plugins/gravityforms/form_display.php near the line 450 there's a variable called $form_string, something like this:

    http://pastebin.com/YJ51ZpC9

    I obtained the current language with 'qtrans_getLanguage()' in my variable $accion_actual, then concatenate it with $from_string. Exactly like this:

    http://pastebin.com/m1JRw9i6

    Hope this helps :)

    Posted 11 years ago on Wednesday February 13, 2013 | Permalink
  6. So long as you did not modify form_display.php, and this is working for you, I think you're in good shape.

    Posted 11 years ago on Sunday February 17, 2013 | Permalink