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.

Our next available supporter will start replying to tickets in about 3.80 hours from now. Thank you for your understanding.

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

This topic contains 9 replies, has 2 voices.

Last updated by Carlos Rojas 1 year ago.

Assigned support staff: Carlos Rojas.

Author Posts
October 1, 2018 at 8:52 pm #2779479

Dan

I am still getting the error "(12) Invalid state 'translating' to complete operation" that I mentioned in this thread:

https://wpml.org/forums/topic/error-12-invalid-state-translating-to-complete-operation/

Unfortunately, I was traveling last week with limited access to email and so did not see that that ticket was being closed as "Resolved".

We did perform the action requested:
-----
- Add this code to the wp-config.php file:

define( 'ICL_DISABLE_CACHE', true );
-----

and that *seemed* to solve the issue. I was able to send multiple posts over to TranslateMedia for translation. However, today when I went to send some more over, I got this error 12. The communication log has this:

-------
"batch":{"id":19485},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":330179,"cms_id":"page_87800_en_es","job_state":"waiting_translation","source_language":"en","target_language":"es","batch":{"id":19485},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":330222,"cms_id":"post_87181_en_fr","job_state":"delivered","source_language":"en","target_language":"fr","batch":{"id":19490},"archived":false,"translation_revision":1,"external_state":null,"external_link":null},{"id":330223,"cms_id":"post_87181_en_es","job_state":"delivered","source_language":"en","target_language":"es","batch":{"id":19490},"archived":false,"translation_revision":1,"external_state":null,"external_link":null},{"id":330493,"cms_id":"post_87211_en_fr","job_state":"waiting_translation","source_language":"en","target_language":"fr","batch":{"id":19519},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":330494,"cms_id":"post_87211_en_es","job_state":"waiting_translation","source_language":"en","target_language":"es","batch":{"id":19519},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331816,"cms_id":"post_87852_en_fr","job_state":"cancelled","source_language":"en","target_language":"fr","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331817,"cms_id":"post_87852_en_es","job_state":"cancelled","source_language":"en","target_language":"es","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331818,"cms_id":"post_87934_en_fr","job_state":"cancelled","source_language":"en","target_language":"fr","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331819,"cms_id":"post_87934_en_es","job_state":"cancelled","source_language":"en","target_language":"es","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null}]
}
10/01/2018 08:36:24 pm - call - hidden link - {"project_id":7690,"accesskey":"UNDISCLOSED","state":"any","api_version":1.100000000000000088817841970012523233890533447265625}
10/01/2018 08:36:24 pm - response - {
"status": {
"code": 0,
"message": "success!",
"debug": ""
},

"response": [{"id":330178,"cms_id":"page_87800_en_fr","job_state":"waiting_translation","source_language":"en","target_language":"fr","batch":{"id":19485},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":330179,"cms_id":"page_87800_en_es","job_state":"waiting_translation","source_language":"en","target_language":"es","batch":{"id":19485},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":330222,"cms_id":"post_87181_en_fr","job_state":"delivered","source_language":"en","target_language":"fr","batch":{"id":19490},"archived":false,"translation_revision":1,"external_state":null,"external_link":null},{"id":330223,"cms_id":"post_87181_en_es","job_state":"delivered","source_language":"en","target_language":"es","batch":{"id":19490},"archived":false,"translation_revision":1,"external_state":null,"external_link":null},{"id":330493,"cms_id":"post_87211_en_fr","job_state":"waiting_translation","source_language":"en","target_language":"fr","batch":{"id":19519},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":330494,"cms_id":"post_87211_en_es","job_state":"waiting_translation","source_language":"en","target_language":"es","batch":{"id":19519},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331816,"cms_id":"post_87852_en_fr","job_state":"cancelled","source_language":"en","target_language":"fr","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331817,"cms_id":"post_87852_en_es","job_state":"cancelled","source_language":"en","target_language":"es","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331818,"cms_id":"post_87934_en_fr","job_state":"cancelled","source_language":"en","target_language":"fr","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331819,"cms_id":"post_87934_en_es","job_state":"cancelled","source_language":"en","target_language":"es","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null}]
}
10/01/2018 08:36:45 pm - call - hidden link - {"project_id":7690,"accesskey":"UNDISCLOSED","state":"any","api_version":1.100000000000000088817841970012523233890533447265625}
10/01/2018 08:36:46 pm - response - {
"status": {
"code": 0,
"message": "success!",
"debug": ""
},

"response": [{"id":330178,"cms_id":"page_87800_en_fr","job_state":"waiting_translation","source_language":"en","target_language":"fr","batch":{"id":19485},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":330179,"cms_id":"page_87800_en_es","job_state":"waiting_translation","source_language":"en","target_language":"es","batch":{"id":19485},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":330222,"cms_id":"post_87181_en_fr","job_state":"delivered","source_language":"en","target_language":"fr","batch":{"id":19490},"archived":false,"translation_revision":1,"external_state":null,"external_link":null},{"id":330223,"cms_id":"post_87181_en_es","job_state":"delivered","source_language":"en","target_language":"es","batch":{"id":19490},"archived":false,"translation_revision":1,"external_state":null,"external_link":null},{"id":330493,"cms_id":"post_87211_en_fr","job_state":"waiting_translation","source_language":"en","target_language":"fr","batch":{"id":19519},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":330494,"cms_id":"post_87211_en_es","job_state":"waiting_translation","source_language":"en","target_language":"es","batch":{"id":19519},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331816,"cms_id":"post_87852_en_fr","job_state":"cancelled","source_language":"en","target_language":"fr","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331817,"cms_id":"post_87852_en_es","job_state":"cancelled","source_language":"en","target_language":"es","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331818,"cms_id":"post_87934_en_fr","job_state":"cancelled","source_language":"en","target_language":"fr","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null},{"id":331819,"cms_id":"post_87934_en_es","job_state":"cancelled","source_language":"en","target_language":"es","batch":{"id":19605},"archived":false,"translation_revision":0,"external_state":null,"external_link":null}]
}
10/01/2018 08:36:55 pm - call - hidden link - {"api_version":1.100000000000000088817841970012523233890533447265625,"batch_id":19605,"job":{"file":"UNDISCLOSED","word_count":606,"title":"Gender Equality: A Mouse Click Away","cms_id":"post_87934_en_fr","udid":"61363337-3966-5634-b332-353833343666","url":"https:\/\/www.internetsociety.org\/blog\/2018\/10\/gender-equality-a-mouse-click-away\/","translator_id":0,"note":"","source_language":"en","target_language":"fr"},"accesskey":"UNDISCLOSED"}
10/01/2018 08:36:57 pm - response - {"status":{"code":31,"message":"The job with given cms_id already exists in this batch","debug":""},"response":null}
10/01/2018 08:36:57 pm - error - (31) The job with given cms_id already exists in this batch
10/01/2018 08:36:57 pm - call - hidden link - {"api_version":1.100000000000000088817841970012523233890533447265625,"batch_id":19605,"job":{"file":"UNDISCLOSED","word_count":606,"title":"Gender Equality: A Mouse Click Away","cms_id":"post_87934_en_es","udid":"39346165-3634-5335-b930-303062633364","url":"https:\/\/www.internetsociety.org\/blog\/2018\/10\/gender-equality-a-mouse-click-away\/","translator_id":0,"note":"","source_language":"en","target_language":"es"},"accesskey":"UNDISCLOSED"}
10/01/2018 08:36:58 pm - response - {"status":{"code":31,"message":"The job with given cms_id already exists in this batch","debug":""},"response":null}
10/01/2018 08:36:58 pm - error - (31) The job with given cms_id already exists in this batch
10/01/2018 08:36:59 pm - call - hidden link - {"api_version":1.100000000000000088817841970012523233890533447265625,"batch_id":19605,"job":{"file":"UNDISCLOSED","word_count":385,"title":"The Facebook Breach: Some Lessons for the Internet","cms_id":"post_87949_en_fr","udid":"33363663-6465-5631-b631-393738376638","url":"https:\/\/www.internetsociety.org\/blog\/2018\/10\/the-facebook-breach-some-lessons-for-the-internet\/","translator_id":0,"note":"","source_language":"en","target_language":"fr"},"accesskey":"UNDISCLOSED"}
10/01/2018 08:37:00 pm - response - {
"status": {
"code": 0,
"message": "success!",
"debug": ""
},

"response": {"job":{"id":331820}}
}
10/01/2018 08:37:02 pm - call - hidden link - {"api_version":1.100000000000000088817841970012523233890533447265625,"project_id":7690,"accesskey":"UNDISCLOSED","batch_id":19605}
10/01/2018 08:37:02 pm - response - {"status":{"code":12,"message":"Invalid state 'translating' to complete operation","debug":""},"response":null}
10/01/2018 08:37:02 pm - error - (12) Invalid state 'translating' to complete operation

-------

October 1, 2018 at 9:22 pm #2779539

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi,

Could you tell me if the issue persists with a different post?

Regards,
Carlos

October 1, 2018 at 9:32 pm #2779546

Dan

Carlos,

Glad to have your help again! Yes, it still is an issue with other posts. I went in and tried sending some posts that had never been sent for translation - and I was still getting this error.

I do have an update - it turned out that "define( 'ICL_DISABLE_CACHE', true );" was entered into wp-config.php but was overwritten by a subsequent update via git. Our developers re-entered the line (and also put it into the git repo so it won't be overwritten). They then re-started nginx and purged various caches.

But still, the error persists.

October 2, 2018 at 12:26 am #2779726

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi,
Thank you very much for your message.

I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Looking forward to your answer.
Best regards,
Carlos

October 3, 2018 at 3:32 pm #2785090

Dan

Carlos, As I mentioned in my other other open ticket, we're investigating whether caching is causing this issue. Part of what sent us down this path was that sending the translation basket seemed to the *first* time I would send it off, but then fail with this error (12) on subsequent times. However, the next day it seemed to work fine again for the first time, and start failing again.

When we turned the redis cache OFF, I was able to submit several translation baskets without getting this error (12). So this seems like it *might* be the solution. We're still investigating.

Dan

October 3, 2018 at 6:43 pm #2785486

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Dan,

Like I answer in the other ticket, please apply this fix and let me know if it solves the issue: https://wpml.org/forums/topic/att-george-botsev-issues-with-second-language-when-using-redis-object-cache/#post-1455026

Best regards,
Carlos

October 5, 2018 at 9:14 pm #2791707

Dan

Carlos,
As I noted in the other ticket, we think we may be closer to isolating an issue with Redis. I'll be able to give an update on Monday, October 8.
Thank you,
Dan

October 5, 2018 at 9:43 pm #2791749

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Dan,

I already answered in your other ticket.
Can we close this ticket already? This way we can continue in the other ticket.

Best regards,
Carlos

October 10, 2018 at 9:40 pm #2805892

Dan

Carlos,
Yes, we can close this ticket and continue the resolution over in this ticket:
https://wpml.org/forums/topic/difficulty-switching-to-see-posts-in-translation-management-panel/

At the moment we believe this was caused by an issue with a Redis server that is in front of our admin interface for our site. We'll update the other ticket with more info.

October 11, 2018 at 1:10 am #2806081

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Montevideo (GMT-03:00)

Hi Dan,

I'm closing this ticket.

Regards,
Carlos