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

Last updated by Dražen 9 months, 3 weeks ago.

Assisted by: Dražen.

Author Posts
July 15, 2024 at 11:20 am #15953947

remcoE-2

Background of the issue:
I want to translate my blog post, but when I translate my post, fill in the custom field, and try to publish, I receive a critical error. URL: hidden link

Symptoms:
I received a critical error message. Error details: An error of type E_ERROR was caused in line 193 of the file /home/customer/www/staging2.tibo.energy/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php. Error message: Uncaught InvalidArgumentException: No translation entry found for query: s:34:" trid = %d AND language_code = %s ";a:2:{i:0;s:5:"84058";i:1;s:2:"de";} in /home/customer/www/staging2.tibo.energy/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/records/class-wpml-tm-icl-translations.php:193

Questions:
How can I resolve the critical error when trying to publish a translated blog post?
Is there a known issue with WPML Multilingual CMS version 4.6.11 and ACF Pro?
What steps should I take to debug the InvalidArgumentException error?

July 15, 2024 at 11:30 am #15953983

Dražen
Supporter

Languages: English (English )

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

Hello,

you have been disconnected from chat so I have converted it to ticket:

Can you please check next:

1) Does the issue happen if creating a new page?

2) Does the issue happen if you are using WPML plugins and ACF only, all others disabled?

Let me know.

Thanks,
Drazen

July 15, 2024 at 11:34 am #15954043

remcoE-2

- The issue doesn't happen when I create a new post
- When I disable all my plugins the issue persists.

July 15, 2024 at 12:27 pm #15954380

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for checking.

Then it could be the entry and the post has some corrupted data, I advise copying/making a new page/ duplicate to a new draft and making sure it works, and then you can delete the old one corrupted.

Hope this helps.

Regards,
Drazen

July 15, 2024 at 2:50 pm #15955117

remcoE-2

But when I delete the post and translate a new one the issue persists. It goes wrong with al my posts in German.

July 16, 2024 at 5:47 am #15958036

Dražen
Supporter

Languages: English (English )

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

Hello,

I am not sure I understand, you said first the issue doesn't happen when you create new posts.

1) Can you please clarify if the issue happens if you create completely same new page and then translate it?

2) Please make sure WPML tables are correct and auto-increment is enabled as per the next image:

- hidden link

Regards,
Drazen

July 16, 2024 at 6:26 am #15958282

remcoE-2

The issue doesn't happen when I create a new post, but I don't want to delete all my posts. This takes a lot of time.

I don't understand what you mean with the WPML tables..

July 16, 2024 at 7:23 am #15958563

Dražen
Supporter

Languages: English (English )

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

Hello,

I mean WPML tables in your database, to check and make sure it is correct set.

Let me have a look, please share the steps to check the issue.

Please provide access to the staging website, not production.

Please note, that I might need to do some debugging procedures like enable/disable plugins, switch themes, change the default language of the user account, and/or access your website database to debug the issue furtherly.

I would need to access both your site's wp-admin and FTP account, if possible.

I have enabled the private username and password fields in your next reply.

You can safely add your information into these fields.

Regards,
Drazen

July 16, 2024 at 9:38 am #15959493

remcoE-2

The issue only appears on the staging site. So I'll translate everything on the live website.