Error #247
Undefined method: rest_hours
Added by Hamed Fallahnia almost 15 years ago.
Updated about 14 years ago.
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.
I forgot to add that this error happens in pages like issues/1234
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.
I am using the production environment!
- Target version set to Advanced roadmap 0.1.0
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.
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 :) )
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.
- Due date set to 2010-08-23
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Subject changed from undefined method: rest_hours to Undefined method: rest_hours
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