# Bug OP-18999 - Error 500 when trying to delete a work package with unit costs on a relative URL root

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-18999

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module | Modules and project features / Work packages, Modules and project features / Costs and budgets |
| Target versions | 17.4.0 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### 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.  Login and go to work packages
    
2.  delete a work package with unit costs attached to it
    

### What is the buggy behavior?

_Please describe the bug in as much detail as possible. Example:_

*   Error 500 pops up saying: An error occurred on the page you were trying to access.
    

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/919546/content">

### What is the expected behavior?

_Describe how the application should behave like. Example:_

1.  Red DELETE THE WORK PACKAGE - Menu should open up and lets delete the work package if intended
    

<img class="image_resized op-uc-image op-uc-image_inline" style="width:403px;" src="/api/v3/attachments/919545/content">

### **Logs &amp;** Screenshots and other files

_<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/919543/content">_

### Environment information

For your information: the /var/log/openproject folder is empty

**OpenProject installation type**

*   Hosted cloud edition
    
*   Packaged installation
    

**OpenProject version**

_17.1.2_

**Browser**

*   [ ] Chrome
*   [ ] Safari
