プロジェクト

全般

プロフィール

Vote #67112

完了

Translation missing when adding invalid watchers

Admin Redmine さんがほぼ4年前に追加. ほぼ4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Translations_12
対象バージョン:
開始日:
2010/04/22
期日:
進捗率:

0%

予定工数:
category_id:
12
version_id:
27
issue_org_id:
5373
author_id:
3301
assigned_to_id:
0
comments:
20
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
17
ステータス-->[Closed]

説明

When trying to create a new issues if you have more then one watcher assigned to the issue I get an error "translation missing: en, field_watcher_users is invalid"

Rails 2.3.5
Ruby 1.8.7


journals

--------------------------------------------------------------------------------
This might be part of translations but it is a bug as well - It will not allow me to add more then one watcher. Yes the error message shows the code but the logic itself is not working
--------------------------------------------------------------------------------
It seems like it is just one user in the project. My appologies.
--------------------------------------------------------------------------------
Mmh, that's odd… Please provide the information listed in [[SubmittingBugs]] (especially the output of @RAILS_ENV=production ruby script/about@) and see if there is some meaningful error trace in the logs. We need to be able to reproduce this to help.
--------------------------------------------------------------------------------
I have run in to this behavior when the user set as a watcher was somehow invalid. The acts_as_watchable plugin does its own validity checking on the user above and beyond what Redmine does. Check over the user that is giving you the error and see if there is something not quite right about them.
--------------------------------------------------------------------------------
Bonsoir,

Ce problème se produit si l'un des observateur partage la même adresse mail avec d'autres utilisateurs (ce qui était possible dans d'anciennes versions).
En modifiant les adresses mails, plus de problèmes.

Cdlt
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
The above comment is correct... this happens when two users have the same email address for some reason. My issue #6094 is a duplicate and I'll copy that issue report here:

h4. Issue 6094

I came across the following error whenever someone would create an issue with me as a watcher:

translation missing: en, field_watcher_users is invalid
It did not do the same for anyone else. And, I could be added as a watcher to an issue later.

I figured out the problem, and hopefully this will be a helpful hint if someone comes across this rare error. It turns out that my email address was in use by both my account and the "Administrator". So, I changed one of the email addresses and it started working correctly.

The current release does not allow this to even happen, but I assume I set this up in a prior release, or by manually editing the database. In either case, most people shouldn't come across the issue and I don't know if this is something worth looking into fixing.
--------------------------------------------------------------------------------
Watchers seem to be invalid, if their personal settings are corrupted.

After migrating a 1.1.0 installation from one PC to a server with copying the database with a mysql dump, the settings for the users seemed to be corrupted.

One Error was the "missing translation" second error was "field_watcher_users is invalid" and third error was wne changing password "mail_notification" error.

After setting all the preferences via Control panel for the users, all of the errors disappeared.
--------------------------------------------------------------------------------
I have the same problem, what do you mind with setting all preferences via Control Panel ?

(enter in my account change something and save ?

Thanks

--------------------------------------------------------------------------------
Probably using Administration -> Settings -> Users and loading/saving preferences of each user.
--------------------------------------------------------------------------------
We had the same issue, after we upgrade from 1.0.2 to 1.1.2 stable.

I went thru all users, opened their config page on the administration settings page and just saved the current config. after this the issue is gone.

Probably some database upgrade is missing, but no errors showed up during the upgrade.

Best,
jp
--------------------------------------------------------------------------------
If someone could compare the contents of @users@ table between "before" and "after" update states, that would be of a great help.

E.g., export data to csv and use a diff tool ?
--------------------------------------------------------------------------------
In my case, I was unable to change any value of the user, because I was getting a message upon save that the login was already taken. Looking through the database, I found two users with the same name, different capitalization. Deleting one of the users has allowed me to save the record again and fix the issue. How was the second user allowed to be created?

I did dump the user table before and after, but doing a diff between them does not seem to show useful information, as the entire list of users in the database is all on one line.

Let me know if I can provide more information.
--------------------------------------------------------------------------------
It could have been created by email if you use issue creation via email ?
--------------------------------------------------------------------------------
I have solved it adding to my language file (es.yml), this text:
field_watcher_users: Seguidores

In my Language files (es.yml, en.yml, etc), redmine 1.1.2 version, dont exists line with: field_watcher_users :S

I tried open and save user, and it dont work.

Regards!
--------------------------------------------------------------------------------
Jens Peter Kempkes wrote:
> We had the same issue, after we upgrade from 1.0.2 to 1.1.2 stable.
>
> I went thru all users, opened their config page on the administration settings page and just saved the current config. after this the issue is gone.
>
> Probably some database upgrade is missing, but no errors showed up during the upgrade.
>
> Best,
> jp

I did the same and the error is gone

--------------------------------------------------------------------------------
Fixed in r5880, this error message should no longer occur.
--------------------------------------------------------------------------------
Why is that issue sill not closed?
--------------------------------------------------------------------------------
Terence Mill wrote:
> Why is that issue sill not closed?

Because fix was not merged into 1.2-stable branch. Done in r5945.
--------------------------------------------------------------------------------


related_issues

relates,Closed,8076,Watchers list issue
duplicates,Closed,6094,translation missing: en, field_watcher_users is invalid

Admin Redmine さんがほぼ4年前に更新

  • カテゴリTranslations_12 にセット
  • 対象バージョン1.2.0_27 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0