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

Last updated by timK-2 1 year, 6 months ago.

Assisted by: Long Nguyen.

Author Posts
May 4, 2023 at 1:37 pm #13586993

timK-2

I used the feature "Adjust links in posts and strings so they point to the translated content" to update all links.

The original language of the articles is german - it worked perfectly to update all links of all translations.

Problem: All internal links of german articles link to the Swedish translation now.

How can we solve this problem?

Thank you

May 5, 2023 at 10:26 am #13593041

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Tim,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Please try to follow some troubleshooting steps below and see if it helps:

1. Increase the WP memory limit: I see that the WordPress Memory Limit is below the requirements. The minimum requirements are 128M, but we do recommend 256M and the debug information of your site shows it set to 40M. Please check this link for more details
https://wpml.org/home/minimum-requirements/.
You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:


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

After adding the code you can confirm that the memory was changed correctly from WPML > Support > WordPress > Memory limit.

2. Update WPML plugins to the newest version, please follow this documentation https://wpml.org/faq/install-wpml/#checking-for-updates

3. Go to WPML > Support > Troubleshooting > Click on some buttons:
- [Post, page, CPT] Synchronize posts taxonomies
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML tables collation
- Set language information
- Fix terms count
- Fix post type assignment for translations

4. Run the adjust link again.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: 
https://wordpress.org/plugins/duplicator/

Look forward to your reply.
Thanks

May 5, 2023 at 11:59 am #13594239
timK-2

Thank you, Long!

I'm going through all the steps atm; however, I am facing another problem now.

I cannot update the plugins because of this error " You are using an unregistered version of WPML and are not receiving compatibility and security updates. Register now"

The version is registered; I had this error a few times before. It usually disappears after a few days, and everything returns to normal. How can we solve this problem?

Thanks

Tim

New threads created by Long Nguyen and linked to this one are listed below:

https://wpml.org/forums/topic/split-internal-links-pointing-to-wrong-language/

May 6, 2023 at 7:02 am #13597591

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

We can handle one issue per ticket only so I will split this ticket into a new one for your new issue.

If none of the above steps fix the issue, please let me know a specific article where I can see the issue and I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: 
https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme and to change configurations on the site if needed. This is also a reason the backup is critical.

Look forward to your reply.
Thanks

May 8, 2023 at 3:16 am #13601623

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

Can you please check the internal links on the frontend and see how it goes?
I'm not sure why the links are pointed to the Swedish language in the German language (original). But I've tried to run the adjusted links again in WPML > Settings and scanned the sticky links again in WPML > Sticky Links, now the links on the frontend are linked to the correct language version.
Please read more in the documentation https://wpml.org/documentation/getting-started-guide/sticky-links/

Look forward to your reply.
Thanks

May 8, 2023 at 2:28 pm #13606611
timK-2

Hi Long

Thank you so much for your help! It seems like most links point to the correct language now! I have only some problems with links to articles not available in all languages yet, but I'm working on this.

During this process, I received this notification when I wanted to auto-translate content the way I always did

"You can only automatically translate content from your primary language (English) to other languages. Use the language switcher at the top of this page to switch to English."

Did you change the primary language? Before, I could auto-translate articles from any language.

Thank you

Tim

New threads created by Long Nguyen and linked to this one are listed below:

https://wpml.org/forums/topic/split-internal-links-pointing-to-wrong-language-2/

May 9, 2023 at 2:55 am #13609381

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for your feedback.

The new issue/question does not relate to the main issue of this ticket with internal links so I will split it into a new ticket for better handling.

If you see the main issue of this ticket is resolved, kindly mark it as Resolved. Thanks.