Closed camilonova closed 12 years ago
Hi Camilo!
thanks for your feedback. Could you tell me what redmine version are you using?
Regards!
Redmine 1.2.1.stable (PostgreSQL)
Thanks
I was able to reproduce the exception by deleting the facts table registers. Could you check if 'chuck_norris_facts' table contains any row? Also, I've just commited a fix to avoid the exception when no fact is found.
Thanks, that solves the problem, how can i get the facts?
If you followed the installation notes on README.rdoc, the database migration step should have created the table chuck_norris_facts for you. Please, verify this table exists on your redmine database, and that it contains one or more row.
Yes i have done all the steps, this is the output of the command:
Migrating redmine_chuck_norris...
== CreateChuckNorrisFacts: migrating =========================================
-- create_table(:chuck_norris_facts)
NOTICE: CREATE TABLE will create implicit sequence "chuck_norris_facts_id_seq" for serial column "chuck_norris_facts.id"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "chuck_norris_facts_pkey" for table "chuck_norris_facts"
-> 0.3577s
== CreateChuckNorrisFacts: migrated (14.2185s) ===============================
== TranslateChuckNorrisFacts: migrating ======================================
-- add_column(:chuck_norris_facts, :lang, :string, {:default=>"en"})
-> 0.0015s
== TranslateChuckNorrisFacts: migrated (1.9454s) =============================
There is data in the table chuck_norris_facts but it doesnt show in the page, and no errors are given in the log
I still can't reproduce the issue. Please, check also this:
I'll keep trying to reproduce the problem in my own redmine, and keep you informed.
Regards!
Thanks, i just look at the table and they has data, but the column lang was empty, so you should give a look at the content loading when setting the language in every row.
redmine=> select * from chuck_norris_facts limit 1;
id | description | lang
----+--------------------------------------------+------
1 | Guns don't kill people, Chuck Norris does. |
(1 row)
I have done an sql update for all rows in the table and now it works ok, what i do was:
redmine=> update chuck_norris_facts set lang = 'en';
UPDATE 7354
and now i have:
redmine=> select * from chuck_norris_facts where id = 1;
id | description | lang
----+--------------------------------------------+------
1 | Guns don't kill people, Chuck Norris does. | en
(1 row)
Got similar problem on Postgres. Spanish quotes are loaded with lang set to 'es' and a lot of spaces. English quotes are loaded with a lot of spaces as lang key.
Thanks for your feedback byteborg. It seems an encoding issue, could you tell me what OS are you using?
Regards!
Just installed postgres and I'm getting the same issue indeed. I'll keep you informed as soon as I fix it. Thanks again for your interest and sorry for the inconveniences.
Regards!
I've uploaded a new version that fixes the problem. I'd appreciate it if you could uninstall the plugin and reinstall, and confirm me if everything's ok already.
Thanks!
Thanks for the fast response. It happens to work now. Neat stuff! Chuck Norris is living in our tracker ;-)
Thank you for helping us to improve the plugin. Enjoy!
Hi i have this problem: