Content
Updated by Wieland Lindenthal about 1 month ago
### Steps to reproduce
_Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:_
1. Open Time and Costs section, and try to make a Time and Cost report
2. Click Apply
### What is the buggy behavior?
On _On top of the screen there is err: "There was an error handling the query" query"_
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/307311/content">
### What is the expected behavior?
This _This should work - it's actually urgent for us, we cannot send invoices without this hourly reports. reports._
### **Logs**
```text
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: I, [2025-02-03T15:49:56.723427 #3449102] INFO -- : [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab] method=POST path=/projects/goopti/cost_reports/134 format=*/* controller=CostReportsController action=update status=500 allocations=5091 duration=22.27 view=0.00 db=9.46 user=8
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: F, [2025-02-03T15:49:56.725639 #3449102] FATAL -- : [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab]
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab] NoMethodError (undefined method `migrate' for nil):
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab]
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab] modules/reporting/app/controllers/cost_reports_controller.rb:180:in `update'
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: E, [2025-02-03T15:49:56.745263 #3449102] ERROR -- : [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab] user=8 undefined method `migrate' for nil: undefined method `migrate' for nil
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: I, [2025-02-03T15:49:56.752361 #3449102] INFO -- : [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab] method=GET path=/500 format=*/* controller=ErrorsController action=internal_error status=500 allocations=27575 duration=24.83 view=4.97 db=4.11 user=8
```
### Screenshots and other files
_<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/307312/content">_
### Environment information
_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_
**OpenProject installation type**
* Self hosted
* Packaged installation
* Ubuntu 20
**OpenProject version**
_v15.2.0_
**Browser**
* [x] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
<br>
<br>
2. Click Apply
### What is the buggy behavior?
On
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/307311/content">
### What is the expected behavior?
This
### **Logs**
```text
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: I, [2025-02-03T15:49:56.723427 #3449102] INFO -- : [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab] method=POST path=/projects/goopti/cost_reports/134 format=*/* controller=CostReportsController action=update status=500 allocations=5091 duration=22.27 view=0.00 db=9.46 user=8
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: F, [2025-02-03T15:49:56.725639 #3449102] FATAL -- : [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab]
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab] NoMethodError (undefined method `migrate' for nil):
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab]
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab] modules/reporting/app/controllers/cost_reports_controller.rb:180:in `update'
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: E, [2025-02-03T15:49:56.745263 #3449102] ERROR -- : [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab] user=8 undefined method `migrate' for nil: undefined method `migrate' for nil
Feb 03 15:49:56 coyote openproject-web-1.service[3449102]: I, [2025-02-03T15:49:56.752361 #3449102] INFO -- : [dd1d3a9e-735e-41b2-8a39-1f6a2176e7ab] method=GET path=/500 format=*/* controller=ErrorsController action=internal_error status=500 allocations=27575 duration=24.83 view=4.97 db=4.11 user=8
```
### Screenshots and other files
_<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/307312/content">_
### Environment information
_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_
**OpenProject installation type**
* Self hosted
* Packaged installation
* Ubuntu 20
**OpenProject version**
_v15.2.0_
**Browser**
* [x] Chrome
* [ ] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
<br>
<br>