Project

General

Profile

Error #247

Undefined method: rest_hours

Added by Hamed Fallahnia about 14 years ago. Updated over 13 years ago.

Status:
Resolved
Priority:
Normal
Category:
General
Target version:
Start date:
2010-02-05
Due date:
2010-08-23
% Done:

100%

Estimated time:
Source:
Detected on version:
Redmine version:
Milestones:

Description

I have upgraded my redmine to 0.9 (trunk revision 3369). The Advance Roadmap plugin --version 0.6 which says "compatible with 0.9"-- gives me this error:

ActionView::TemplateError (undefined method `rest_hours' for #<Issue:0x9e54f6c>)

All the db:migrate stuff have been done properly. Could you please take a look into this? Thanks.

#1

Updated by Hamed Fallahnia about 14 years ago

I forgot to add that this error happens in pages like issues/1234

#2

Updated by Emilio González Montaña about 14 years ago

Which environment do you use? I have detected the same problem but only in the development environment, switch to production one solves the problem.

In the development environment the first request after reseting the redmine works, but then all the requests are wrong, it's like of the plugin patchs are not well applied in development environment.

#3

Updated by Hamed Fallahnia about 14 years ago

I am using the production environment!

#4

Updated by Emilio González Montaña about 14 years ago

  • Target version set to Advanced roadmap 0.1.0
#5

Updated by Hamed Fallahnia about 14 years ago

I could finally found the source of problem!
I have budget_plugin in my redmine and apparently that plugin and yours have some conflicts!! One cannot enable both of them.

#6

Updated by Amélie Husson about 14 years ago

I'm getting the same error on production environment with Redmine 0.9.2.devel.3483 (MySQL)
Here is the list of my installed plugins:
- Advanced roadmap plugin
- Customer plugin
- Redmine Schedules plugin
- Redmine Scrum Sprints plugin
- Redmine Todo Lists plugin

(yeah I know that some plugins are quite the same, I'm currently testing which one I prefer :) )

#7

Updated by Emilio González Montaña over 13 years ago

I get the same error in development environment, but not in production, I've spent a lot of hours trying to solve this bug, but it seems to be a inclusion rails problem, because if there was something wrong in my plugin, it won't work on production environment, will it? Ideas are welcomed.

#8

Updated by Emilio González Montaña over 13 years ago

  • Due date set to 2010-08-23
  • Status changed from New to Resolved
  • % Done changed from 0 to 100
#9

Updated by Emilio González Montaña over 13 years ago

  • Subject changed from undefined method: rest_hours to Undefined method: rest_hours
#11

Updated by Slava Karg over 13 years ago

Hi! I have been working with 1.0.1 Redmine and 0.0.6 advanced_roadmap without any error once I installed 0.1.0 advanced_roadmap. Such errors begun: i cant enter any issue - 500 error appears and such messages are written in logs "ActionView::TemplateError (undefined method `rest_hours' for #<Issue:0xb6bfe710>) on line #45 of vendor/plugins/advanced_roadmap/app/views/issues/show.rhtml: ..." and "ActionView::TemplateError (undefined method `rest_hours' for #<Issue:0xb6a18d74>) on line #21 of vendor/plugins/advanced_roadmap/app/views/projects/roadmap.rhtml: ..."

but when i came back to 0.0.6 - problem resolved.

Also available in: Atom PDF