Skip to content Skip to sidebar

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

Problem:
You are using WPML to translate your website and are facing an issue where links on translated web pages redirect back to the original language page instead of the corresponding translated page.
Solution:
First, ensure that your server's WP Memory Limit meets the minimum requirements for WPML. We recommend setting the WP Memory Limit to at least 128MB, preferably 256MB. You can increase the memory limit by adding the following lines to your wp-config.php file:

/** Memory Limit */<br />define('WP_MEMORY_LIMIT', '256M');<br />define('WP_MAX_MEMORY_LIMIT', '256M');

Add these lines before:

/* That's all, stop editing! Happy blogging. */

For more detailed information on server requirements, please visit WPML Minimum Requirements. Additionally, check how to increase your site's memory limit at Increasing Site Memory Limit.
If adjusting the WP Memory Limit does not resolve the issue, or if the solution provided here becomes outdated, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, 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 1 replies, has 2 voices.

Last updated by Itamar 1 year, 2 months ago.

Assisted by: Itamar.

Author Posts
August 18, 2024 at 11:15 am

keymana-2

Background of the issue:
I am trying to use WPML to translate my website hidden link. I want the links on the translated web pages to direct users to the corresponding translated pages.

Symptoms:
Links from translated web pages, when clicked, go back to the original language page and do not go to the new translated page.

Questions:
How can I ensure that links on translated pages direct to the corresponding translated pages?

August 18, 2024 at 12:27 pm #16081244

Itamar
WPML Supporter since 02/2016

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Please proceed with the following, and if you need further help, reply to this ticket.

The debug info you attached shows that your server WP Memory Limit is 40M. Our recommendations are to have the following as minimal requirements:

- PHP 7 and above (this OK with your installation) with a WP Memory Limit of at least 128MB while 256MB is recommended.

MySQL 5.6 and above.

Please follow this link for detailed documentation:

https://wpml.org/home/minimum-requirements/

Is it possible for you to change those to the minimum requirement?

You may need to contact your hosting provider for that. Meeting those baseline requirements is critical before debugging and sometimes solves issues you experience. The most important thing is to raise the WP Memory Limit. Please try to raise it before you contact your hosting company. You can do it from the wp-config.php file in your WordPress installation. Insert this code in that file:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Add it before this line:

/* That's all, stop editing! Happy blogging. */

Could you please perform that procedure and see if it helps?

You can also read about it here.

https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-can-i-increase-my-sites-memory-limit

Regards,
Itamar.