Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 6 replies, has 2 voices.

Last updated by jean-philippeU 1 year, 10 months ago.

Assisted by: Bobby.

Author Posts
January 23, 2023 at 8:17 pm #12875537

jean-philippeU

I have noticed the following two bugs when using a translated Ninja Forms embedded on a page:

Original : hidden link
Translated : hidden link

The two actions which are activated are the following :

1. Redirect

Original : hidden link
Translated hidden link

I am using the instructions on the following page and the {wp:site_url} tag in order to redirect the form to the two following pages :
https://wpml.org/documentation/related-projects/creating-multilingual-forms-using-ninja-forms-and-wpml/

Original : hidden link
Translated hidden link

What I am noticing is that {wp:site_url} for the original page does not have a trailing slash but has a trailing slash for the translated website.

This creates the following URL with a double slash which is not redirected :
hidden link

I have created a specific redirect using the Redirection plugin, but I should not have to do this if the plugin was working.

2. Send an e-mail

The bug I notice is that the email is not translated when I submitting a form and I am not logged in. However, if I am logged in the WordPress admin, the email is translated when submitting the form.

January 24, 2023 at 1:06 am #12876269

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

if possible please provide me with a screenshot of how the URL is setup in the ninja forms for the translation.

When reviewing the translation what are your results if you remove the slash from the permalink?

January 24, 2023 at 1:14 am #12876303

jean-philippeU

If I remove the slash after {wp:site_url}, the original language redirect does not work as the slash is not present (i.e. hidden link)

www.impots-ici.com_wp-admin_admin.php_page=ninja-forms&form_id=5.png
January 24, 2023 at 6:32 pm #12884421

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

January 26, 2023 at 1:02 am #12893973

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for the access details!

I assume you currently have the redirect activated on your site as I am not able to reproduce.

To further test I created a sandbox environment for us.

In this environment, I am not able to reproduce the issue. (no other redirects are added by me)

See here:
hidden link

You can access the backend as well with the link below:
hidden link

At the moment it looks like this is working as expected in a clean environment which leads me to believe this might be environment related on your current installation either due to the URL setup, htaccess, or even a third-party plugin causing a compatibility issue.

January 27, 2023 at 12:27 am #12900699

jean-philippeU

Hey Bobby,

Your message cued me on checking for my other issue related to the emails and I bumped into the following article which solved my problem. This was caused by the ajax submission process which does not occur when logged in.

https://wpml.org/forums/topic/ninja-forms-confirmation-email-not-translated-when-logged-out/

My problem is now solved. Thanks for the support !