Page 1 of 1

View Ticket 500 error when status is solved

Posted: Mon Sep 26, 2022 2:54 pm
by leandrojcaetano
Version: 3.4.0

Hi, when ticket status is set to solved... the view ticket page shows 500 error.
The same error appears on the demo page.
Image

error log:

Code: Select all

Mon Sep 26 10:22:56.060051 2022] [php:error] [pid 17646] [client :0] PHP Fatal error:  Uncaught Error: Call to undefined function hesk3_output_drag_and_drop_script() in /var/www/html/hesk/theme/hesk3/customer/view-ticket/view-ticket.php:309\nStack trace:\n#0 /var/www/html/hesk/inc/common.inc.php(2534): include()\n#1 /var/www/html/hesk/ticket.php(262): {closure}()\n#2 {main}\n  thrown in /var/www/html/hesk/theme/hesk3/customer/view-ticket/view-ticket.php on line 309
line: 309

Code: Select all

<?php hesk3_output_drag_and_drop_script('r_attachments'); ?>
I solved it by putting this line into theme/hesk3/customer/view-ticket/view-ticket.php

Code: Select all

require_once(TEMPLATE_PATH . 'customer/util/attachments.php');
BR,

Re: View Ticket 500 error when status is solved

Posted: Mon Sep 26, 2022 3:03 pm
by Klemen
Nice catch, thank you for reporting this!

I guess no one noticed it before, because the page normally displays in most browsers/servers anyway.

Will be fixed in 3.4.1 (soon).

Re: View Ticket 500 error when status is solved

Posted: Tue Jun 17, 2025 11:19 am
by sampa
Hi,

HESK version 3.5.3 Ticket 500 error when status is solved. can you assist me to get this resolved please.

Re: View Ticket 500 error when status is solved

Posted: Tue Jun 17, 2025 2:26 pm
by Klemen
See this article for help with 500 server errors:
https://www.hesk.com/knowledgebase/inde ... rticle=113