The following error is returned when trying to translate one of my pages.
An illegal choice has been detected. Please contact the site administrator.
At this point, the regular translator role cannot finish the translation, even if:
- All the content is unchanged and simply marked as translated
- All the content is removed to avoid any potential syntax or parsing errors
The translator also cannot choose the option to stop being the translator for the document at this point (the same error message is displayed).
I was able to translate the document as an admin (with the translator role). Presumably it could be a permissions issue, but I've been able to translate all other pages of this same content type without problems. I tried running update.php to see if it was a database issue, but no luck.
Obviously that's not a very helpful error message. I wish I could offer up more of a detailed explanation for you to go on, but I thought I'd file the bug in the event anyone else experienced a similar problem and potentially had some more information to go along with it.
Comments
Comment #1
brucepearson commentedAt what point did this error occur? Was it when the translator tried to save the translation or at some other point.
Was there anything different about this node? Maybe CCK or something else?
Comment #2
jozik commentedCan you see what is watchdog's entry for this error ('watchdog' table)?
Type should be 'form'.
Comment #3
Anonymous (not verified) commentedThe error occurs when the translator attempts to save. It also occurs when the user attempts to stop being the translator. There's nothing different about this node that I know of. It's basically a standard page with a title and body that are being translated. All other nodes of this type haven't exhibited the same issue. Not helpful, I know.
Below is the output from the watchdog entry. It's pretty generic as well. What was interesting is that there are two duplicate entries for every save attempt. Don't know if that's significant or not.
Comment #4
jozik commentedCan you see what is format for fields in that node (*edit: nid isn't 5 - it's rid)?
It's in table 'node_revisions', column 'format'.
Comment #5
Anonymous (not verified) commentedThe untranslated node format is mostly 1. A few revisions have a format of 2.
Comment #6
icanlocalize commentedkovalchik, would you like to create a temporary account for us on your site? Then, jozik can see the problem and have a better idea of where it's coming from.
We would need a translator account, which allows simulating the error.
Comment #7
jozik commentedAlthough this don't throw error on our tests,
can you set permission for translator:
filter module -> administer filters
and see if this error appear again?
tnx
Comment #8
Anonymous (not verified) commentedThe administrator filter setting fixed the issue. Is that because some text was possibly causing issues? If so, deleting all text in the translation in an effort to reduce any HTML issues did not help the issue previously which seems odd.
Comment #9
icanlocalize commentedI'm closing this. If we get a similar error again, please reopen and tell how it's happening.
Comment #10
SamiSalami commentedHello :)
I'm getting the same error message as an administrator trying to set the translation sets for my menus with Drupal 7.
The translation preferences for my menu are set to: "Translate and Localize. Items with language will allow translations. Items without language will be localized."
I have added two menu items (one in english, one in german) and tried via the translation tab to combine them to one set. When the changes are about to be saved the error message appears.
I have also splitted the items in two menus and tried that without success - the same error appears.
I tried this as an administrator and checked under permissions that all rights are given.
It could be my own problem, it's the first time I am doing a multilanguage page - but I have read as much as I found and I am pretty sure, that I am configuring it the right way.
Because this error message is so damn blurred I really don't know where to look.
Kind regards,
Sami
Comment #11
timfarley commentedI'm having the same error - not sure if this is place to document it as the original problem is marked as fixed and is for D6, but here's a brief description of the problem I'm encountering:
I have the i18n module and Variable modules activating, and am creating a bilingual (Eng, Spanish) site. The error seems specifically tied to menu translations, as I'm not having any problems translating page content. I have been unsuccessful in creating a translation for a menu, and have read of others with similar problems, but now it has gone one step further and is giving me this non-descript error.
I'm trying to add a new link to one of my menus, as a child of one of the root links, and whenever I try to save I see this error. If I approach from the menu management page (Admin > Structure > Menus) and try to add a link, I get this error. If I try to go from the content side (Content > Edit) and try to "Add menu link" I don't even see the menu in the list. Not sure if my issues is related.
UPDATE: Seems to have something to do with the weight of the menu item as well. I tried with weight set to 0 and didn't have the problem (originally I was setting it at -50).
Comment #12
miro_dietikerCurrently we're reimplementing this module from scratch in our codesprint:
http://drupalevents.ch/drupal/codesprint-2012
Thus all current bug reports and feature requests are dropped. Please recheck once the the sprint is completed.