Hi.Events icon indicating copy to clipboard operation
Hi.Events copied to clipboard

🐛Error: 500 when Edit Capacity Assignment

Open kayaliabd opened this issue 7 months ago • 3 comments

Describe the bug

Error message 500 when try to edit Capacity Assignment: HiEvents\Services\Application\Handlers\CapacityAssignment\DeleteCapacityAssignmentHandler, because the name is already in use

To Reproduce Steps to reproduce the behavior:

  1. go to Capacity Assignment
  2. click on 3 dots of one of capacity assignments available and select edit
  3. change the data
  4. click Save Capacity Assignment
  5. get error message.

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: chrome

kayaliabd avatar Apr 23 '26 17:04 kayaliabd

Thanks for the report, @kayaliabd. We haven't been able to reproduce this. Do you have the full exception message?

daveearley avatar May 10 '26 09:05 daveearley

yes sure

{ "message": "Cannot declare class HiEvents\Services\Application\Handlers\CapacityAssignment\DeleteCapacityAssignmentHandler, because the name is already in use", "exception": "Symfony\Component\ErrorHandler\Error\FatalError", "file": "/www/wwwroot/hi.events/backend/app/Services/Application/Handlers/CapacityAssignment/UpdateCapacityAssignmentHandler.php", "line": 12, "trace": [] }

kayaliabd avatar May 12 '26 11:05 kayaliabd

Status: These changes are local and uncommitted; they have not been merged or released.

The reported duplicate-class declaration was not present in the current checkout and the original deployment failure could not be reproduced. Capacity-assignment handler and related regression coverage was exercised to help catch a recurrence.

No claim is made that the reporter's particular deployment has been repaired; its configuration and installed code still need investigation if the error persists.

No screenshot is attached here; supporting evidence is being prepared separately for manual upload.

chmunyas avatar Oct 31 '26 10:10 chmunyas