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

Last updated by Kor 1 year, 4 months ago.

Assisted by: Kor.

Author Posts
July 19, 2023 at 7:41 pm #14068573

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Okay, this should be enough for me to open a report. I will consult with our 2nd Tier Support and I will let you know his feedback.

August 1, 2023 at 6:28 pm #14136965

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

We apologize for the inconvenience, but in order to proceed with troubleshooting, we kindly request a site snapshot. Alternatively, with your permission, we can create a snapshot on our own.

For this purpose, we typically recommend using the free plugin "Duplicator." If you are already familiar with how Duplicator works ( https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To assist you further, please follow these instructions:
Watch the Duplicator instructions video: hidden link

Refer to the instructions provided by WPML on how to provide supporters a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

If the archive file exceeds 400MB in size, please utilize Duplicator's file filters to exclude the cache, wp-uploads directory, media, and archive files.

Once you have the archive file, please share the link with us. You can use services such as Google Drive, Dropbox, or similar platforms as the snapshot file will likely be large.

Please note that your next reply will be private, visible only to you and me. You can paste the link to the file there. Rest assured that once the issue is resolved, I will delete the local site.

August 1, 2023 at 7:05 pm #14137081

edouardR-2

Hello,
I just created a snapshot on my host.

Also, Wp staging pro is installed on my site. If needed, feel free to use it as needed.

Regards,
Edouard

August 2, 2023 at 3:01 pm #14143597

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Sorry, I don't think I could use the WP Staging sites. Some links just won't work over there for me. Could I just install Duplicator Pro on your production site so that I could create a duplicator package?

Once I have it, I will forward this to our 2nd Tier Support for further investigation.

August 4, 2023 at 7:45 am #14153305

edouardR-2

Hello,
Yes you can use duplicator pro on my sites.
But do not change anything else to production site without asking, all right ?

August 4, 2023 at 8:31 pm #14157133

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

I've escalated this and I will come back to you once I've feedback.

August 18, 2023 at 5:56 pm #14254615

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience.

We have a workaround and please follow the instructions below.

Edit this file \wp-content\plugins\sitepress-multilingual-cms\inc\absolute-links\absolute-links.class.php

After the code:

$blacklist_requests = new WPML_Absolute_Links_Blacklist(
			apply_filters( 'wpml_sl_blacklist_requests', [], $sitepress )
		);

Add:

$test_for_home = get_option('home');
		$current_home_url = get_home_url();
		if (( 2 == $sitepress_settings['language_negotiation_type'] ) && strpos($text,$test_for_home)!== false && strlen($test_for_home)+12 == strlen($text)){
			$text = '<a href="' . $current_home_url . '">';
			return $text;
		}

Then re-save the translation.

Could you give this a try and see if it works?

August 21, 2023 at 8:16 am #14260839

edouardR-2

Hello,

1° Thanks a lot ! It did work 🙂


a) I run a test on this post only: hidden link

b) how to resave the translation for all post please ? Would be long to do this every single blog post... So let me know if there are any shortcut 😉

August 21, 2023 at 8:35 am #14261079

Kor
Supporter

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply.

Sorry, there is no bulk "resave" option in WPML. It would be the same if you bulk send posts for translation using the Translation Management and resave each translation.

August 21, 2023 at 12:32 pm #14263859

edouardR-2

Thanks for your help. My issue is resolved now.