Skip Navigation

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

Problem:
You are experiencing a 500 error and corrupted page design on a Spanish translated article on your website using WPML.
Solution:
We suspect the issue might be related to the handling of custom fields in your code. Specifically, the 'review_disable_versus' custom field was not set to copy, which could be causing the error. We have now set the 'review_disable_versus' custom field to copy. Please check if the error persists.
If the issue continues, or if this solution does not apply to your case, we recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please open a new support ticket for further assistance at WPML support forum.

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

Last updated by danielH-157 2 days, 11 hours ago.

Assisted by: Bruno Kos.

Author Posts
January 2, 2025 at 8:42 am

danielH-157

Background of the issue:
I am trying to resolve an issue with a translated article on my website hidden link. The article is in Spanish and is part of my efforts to provide multilingual content using WPML.

Symptoms:
The translated article in Spanish is showing a 500 error, and the page design is corrupted.

Questions:
What could be causing the 500 error on my Spanish translated article?
How can I fix the corrupted page design for the Spanish translation?

January 2, 2025 at 9:37 am
January 2, 2025 at 10:13 am #16558061

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

I am checking this with our 2nd tier and will keep you posted.

January 2, 2025 at 2:13 pm #16559093

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Can you check now? We set review_disable_versus custom field to copy as we suspect that the issue is caused by this line of code:

$zfx_review_title = get_post_meta($zfx_id, '_review_heading', true);
	
	$disableversus = get_post_meta((int)$id, 'review_disable_versus', true);

    if (!$disableversus && !in_array($id, [3457, 4183, 4171, 4140, 4644, 5826, 5886, 2594, 3465, 7317])){
January 6, 2025 at 6:45 am #16565122

danielH-157

thanks its wokring now!!