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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

Tagged: 

This topic contains 0 replies, has 1 voice.

Last updated by Osama Mersal 7 hours, 34 minutes ago.

Assisted by: Osama Mersal.

Author Posts
February 11, 2025 at 2:49 pm #16692389

dawnV

Background of the issue:
I am working on a development site for hidden link and trying to ensure that the fallback functionality works correctly for pages using WPML. Specifically, I am testing the fallback behavior for links that exist only in English when accessed from the German version of the page.

Symptoms:
On the page hidden link, the links 'ASTM C109' and 'ASTM C170' result in a 404 error when accessed from the German version, while 'ASTM C365' correctly falls back to the default language.

Questions:
Why do some links not fall back to the default language and result in a 404 error?
How can I ensure consistent fallback behavior for all links on the site?

February 11, 2025 at 3:36 pm #16692648

Andrey
Supporter

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

One of my colleagues will be taking over your ticket. In the meantime, I want to share some helpful information.

The page you provided is returning a 404 error, so I was unable to access it.

Please ensure that you set the "Pages" and any other related post types on your website to use Translatable – use translation if available or fallback to default language:
https://wpml.org/documentation/translating-your-contents/displaying-untranslated-content-on-pages-in-secondary-languages/#fallback-content

February 11, 2025 at 4:10 pm #16692900

dawnV

Hello,

That page is visible , and we have set the Post Types Translation to yes for all the custom post types translation.

Thanks.

February 12, 2025 at 11:47 am #16696177

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm Osama from WPML forums support. I'll be glad to help you today.

1) I checked this page in hidden link">German and hidden link">Thai; they work as expected.

Please let me know the steps to reproduce the issue.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me much information about how your site is configured.

Best regards,
Osama

February 12, 2025 at 12:07 pm #16696224

dawnV

Please check this below links
here english page is working for below links but spanish . italian , french etc no working.

hidden link
hidden link

above both pages are not availabe in spanish , Italian language and when we move to that language we got 404 page, which should not be. There should be fallback needs to work on the above pages.

We have many more pages with the same behaviour with diferent languages.

February 12, 2025 at 12:13 pm #16696239

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your reply. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

February 13, 2025 at 8:38 am #16700642

dawnV

We are facing another issue when opening the link: hidden link. Within the content, there is a link to "Testing Systems." Although we are on the English version of the page and the link should be in English, it appears in Portuguese (pt-br) in the browser. However, when we open the page in Beaver Builder, the link is correctly set to English.

Additionally, on this page, there is another link labeled "Universal Testing Machine," which is incorrectly set to the Thai (th) language.

Please investigate these issues and provide resolutions in this thread as well as the previous one.

wpml_bug.png
February 13, 2025 at 9:49 am #16700974

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I'll focus on the first issue and then check the 2nd one.

When editing a post, the language side panel doesn't show the languages. (Kindly check the attached screenshot)

I want to run the minimal installation test, so I tried using the Duplicator Pro and All-in-One Migration plugins to create a copy of your site. However, both plugins failed due to a server error.

Please provide a snapshot of your site, including the files and database, except for the uploads folder.

Best regards,
Osama

2025-02-13_11-43-53.png
February 13, 2025 at 10:51 am #16701237

dawnV

Hi Osama,

Can you please try again and let me know if you face any error with screenshot.

Thanks.

February 13, 2025 at 11:58 am #16701708

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please check the attached screenshot. Here is the error in the log:

{"type":1,"message":"Allowed memory size of 536870912 bytes exhausted (tried to allocate 34490440 bytes)","file":"\/var\/www\/html\/sw-tt-instron\/wp-content\/plugins\/all-in-one-wp-migration\/lib\/vendor\/servmask\/database\/class-ai1wm-database-mysqli.php","line":113}

Best regards,
Osama

2025-02-13_13-56-28.png
February 13, 2025 at 1:51 pm #16702838

dawnV

Hi Osama,

I am uploading database which contains staging urls so need tomake according changes and Files. so how can i put links which will be hidden. please provide that so you can download it

February 13, 2025 at 1:55 pm #16702891

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I've enabled the private reply. Please share the database and the site's backup URLs.

Best regards,
Osama

February 14, 2025 at 10:47 am #16705837

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the package. I installed a local copy of your site and found the issue was caused by the "Permalink Manager" plugin.

Please try the following: deactivate the permalink manager plugin and activate the Twenty Twenty-One theme. After that, please check if the language switcher and fallback function works as expected.

If the function works correctly, please activate the "Permalink Manager" plugin and check the fallback function.

Best regards,
Osama

February 14, 2025 at 2:34 pm #16706851

dawnV

Hi Osama,

Thank you for your response.

The Permalink Manager plugin is essential for maintaining our URL structure alongside WPML and Beaver Builder. After disabling it, the URL structure no longer functions as expected, resulting in multiple 404 errors across the site. and we have to maintain the same url structure as per our current live site.

Additionally, we noticed an issue where a different language appears within the URL of an English page. For example, on this page:
hidden link, the 6800 Series page is linked incorrectly in a non-English language.

Could you please advise on how to resolve this? We are preparing for the site launch soon and need a fix urgently.

Thanks.

February 15, 2025 at 1:36 pm #16709017

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

The combination of your custom theme and the Permalinks Manager plugin causes the issue.

Please log in to this hidden link">sandbox site and install only the permalinks manager plugin and your theme. After that, please check if the issue is replicable.

If the issue is replicable, please let me know so I can check it and consult our 2nd tier support team.

Kindly note that the fallback function works correctly on the sandbox site. Please visit this hidden link">page to check it.

Best regards,
Osama