Skip Navigation

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

Problem:
You are trying to send items for translation using Translation Manager with Crowdin as your translation service. After selecting items and adding them to the Translation Basket, you attempt to send them for translation. However, you receive a 'Rollback jobs... Batch rolled back' message.
Solution:
First, ensure that the language you are trying to send to Crowdin is properly set up within Crowdin. In this case, the issue was that Spanish was not configured in Crowdin, causing WPML to fail the transmission. If you're experiencing this, we recommend checking the language setup in your Crowdin account.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, please visit our known issues page and verify the version of the permanent fix. Ensure you have installed the latest versions of themes and plugins. If problems persist, we highly recommend opening a new support ticket for personalized assistance. You can do so here: 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.

This topic contains 9 replies, has 1 voice.

Last updated by christosI-2 2 weeks, 3 days ago.

Assisted by: Andreas W..

Author Posts
January 21, 2025 at 1:28 pm #16617241

christosI-2

Background of the issue:
I am trying to send some items for translation with Translation Manager using Crowdin as my translation service. I selected the items I want and then added them to the Translation Basket. Then, in Translation Basket, I give the batch a 'Batch name' and then select 'Send all items for translation'. After a few seconds, I get a 'Rollback jobs... Batch rolled back' message. The issue can be seen at: hidden link

Symptoms:
I received a 'Rollback jobs... Batch rolled back' message, and in DevTools, the Network tab shows the request preview with

data: "item should be a Collection or an array or an object", success: false

.

Questions:
Why is the translation job rolling back?
What does the error message 'item should be a Collection or an array or an object' mean?

January 23, 2025 at 8:23 am #16626051

christosI-2

Hi there,

This is super urgent, as we need to translate a lot of things in order to go live with a new language.
Please help us as soon as possible.

January 24, 2025 at 3:34 pm #16632008

Andreas W.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Hello,

Could you please test if you get the same error when trying to send the job to a local translator?

This way we could rule out that the issue is related to the translation service.

Do you maybe have a staging site available on which the issue occurs, so that we can use it for testing?

In case not, I can offer to privately request admin access to the site and create a local copy for debugging.

Best regards
Andreas

January 27, 2025 at 8:03 am #16636037

christosI-2

Hi Andreas,

I chose "First Available" in the Translator list and it worked.

The weird thing is that, for our other website,

china.stage.amar-tech.com

, sending jobs to Crowdin works normally.

Do you have any idea what the message I get means?

data: "item should be a Collection or an array or an object", success: false

We do have a dev environment for all our websites.
if you want, i can give you access there.

Screenshot 2025-01-27 100023.png
Screenshot 2025-01-27 095548.png
January 27, 2025 at 2:07 pm #16638277

christosI-2

Is there a way to talk through live chat? As this is super urgent and we need to get it resolved as soon as possible

January 28, 2025 at 9:04 am #16640412

Andreas W.
Supporter

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

Timezone: America/Lima (GMT-05:00)

My apologies for the delay in answering, as I do not work on Mondays.

I am not able to open a chat for you, but you are free to open a chat anytime.

According to the error, I suspect an issue related to a specific content.

Were you able to narrow down which job exactly is triggering the issue and test then send the same job to a local translator?

Video:
hidden link

I would like to offer to take a closer look and request temporary access (wp-admin and FTP) to the site to investigate the issue further.

The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.

IMPORTANT
Please be sure to back up the site and database before granting us access.

If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.

If you are not able to provide such a copy of the website for testing, please let me know on this ticket.

The private reply form looks like this:
hidden link

The next time you reply, click on "I still need assistance".

January 28, 2025 at 5:49 pm #16643544

christosI-2

Our code lives in GitHub. Do you want to give me an email to make you an outside collaborator?

January 28, 2025 at 6:01 pm #16643550

Andreas W.
Supporter

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

Timezone: America/Lima (GMT-05:00)

Could you please confirm if you were able to identify the job that is triggering the error? If so, can you also confirm if this job only triggers and error if sent to the professional translation service?

I am asking, as I suspect an issue that is related to a specific content and that it is not related to the translation service.

The translation jobs and content are not part of Github.

To investigate the issue I do not have access as an admin to the website or even better to a staging site on which I can test without affecting the live site.

January 29, 2025 at 8:46 am #16644955

christosI-2

All jobs fail, regardless of how many items are in the basket, and they only fail when sent to Crowdin. Sending them to a local translator doesn't trigger the error.

You are probably right, it might be content related.
As I mentioned in my previous replies, in our other website, the jobs are being sent to Crowdin normally. Our issue is that the error message is not clear enough to figure out WHY this is happening and WHAT is at fault, in order to fix it.

I can give you access to a dev environment so you can test it out yourself. I'll give you the information in my next reply.

January 29, 2025 at 9:08 am #16645104

christosI-2

It seems I don't have the option to give you our website's information. Please enable us the option to provide you with the credentials so you can login into our dev website.

January 29, 2025 at 10:12 am #16645494

christosI-2

False alarm!!

The issue was that the language i was trying to send to Crowdin (Spanish) was not setup within Crowdin, so WPML was failing.

Thank you for your time, and i hope this helps someone else in the future.