Users are experiencing issues with translating a specific post from Spanish to English, encountering a popup error stating “The field Text must be a string or array type with a maximum length of ‘5000’.” tobiaseigen reported this issue, which was also replicable in a demo post. The error occurs due to the HTML code sent to the translation service exceeding the 5000 character limit, despite the markdown being within the limit. kris.kotlarek investigated the issue and suggests using Google’s translation service, which has higher limits, but notes that it may be more expensive. tobiaseigen appreciates the resolution and suggests making the error message more user-friendly.
Folks are reporting issues with translating one particular post from spanish into english - when they select the translate button, an error pops up. On latest. Also in safe mode with theme and unofficial plugins disabled. The post only has about 3000 characters so under the limit. Works fine with other posts.
Is that post publicly available? Could you send me a link?
I generated myself random Spanish text with 4000 characters, added image and it was translated correctly, so there must be something specific in your case.
I would like to copy the content to reproduce it on my machine
Hi Kris! Thanks for looking into this issue. I see. I had thought it was a bug because the markdown is about 3000 characters, well below the limit. But the plugin sends the baked html which ends up being larger than the limit. Makes sense.
It would be nice if the error were a bit more human friendly, but this situation is rare. Thanks for helping resolve it.