• Resolved webmark487

    (@webmark487)


    Hello!

    Our non-German Elementor forms do not work – “error” is displayed after submission.

    Is this a known problem? Weglot in connection with Elementor forms?

    Thx for your support

    Chrome console: 


    form.71055747203b48a65a24.bundle.min.js:2 Pattern attribute value [0-9()#&+-=.]+ is not a valid regular expression: Uncaught SyntaxError: Failed to execute 'reportValidity' on 'HTMLFormElement': Invalid regular expression: /[0-9()#&+-=.]+/v: Invalid character in character class
    (anonymous) @ form.71055747203b48a65a24.bundle.min.js:2
    Promise.then
    then @ recaptcha__de.js:687
    (anonymous) @ form.71055747203b48a65a24.bundle.min.js:2
    setTimeout
    (anonymous) @ recaptcha__de.js:385
    (anonymous) @ recaptcha__de.js:639
    onV3FormSubmit @ form.71055747203b48a65a24.bundle.min.js:2
    (anonymous) @ form.71055747203b48a65a24.bundle.min.js:2
    dispatch @ jquery.min.js?ver=3.7.1:2
    v.handle @ jquery.min.js?ver=3.7.1:2
    jquery.min.js?ver=3.7.1:2 GET https://physiotherm.com/wp-admin/admin-ajax.php net::ERR_TOO_MANY_REDIRECTS
    send @ jquery.min.js?ver=3.7.1:2
    ajax @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ jquery-migrate.min.js?ver=3.4.1:2
    e. @ jquery-migrate.min.js?ver=3.4.1:2
    handleSubmit @ form.71055747203b48a65a24.bundle.min.js:2
    r. @ frontend-modules.min.js?ver=3.35.5:1
    dispatch @ jquery.min.js?ver=3.7.1:2
    v.handle @ jquery.min.js?ver=3.7.1:2
    trigger @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    each @ jquery.min.js?ver=3.7.1:2
    trigger @ jquery.min.js?ver=3.7.1:2
    (anonymous) @ form.71055747203b48a65a24.bundle.min.js:2
    Promise.then
    then @ recaptcha__de.js:687
    (anonymous) @ form.71055747203b48a65a24.bundle.min.js:2
    setTimeout
    (anonymous) @ recaptcha__de.js:385
    (anonymous) @ recaptcha__de.js:639
    onV3FormSubmit @ form.71055747203b48a65a24.bundle.min.js:2
    (anonymous) @ form.71055747203b48a65a24.bundle.min.js:2
    dispatch @ jquery.min.js?ver=3.7.1:2
    v.handle @ jquery.min.js?ver=3.7.1:2
    • This topic was modified 1 month, 3 weeks ago by webmark487.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter webmark487

    (@webmark487)


    jquery.min.js?ver=3.7.1:2 GET https://physiotherm.com/wp-admin/admin-ajax.php net::[email protected]?ver=3.7.1:[email protected]?ver=3.7.1:2(anonymous)@jquery-migrate.min.js?ver=3.4.1:2e.<computed>@jquery-migrate.min.js?ver=3.4.1:[email protected]…a24.bundle.min.js:2r.<computed>@ jquery-migrate.min.js?ver=3.4.1:[email protected]…a24.bundle.min.js:2r.<computed>@frontend-modules.min.js?ver=3.35.5:[email protected]?ver=3.7.1:[email protected]?ver=3.7.1:2

    Thread Starter webmark487

    (@webmark487)

    SOLUTION:
    URL exclusions of /wp-admin/admin-ajax.php in the Weglot Project Settings (Exclusions):
    the behavior has to be “URL exists but is not translated”:

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @webmark487 ,
    thanks for the feedback and the solution.

    There may be a more precise approach. While excluding wp-admin/admin-ajax.php works in your case, it applies globally and prevents all AJAX requests from being translated.

    A better solution is to selectively exclude specific AJAX actions using the weglot_ajax_no_translate filter. For example:

    add_filter('weglot_ajax_no_translate', function($actions) { $actions[] = 'my_custom_ajax_action'; $actions[] = 'another_action_to_exclude'; return $actions; });

    This allows you to prevent translation only for targeted AJAX actions instead of disabling it entirely.

    To identify the relevant action name, inspect the AJAX request payload in your browser’s developer tools (Network tab). Look for the action parameter sent with the request.

    Regards

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

You must be logged in to reply to this topic.