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 15 replies, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 6 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
November 29, 2023 at 12:37 pm #14950953

carmenC-14

I need help but this is on another more serious issue. I have been battling with a severe 404 issue on my site, but I always thought it was due to some permalink or ssl issue.

However, today, with my hosting provider's help, I can confirm that it is WPML that's causing the 404 errors.

We deactivated the WPML plugin and then the site works fine.

Scoured through the WPML forum on this issue and I found this, which might be the reason.

https://wpml.org/forums/topic/404-error-for-translations-2/

https://wpml.org/forums/topic/404-error-on-log-in-page/

However, upon checking with the hosting, this is the answers I received:

1. WordPress is installed in a directory (not root) and you're using default links.
- WordPress is installed in the root directory. And we can confirm all the links are correct/

2. URL rewriting is not enabled in your web server.
- mod rewrite is enabled in the server.

3. The web server cannot write to the .htaccess file"
There are no issues in the htaccess.

Kindly assist. We have tried really everything. From re-saving permalinks everyday, to disabling SSL, to testing different plugins.

We need WPML to work soonest possible as it is a major plugin that we rely on.

November 29, 2023 at 12:40 pm #14951033

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Hello Carmen,

Meanwhile this ticket is attended by our support, please provide the debug information of your website for an overview of your setup. See https://wpml.org/faq/provide-debug-information-faster-support/ for more information.

I've enabled the debug information section for your next reply.

Additionally you can also take a look at https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/ and cross-check for a few initial fixes.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

And please also check if the issue happens when only WPML plugins are active with a default WordPress theme like 2021 or 2023?

Regards.

November 30, 2023 at 1:56 am #14957169

carmenC-14

Hello Waqas,

Here's the debug information.

As I type this, have also requested for the hosting provider to increase WP memory limit to 128M. Currently it stands at 40M.

I have not tried it with the WP 2023 plugin. How do I test that? Can I just try by activating the 2023 theme for a while and then switch back after I tested?

Thanks!

November 30, 2023 at 2:49 am #14957257

carmenC-14

Some update for you Waqas.

The hosting has increased the WP_MEMORY_LIMIT to 128M. Furthermore, the mentioned extensions, Multibyte String and SimpleXML, have already been enabled. However, As for the eval() extension, since your account is on a shared server, they are unable to install this extension due to security reasons.

Thanks!

November 30, 2023 at 9:39 am #14960323

carmenC-14

Hello Waqas,

Any updates on the above? Did you manage to receive the debug information that I sent?

December 1, 2023 at 3:10 am #14968265

carmenC-14

Hello Waqas,

Sorry I don't mean to chase, but our site really needs WPML to work urgently.

We can't just disable it as it is affecting everything.

Please provide help soonest.

Thanks!

December 1, 2023 at 8:45 am #14970197

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Hello Carmen,

Sorry for the delay in response due to high load of work.

Yes please check by following these steps before proceeding further:

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.

- Deactivate all plugins except WPML and check for the issue.
- Switch to 2021 or 2023 theme.
- Clear all caches (i.e. browser and/or on server).
- Try these troubleshooting options in the order (https://wpml.org/documentation/support/wpml-troubleshooting-options/). Remember to apply these one by one and wait for the one to finish before moving to the other:
--- Clear the Cache in WPML
--- Remove ghost entries from the translation tables
--- Fix element_type collation
--- Fix WPML table collation
--- Set language information
--- Cleanup and optimize string tables
--- Clear invalid strings
- And then check for the issue again.

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

Regards.

December 1, 2023 at 9:15 am #14970281

carmenC-14

Hello Waqas,

Thanks for the info. Let me try that quickly and revert to you the outcome.

Cheers!

December 1, 2023 at 11:32 am #14972053

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Sure please take your time.

December 1, 2023 at 11:58 am #14972267

carmenC-14

Hello Waqas,

After troubleshooting, the issue is gone switching from one page to another in the same language.

However, sometimes when I switch from one language to another with the language switcher, the 404 returned.

It's weird because the same page can be accessed from another link, for example: it's fine if I go to german calculator page from german about us, but if i switch from english calculator to german calculator then it won't work.

At the same time, it is not always replicable. I can click on some other pages, and then easily switch from english calculator to german calculator.

So I would say, 99% of my 404 problem is gone now. I don't suppose people switch languages all the time at the site, but I am curious to why this happen and why it's not reliable 100% of the time.

Can you shed some light?

Thanks so much for your help and pointing me in the right direction.

Cheers!

December 1, 2023 at 1:12 pm #14973051

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Thank you for the updates.

These symptoms refer to caching issue (usually). You may try disabling all caches (plugins, server and etc), then clear all caches and try to reproduce.

Secondly, if there are AJAX based features involved which tend to request content separately, you may check this https://wpml.org/documentation/getting-started-guide/language-setup/enabling-language-cookie-to-support-ajax-filtering/.

Finally, it could be your theme which isn't on our compatibility list (https://wpml.org/theme/), if you can reproduce the same behavior with any other standard WP theme (i.e. 2021 or 2023), then your theme is fine. Otherwise you may need to check with theme support.

December 1, 2023 at 1:27 pm #14973139

carmenC-14

Thanks Waqas! I shall look into that soon.

In the meantime, my developer has amended the dosage calculator to follow WPML's requirement. I would like to show them to you. But how shall I proceed?

You can check it next week and let me know as this isn't urgent. Thanks so much for replying on a Friday night at your time.

Have a good weekend!

December 2, 2023 at 11:49 pm #14978979

carmenC-14

Hello Waqas,

The 404s have returned.. it is affecting all the translated pages. Somehow English isn't affected.

Please help soonest as it is really affecting us badly..

Thanks,
Carmen

December 4, 2023 at 4:26 am #14981827

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Thank you for the updates.

I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

December 4, 2023 at 6:13 am #14981995

carmenC-14

Hello Waqas,

The problem was resolved on my end already, thanks so much for your assistance so far

Cheers