It changes owner but i get an error message that says “{“status”:500,“error”:“Internal Server Error”}”. Everything else about the ticket i can change and save without problem
I’m pretty sure above error message is not the complete error message you retrieve.
If so, please look up the exact and complete error message in your production log file.
thanks for your patience.
I’m sorting after activity (board default) to provide fair chances to everyone - bumping actually moves threads down that list. ;-(
To your issue:
I, [2021-08-13T13:05:40.231867 #428327-47420531884660] INFO -- : Execute trigger (Skicka mail vid ägarbyte/5) for this object (Ticket:622/Loop:1)
I, [2021-08-13T13:05:40.305450 #428327-47420531884660] INFO -- : Completed 500 Internal Server Error in 616ms (Views: 5.9ms | ActiveRecord: 81.4ms)
F, [2021-08-13T13:05:40.306189 #428327-47420531884660] FATAL -- :
F, [2021-08-13T13:05:40.306242 #428327-47420531884660] FATAL -- : SyntaxError ((erb):1: syntax error, unexpected tIDENTIFIER, expecting tSTRING_DEND
....freeze; _erbout.<<(( d "ticket.owner.lastname", true ).to_s...
... ^~~~~~
(erb):1: unknown regexp options - dv
(erb):1: syntax error, unexpected '<'
...bout.<< "</div><div><br></div><div>/Helpdesk<br></div></div>...
... ^
(erb):1: unknown regexp options - dv
(erb):1: syntax error, unexpected '<'
...</div><div>/Helpdesk<br></div></div>".freeze; _erbout
... ^
(erb):1: unterminated regexp meets end of file
...r></div></div>".freeze; _erbout
... ^
(erb):1: syntax error, unexpected end-of-input, expecting tSTRING_DEND):
Looks like the relevant part to me.
What does trigger Skicka mail vid ägarbyte do?
Any other triggers that might be interesting?
If you fiddled around within the Zammad source code, please ensure to revert that change to be sure.
We only can help on vanilla installations.
I had a similar issue with a paying customer today.
Please have a look at your trigger and ensure the links are clean.
What I mean by that:
Copy the affected URLs and remove them - then, at the same spot, insert them as text. For most chromium based browsers the shortcut CTRL + SHIFT + V will do the trick.
This ensures that HTML formattings are not inserted which can cause issues with Zammads sanitizers.
Inserting HTML based stuff in web application sometimes can be very tricky.