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 1 reply, has 0 voices.

Last updated by Waqas Bin Hasan 6 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
December 3, 2024 at 1:53 pm #16472198

christianP-69

Background of the issue:
I am trying to display three cars on the homepage of hidden link with URLs that include parameters fetched from our database, such as hidden link. We have followed the instructions in the WPML documentation regarding preserving URL arguments when switching languages (https://wpml.org/documentation/getting-started-guide/language-setup/language-switcher-options/preserve-url-arguments-when-switching-languages/).

Symptoms:
When WPML is active, the URL parameters are removed, causing all cars on the website to stop functioning properly.

Questions:
Why are URL parameters removed when WPML is active?
How can I preserve URL parameters with WPML?

December 4, 2024 at 10:41 am #16476022

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

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

Hi,

Thank you for contacting the support.

I visited hidden link but can not find a language switcher on the page, which I can use to observe the issue when switching to the other language.

Can you enable a language switcher to observe the issue?

Besides this I'll recommend following improvements to your setup (based on the debug information) and let see if these help addressing the said problem too:

1) Fix “WP Memory Limit” to at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set this in your wp-config.php file by adding following code:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Remember to add these lines before the line where it says:
/* That's all, stop editing! Happy publishing. */

See https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php for details. Increasing WP Memory may help improve the performance.

2) I can not find WPML String Translation plugin in your debug information, can you please confirm if that's installed and active? If not, I'll recommend installing and activating it. This is a companion plugin for WPML which brings more features for translation and improves overall working of the WPML. You can download it directly from https://wpml.org/account/downloads/ and upload via Plugins -> Add New -> Upload. Or, can go to Plugins -> Add New -> Commercial (tab) and select from the list to install and activate.

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

Regards.

The topic ‘[Closed] URLs Parameters’ is closed to new replies.