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.

Tagged: 

This topic contains 3 replies, has 2 voices.

Last updated by stefanC-12 1 year ago.

Assisted by: Waqas Bin Hasan.

Author Posts
March 27, 2023 at 9:42 am #13336371

stefanC-12

I've got some translated pages that suddenly return a 404 error. They worked fine until recently and now they return 404.

Those pages are translated (100%), the menu is synced. and they show up in the front-end searchresults. When you enter the url they return 404 page not found.
You can find an example here:

This page is 100% translated and works.
hidden link

The translation returns 404.
hidden link

I've already refreshed the permalink structure, cleared the cache, tried with another browser and updated the original language and the translation. I've also synced the menu again with no success.

Other pages (even subpages with a /parent/parent/pageslug structure) work fine.

I can't find the problem - any help is appreciated.

March 27, 2023 at 9:59 am #13336735

stefanC-12

I can further narrow down the issue. Those pages seem to work when called without https:// but not with https://

I've checked the database with "better search replace" and there are no links with http:// anywhere. All the Links created by WPML are https://

March 27, 2023 at 5:55 pm #13341887

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

I just checked the mentioned URLs and look like these are working fine:

- hidden link
- hidden link

However, notice that there's no "ueber-uns" or "about-us" in the URL. When I tried to visit the URL exactly as you mentioned, these were redirected to the said URLs. Perhaps:

- either there's a redirection in place (a plugin or on server level or using .htaccess?)
- or you may have changed it to make it work? (given the reported problem).

In any case, can you try the followings?

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

- Update WPML String Translation to the latest version also, since you 've already updated WPML to the latest.
- Deactivate all plugins except WPML and its addons and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any. You can also check for plugin compatibility with WPML at https://wpml.org/plugin/. If you find a plugin not compatible with WPML, I'll advise you to contact the plugin author.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2023). Because your current theme isn't on our compatibility list (https://wpml.org/theme/?wpv_view_count=119967&wpv-theme-category=0&wpv_post_search=TheAvenue&wpv-wpcf-recommendation-flag=&wpv_filter_submit=Search), so we can rule out or narrow down this possibility as well.
- Also check the browser's console for any JavaScript errors. If you find any, copy that in your next reply. See https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/ for details on how to find these errors.

Please let me know and I'll try my best to further assist you on the matter.

Regards.

March 28, 2023 at 8:16 am #13346621

stefanC-12

Hi, I've found a solution that worked for now. I removed the hierarchy from the pages and created new urls for each of them.

The strange thing is that /about-us/ just didn't work even when I created all pages from scratch. Other pages with hierarchy work just fine.

I have no redirection plugin installed but rewrite rules in my .htaccess that force https. That works on every other page except children of the /about-us/ page … I even deleted and recreated the about-us page and it still wasn't working.

My best guess is that there's some server-caching problem?! but the host hasn't yet replied to me, so I can't check.

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.