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.

This topic contains 2 replies, has 2 voices.

Last updated by Rut Abrado 1 year, 5 months ago.

Assisted by: Mohamed Sayed.

Author Posts
September 25, 2023 at 2:11 pm #14459563

Rut Abrado

Tell us what you are trying to do?
This is a "product" custom post type in the main language working well. hidden link
I translate it to Spanish, I when I have the 100% complete translation done, when I try to visualize, the public url has a critical error.
hidden link

Is there a similar example that we can see?
In the other custom post type "projectes" the translation is working well:
Main language catalan: hidden link
Translation ES: hidden link

September 25, 2023 at 8:44 pm #14462117

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

Could you please tell me how the custom post type was created?

Also, please provide us with the WordPress debug.log, this will allow us to see if any PHP errors are being produced. More Info: https://wordpress.org/support/article/debugging-in-wordpress/

To enable it, open your wp-config.php file and look for:

define('WP_DEBUG', false);

And change it to:

define('WP_DEBUG', true);
// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);
// Disable display of errors and warnings which is recommended on a live site.
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);

Then try to reproduce the issue by visiting the translated product and check if any errors were saved to the debug.log log file inside the /wp-content/ directory

If you can paste your debug.log to https://pastebin.com/ and provide me that link, it would be great!

Kind regards,
Mohamed

September 26, 2023 at 7:52 am #14463783

Rut Abrado

Thanks for your message. The logs reported an ACF Gallery error due to a duplicate name field from another group of fields, so the error is solved 🙂