Skip Navigation

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

Problem:

Critical error after updating translated Custom post

Solution:

I checked your site and found that the "rid" entries in the "wp_icl_translation_status" doesn't have "Auto Increment", so I added it.

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

Last updated by jonathanF-3 1 year, 8 months ago.

Assisted by: Osama Mersal.

Author Posts
May 9, 2023 at 1:21 pm #13614077

jonathanF-3

I am trying to: duplicate custom post for translation or connect old custom post that have been published in 2 languages, seperatly.

Link to a page where the issue can be seen: Staging: hidden link

I expected to see: The translated post linked

Instead, I got: The connection/duplication between custom posts work as usual. They even show correctly on front end. But if i update the translated post, i got the wordpress critical error page.
Everything works fine with the standard post.

Screenshot 2023-05-09 at 08-24-51 WordPress › Error.png
May 10, 2023 at 9:54 am #13620551

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

1) I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed.

Your next answer will be private, which means only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

2) It's not related to the issue, but according to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. The minimum requirements for WPML are 128 MB. (Kindly check this page 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:

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Best regards,
Osama

May 10, 2023 at 1:31 pm #13623137

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I checked your site and found that the "rid" entries in the "wp_icl_translation_status" doesn't have "Auto Increment", so I added it.

Would you please update a translated post and check if it works correctly?

Best regards,
Osama

May 10, 2023 at 2:22 pm #13623599

jonathanF-3

Yes! everything works perfectly.
Thank you very much!