Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client experiences 404 errors across the site, mainly with portfolio posts, after copying and translating a page. The issue persists even after setting up redirects and involves unexpected changes in URLs when setting up translations in different languages.

Solution:
1. Ensure the PHP version is fully supported by WordPress, preferably versions 8.1 or 8.2.
2. In an incognito window, check if the issue still occurs. If it does, follow these steps:
- Navigate to WPML->Support->Troubleshooting.
- Clear the WPML Cache.
- Go to WP Engine and clear the website cache.
3. Check if there are any active 301 redirects that might be affecting the URLs.
4. In WPML settings, under 'Translated documents options' -> 'Page URL', ensure the correct settings are applied based on whether the translation language uses encoded URLs. If necessary, adjust the language settings to 'Encoded' or set it to 'Translate' for more control over the URL slugs in the translation editor.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If problems persist, please open a new support ticket.

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.

Tagged: 

This topic contains 10 replies, has 1 voice.

Last updated by pamelaP-4 1 month ago.

Assisted by: Bobby.

Author Posts
December 22, 2025 at 1:03 pm #17682177

pamelaP-4

When I copy and translate a page, and publish it, I get 404 errors across most of the site, mainly the portfolio posts. I have tried many things including Maiya, and am requesting a human's help!!

This is actual page
hidden link

This is the 404 that happens, the address changes back to what it used to be.
hidden link

December 22, 2025 at 2:23 pm #17682469

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hello,

This is indeed strange. Could you please:

- Downgrade your PHP version to one fully supported by WordPress (I'd suggest 8.1 or 8.2)

- Would you be able to allow us access to the site so We can take a look at the problem (up close) and see if we can spot why the problem is happening?

Regards,

December 22, 2025 at 10:54 pm #17683595

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Thank you for the access details!

When I test with WPML temporarily deactivated the issue remains.

Are you positive this is an issue caused by WPML and not related to Avada and the URL structure?

At the moment I am able to visit the URL OK hidden link after running the WPML cache clearing and WP Engine Cache Clear.

Let me know your results, please.

December 23, 2025 at 2:01 pm #17684930

pamelaP-4

Hi Bobby and thank you. The reason I was asking you guys is because the links only break when I translate a page and save it.

December 23, 2025 at 7:14 pm #17685499

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Understood, thank you for clarifying. Can you please review now in an incognito window if the issue is still there or if you can reproduce it?

I just did a test with hidden link and it seems to work OK.

In that case the recommended steps are :

1. Go to WPML->Support->Troubleshooting
2. Clear WPML Cache
3. Go to Wp Engine and clear website cache

Let me know your results, please.

December 24, 2025 at 2:53 pm #17686721

pamelaP-4

Thanks, you can ignore the attached image, I set up a redirect for that one.

But as a test, I went to this page and set up a Portuguese language page for it.

hidden link

I'm expecting that the slug should not change this dramatically...

from
tcx030 (English)

to this
1-4-tc-x030-series/?lang=pt-br

hidden link
to

this
hidden link

Can you explain why this is happening?

Screenshot 2025-12-24 at 8.29.39 AM.png
December 24, 2025 at 9:32 pm #17687421

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Hi there,

There is a 301 redirect at the moment so I cannot test it, is this the one you set up?

>>> hidden link

> --------------------------------------------
> 301 Moved Permanently
> --------------------------------------------

Status: 301 Moved Permanently
Code: 301
Date: Wed, 24 Dec 2025 21:05:42 GMT
Content-Type: text/html; charset=UTF-8
Connection: close
CF-RAY: 9b330eeb9cddd2b7-FRA
Location: hidden link
X-Powered-By: WP Engine
X-Redirect-By: WPML
X-Cacheable: non200
Cache-Control: max-age=600, must-revalidate
X-Cache: MISS
X-Cache-Group: normal
cf-cache-status: DYNAMIC
Set-Cookie: __cf_bm=idn4Y5jm9lKAm0.AaxS4GEtU980ZTcqFCT1iWg4iuGw-1766610342-1.0.1.1-umrmL.axwaj3H6zWGvMEzabjZJG_Is5hROEthQvl._Tj2TtWyyTDN9.xZtVxvd_Fdm55jfIJUzjEU6Y7Lj0LgvutZ20_EhyTAo1MMo2k7cg; path=/; expires=Wed, 24-Dec-25 21:35:42 GMT; domain=.wpenginepowered.com; HttpOnly; Secure; SameSite=None
Server: cloudflare
alt-svc: h3=":443"; ma=86400

>>> hidden link

Regarding the permalink:

The item title is "1/4" TC-X030 Series *"

The permalink is being pulled from the item title.

1-4-tc-x030-series

In WPML -> settings-> Translated documents options -> Page URL, you have selected "Copy from original language if translation language uses encoded URLs"

this works, but only when a language uses encoded URLs which the current languages do not.

You could try as a workaround to go to WPML->Languages -> edit languages and mark the language "Yes" under Encoded.

OR set it to Translate (this will include the slug in the translation and not create it automatically from the title) which will give you more control directly in the ATE Editor to copy it or adjust it.

December 26, 2025 at 9:35 pm #17688907

pamelaP-4

Thank you, that seemed to help that issue! Would you mind taking a look at another issue with other 404s? This will not stop happening.

hidden link (404 - but active page)

hidden link

I started to translate this page in portuguese. But when I click on one of the squares, a product page should come up in portuguese since I set all of those up as well.

hidden link

When I go directly to the page I get 404s for them now....
hidden link

How can I link them so I don't have to go to the footer of the page to click on the portugues version? (Most still have english text but I did set them up as a language page.)

I appreciate you!!

December 27, 2025 at 2:56 am #17689203

pamelaP-4

I seem to be getting somewhere!!!

I keep trying to figure things out...

Can you just do a quick look over for me and see if things are linking properly??

Thank you!!

December 29, 2025 at 8:37 pm #17695649

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Thank you for updating me, reviewing and will get back to you asap.

Hope you had a good holidays.

December 29, 2025 at 9:32 pm #17695661

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

All pumps and it's translations are working OK
hidden link

TXC-050 link is not working for me.

It looks like it was pointing to a URL for /portfolio-items/

After going to WPML->Support->Troubleshooting and clearing the cache it now points to 200 OK and working.

December 30, 2025 at 1:20 am #17695857

pamelaP-4

Thank you Bobby!! Hope you enjoyed the holidays as well and have a Happy New Year! I appreciate your guidance and assistance. 🙂

Pam