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.

Elementor users - please update WPML to the latest version to maintain compatibility. More details here - https://wpml.org/changelog/2024/12/wpml-4-6-15-critical-update-for-elementor-sites/
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

This topic contains 0 replies, has 1 voice.

Last updated by T4ng 3 days ago.

Assisted by: Kor.

Author Posts
December 20, 2024 at 2:24 pm #16534576

T4ng

Background of the issue:
I am trying to translate a page using WPML. The issue can be seen on this page: hidden link

Symptoms:
After translating a specific block, I can't display the page's translation anymore. I am redirected to the original page, even though the content is 100% translated. I can access a duplicated page (/en/) without an issue, but the French one is not reachable.

Questions:
Why am I being redirected to the original page instead of the translated one?
How can I make the French translation of the page accessible?
hidden link

December 20, 2024 at 2:41 pm #16534669

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

The site is responding with an HTTP 403 status error. Could you please review this on your end? Specifically, I’d like to verify the hidden link">redirect routes to check if any active redirects might be causing the issue.

Thank you!

Best regards,
Marcel

December 20, 2024 at 2:43 pm #16534676

T4ng

Hi. The websites is IP restricted, but reachable through a VPN. I can walk youthrough the steps to reach it

December 23, 2024 at 11:11 am #16540047

T4ng

Hi. Can you take a look?

December 23, 2024 at 3:00 pm #16540807

T4ng

Hi,
I would have to provide you with an openvpn file (with credentials) to let you access this environment. I can provide you with these data through private message. Would that work for you?
I can't export our current website setup, our setup is too complicated.

December 23, 2024 at 3:16 pm #16540845

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Ok, I can try. Please use the private reply option that I've enabled.

December 23, 2024 at 5:06 pm #16541264

T4ng

I just edited the first private message, and added the required OpenVPN config.

December 23, 2024 at 5:55 pm #16541379

T4ng

Please let me know if you still can't access.

December 25, 2024 at 6:14 am #16544949

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

I apologize, but I’m still experiencing difficulties accessing "OpenVPN." It’s likely due to my lack of understanding of how the system works.

Could you maybe provide a copy of the site? For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

3. Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Let me know if this works for you and I will enable another private reply option for you to share the package download link.

December 28, 2024 at 8:49 am #16549767

T4ng

Hi,
As explained earlier, I can't do that.
You just need to install an OpenVPN client on your computer, and use it with the ovpn configuration file I provided you with, to get access to the website (you'll need to add this config file in the app's config folder (for Windows: /Program Files/OpenVPN/config/.
This will basically make your trafic transit through an IP that has access to the website.
Please give it a try, it's not complicated.

December 30, 2024 at 11:13 am #16552969

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response.

Unfortunately, we use a private VPN provided by our company, OnTheGoSystems. Since the data passing through my system includes login credentials for other clients, it would not be secure for me to connect to your VPN. I hope you can understand this limitation.

After reviewing your video recording, it appears that the issue is related to your custom Gutenberg block. This block needs to be registered as described in this guide: https://wpml.org/documentation/support/language-configuration-files/make-custom-gutenberg-blocks-translatable/ .

If the instructions are unclear or you need assistance registering the custom block, I’ve prepared a sandbox site here: hidden link . You can install the required theme and plugins on this site to replicate the issue.

Once you’ve set it up, I’ll review it and let you know what custom XML is needed to enable translation.

December 30, 2024 at 12:21 pm #16553146

T4ng

Hi,

Thanks for your feedback.

So you can't use our VPN,

I can't provide you with a copy of our website.

Now, I tried to add the required assets to the test platform you set up, but I can't upload the files, since these are too big.

All our custom blocks don't seem to break the translation, although no specific declarations were made, for any of them.

Can you tell me how I can identify the ones I should declare?
I mean, we build many custom blocks, so I can test all of them, but I'd rather know in advance which on these might break, rather than discovering it during practice.

Thank you

December 30, 2024 at 4:25 pm #16553961

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thank you for your response. You can find more information about this process here: https://wpml.org/documentation/support/language-configuration-files/make-custom-gutenberg-blocks-translatable/ . Additionally, you can use this tool: https://wpml.org/documentation/support/multilingual-tools/ to automatically generate custom XML configurations for your custom blocks.

There's no need to import your entire website into our sandbox site. Simply install the theme and the plugins you use to create the custom blocks. Then, create a new test page and add the custom blocks to it.

Once that’s done, I’ll review the test page and generate the custom XML configuration for you. You can then add it to the **WPML > Settings > Custom XML Configuration** section. After this, your translated content will display correctly on the frontend.

Here’s the sandbox site link again: hidden link

December 30, 2024 at 4:55 pm #16554097

T4ng

That's what I did. But the plugin through which we declare our custom block is still in development, and too big, because of too much unused dependances. Therefore I can't upload it

I'll get back once we get it lighter.
Or maybe you can increase the file / upload time limits for this sandbox?

Thanks

December 30, 2024 at 4:58 pm #16554115

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Could you share both theme and plugin files via Dropbox or Google Drive? I will try to upload it on my end.

Our staging site should have the minimum requirement for a shop Website.