redmine_harvest icon indicating copy to clipboard operation
redmine_harvest copied to clipboard

Template erro causing 500 errors even when Harvest Plugin is deactivated

Open newism opened this issue 15 years ago • 7 comments

Hi Bill,

I am having some issues with the Harvest plugin. It was working fine and then I restarted my server. The error logs show the following: http://pastie.org/721192

Any insight would be great.

I'm running:

Rails 2.3.4 Harvester 0.0.1 Passenger 2.2.7 Redmine 0.8.7.stable

Kind regards

newism avatar Dec 01 '09 01:12 newism

I'm also getting this template rendering issue on the Hrvest module tab: http://pastie.org/721218

newism avatar Dec 01 '09 01:12 newism

Strange that it would stop working after a server restart. I am unable to replicate this issue after several restarts.

The "l_hours" method is on line 29 of lib/redmine/i18n.rb and included on line 22 of application_controller.rb. Not sure why this would be undefined.

Let me know if you stumble across any other clues.

mully avatar Dec 01 '09 01:12 mully

Ok looks like we are puling from the 0.8-stable branch of Github. Unfortunatley the lib/redmine/i18n.rb file has not been added to the branch:

http://github.com/edavis10/redmine/tree/0.8-stable/lib/redmine/

newism avatar Dec 01 '09 02:12 newism

The version for the 0.8-stable branch is clearly marked: http://github.com/edavis10/redmine/blob/master/lib/redmine/version.rb

newism avatar Dec 01 '09 02:12 newism

Good catch on the branch. I noticed that file does not exist on the 0.8.7 tag either which I thought I was using, but apparently that is not the case.

So it looks like it may work if you substituted this

l_hours(harvest_time)

with this

lwr(:label_f_hour, harvest_time)

Any idea how this could have worked for you prior to restarting your server?

mully avatar Dec 01 '09 02:12 mully

Any idea how this could have worked for you prior to restarting your server?

Well I think I may have been switching between my local machine and the actual server. There is some weirdness going on but I'm not going to try and debug it until I can get a stable version of Redmine.

Which branch / version are you running inhouse?

newism avatar Dec 01 '09 02:12 newism

Hey Mully,

I just downloaded the official redmine-0.8.7.tar.gz release from http://rubyforge.org/frs/?group_id=1850 and here is still no lib/redmine/i18n.rb

Any ideas? I really would like to get your integration working.

Cheers

newism avatar Dec 09 '09 23:12 newism