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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 10 replies, has 2 voices.

Last updated by Kor 1 year, 2 months ago.

Assisted by: Kor.

Author Posts
March 15, 2024 at 5:29 pm #15415605

matthewG-25

Reviewing translations not working on some pages.

March 15, 2024 at 5:41 pm #15415734

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your reply.

Here is the ticket and please let me know how it goes.

March 15, 2024 at 5:58 pm #15415833

matthewG-25

I tried removing various page modules on the original English version and then initiating a new automatic translation of the Spanish version, but the issue remains. Anything else I sould try?

March 15, 2024 at 6:21 pm #15415883

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your reply.

I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

March 15, 2024 at 7:11 pm #15415910

Kor
WPML Supporter since 08/2022

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.

March 18, 2024 at 7:11 pm #15423136

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your patience.

Please allow me to escalate this further to our 2nd Tier Support for further assistance. I will come back to you once I've feedback.

April 1, 2024 at 2:06 pm #15469652

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thank you for your understanding.

I apologize for the delay in getting back to you, and I wanted to share the insight provided by our 2nd Tier Support.

The preview feature for WPML functions similarly to the standard WP preview. When adding the parameters preview=1&preview_id=8751 to the URL (for example, hidden link), the preview appears to be broken.

Upon inspecting the theme files, I noticed there are numerous files within the template. Unfortunately, I'm unsure which specific file to investigate.

It's advisable to reach out to the developer responsible for the custom theme to address why adding these parameters fails to display the page content. I suspect the issue will persist even without WPML enabled.

April 4, 2024 at 1:52 pm #15483775

matthewG-25

Thanks for looking into it. I'll reach out to the original theme developer.

April 9, 2024 at 8:45 pm #15501647

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your patience.

I've received feedback from our 2nd Tier Support and he has suggested a workaround and I've applied to your Website. Now I'm able to review the pages as shown in the attached screenshot. Could you check?

Screenshot_366.png
April 16, 2024 at 6:18 pm #15527862

matthewG-25

All the ones I'm checking do appear to work now! What was the workaround and how can I implement it on the production site?

April 16, 2024 at 7:48 pm #15528207

Kor
WPML Supporter since 08/2022

Languages: English (English )

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

Thanks for your reply.

Please insert the custom PHP code below into your theme's functions.php file for the fix.

/**
 * @link wpmlsupp-11601
 */
add_filter('acf/validate_post_id', function($post_id){
	if (isset($_GET['wpmlReviewPostType']) && isset($_GET['preview']) && !empty($_GET['preview_id'])) {
		return intval($_GET['preview_id']);
	}

	return $post_id;
},11);

The topic ‘[Closed] Reviewing translations not working on some pages.’ is closed to new replies.