GithubHelp home page GithubHelp logo

Comments (14)

zuinqstudio avatar zuinqstudio commented on July 2, 2024

Hi Camilo!

thanks for your feedback. Could you tell me what redmine version are you using?

Regards!

from redmine_chuck_norris.

camilonova avatar camilonova commented on July 2, 2024

Redmine 1.2.1.stable (PostgreSQL)

Thanks

from redmine_chuck_norris.

zuinqstudio avatar zuinqstudio commented on July 2, 2024

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.

from redmine_chuck_norris.

camilonova avatar camilonova commented on July 2, 2024

Thanks, that solves the problem, how can i get the facts?

from redmine_chuck_norris.

zuinqstudio avatar zuinqstudio commented on July 2, 2024

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.

from redmine_chuck_norris.

camilonova avatar camilonova commented on July 2, 2024

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

from redmine_chuck_norris.

zuinqstudio avatar zuinqstudio commented on July 2, 2024

I still can't reproduce the issue. Please, check also this:

  • Verify that the facts table has rows in english and spanish (column lang equals to 'en' and 'es')
  • Try to force a fact reloading. Once you enter on the project overview, click the 'Next fact' link.

I'll keep trying to reproduce the problem in my own redmine, and keep you informed.

Regards!

from redmine_chuck_norris.

camilonova avatar camilonova commented on July 2, 2024

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)

from redmine_chuck_norris.

byteborg avatar byteborg commented on July 2, 2024

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.

from redmine_chuck_norris.

zuinqstudio avatar zuinqstudio commented on July 2, 2024

Thanks for your feedback byteborg. It seems an encoding issue, could you tell me what OS are you using?

Regards!

from redmine_chuck_norris.

zuinqstudio avatar zuinqstudio commented on July 2, 2024

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!

from redmine_chuck_norris.

zuinqstudio avatar zuinqstudio commented on July 2, 2024

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!

from redmine_chuck_norris.

byteborg avatar byteborg commented on July 2, 2024

Thanks for the fast response. It happens to work now. Neat stuff! Chuck Norris is living in our tracker ;-)

from redmine_chuck_norris.

zuinqstudio avatar zuinqstudio commented on July 2, 2024

Thank you for helping us to improve the plugin. Enjoy!

from redmine_chuck_norris.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.