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: Asia/Karachi (GMT+05:00)

This topic contains 0 replies, has 0 voices.

Last updated by Waqas Bin Hasan 1 day, 5 hours ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 6, 2025 at 10:12 am

Jose

Background of the issue:
My Woocommerce website was created in Spanish and translated into English using WPML plugin. I have 3 Products pages in English that show a 404 error. All other English pages in the WP are OK. Spanish products pages work fine but English don't. I tried resetting the permalinks by resaving them but it didn't fix the issue.

Symptoms:
404 error on English Woocommerce product pages.

Questions:
What might be wrong with the English product pages?
How can I fix the 404 error on the English product pages?

January 6, 2025 at 11:04 am
January 6, 2025 at 11:05 am #16566080

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Hi,

Reference to our recent chat, I've moved it to this ticket due to no further progress in fixing the site access.

Please let me know when it is fixed and I can login to check for the issue.

Regards.

January 8, 2025 at 6:09 pm #16574927

Jose

Hi again,

Just a quick note to send you an update on this case.

We've uninstalled a plugin (Disable XML-RPC-API) because it kept changing our .htaccess
It caused issues loading the website and returned a 500 Internal Server Error when trying to access the WP Panel.

(This security subject is well covered now by Wordfence in our website)

We have noticed that hidden link takes you to a 404 Error Page like this:
hidden link

Notice that there is a /es/ at the beginning... could this be caused by WPML?
Remember that we are using a specific folder for every language, including the default language: SPANISH

At last but not least, we have discovered that this URL allows us to get into the WP Panel without any strange redirection:
hidden link

I hope all this information adds some valuable clue!
Looking forward to hearing back form you.

Jose

January 9, 2025 at 6:11 am #16575989

Waqas Bin Hasan
Supporter

Languages: English (English )

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

Thank you for the updates.

Sometimes, third-party plugins call the flush_rewrite_rules(true) function too often. This leads to changes in the rewrite rules in your .htaccess file, which can cause issues on your WordPress site.

I'll recommend checking this guide and apply the solution.

If that solution still doesn't help resolving the problem, then please here are a few things you can check on your end:
- Go to "WPML > Languages > Language URL format" and resave your choice (Different languages in directories).
- On the same page, section "Hide languages": did you hide any language? If so, go to your profile and activate the option "Display hidden languages".
- Go to "Settings > Permalinks" and resave your permalinks
- Access your server via FTP (or Cpanel) and make sure that you don't have a a language folder like /es or /en (if you have one, delete it - WPML take care of the language)
- Still using FTP, check if you have specific directives in .htaccess that would create that issue. An easy way to discard this issue is to rename the file (.htaccess_old) and resave your permalinks. That should create a new .htaccess
- It could be a compatibility issue with another plugin. Can you try WPML in a miminal environnement?
1. Disable any additional plugin that is not related to WPML and its add-ons and switch to a default theme like 2021 or 2025.
2. If the issue disappears please start reactivating the plugins one by one, or activate them in small groups. This way you can verify at which point the issue appears again and identify the plugin that is causing the issue.

Please also enable WP_DEBUG to see if you have any PHP errors.

IMPORTANT: Please take full backup of your website and database beforehand. 

It is highly advised to try this on a staging/dev site first, so your live website isn't compromised.

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