Recently decommissioned a laptop and removing licenses and such from it. When deleting Recurring Tickets from the … menu received a 500 Server Error
From the apache2 / error.log
[Wed Oct 22 11:51:11.136106 2025] [php:warn] [pid 961876:tid 961876] [client w.x.y.z:35208] PHP Warning: Undefined variable $ticket_status_name in /var/www/html/agent/post/ticket.php on line 1340, referer: https://itflow.server.domain/agent/tickets.php?status=Open&q=pw-l-&category=&canned_date=custom&dtf=&dtt=2035-12-31&assigned=
[Wed Oct 22 12:04:20.868486 2025] [php:warn] [pid 961879:tid 961879] [client w.x.y.z:39140] PHP Warning: Undefined array key "csrf_token" in /var/www/html/agent/post/ticket.php on line 2589, referer: https://itflow.server.domain/agent/asset_details.php?client_id=4&asset_id=103
[Wed Oct 22 12:04:20.868576 2025] [php:error] [pid 961879:tid 961879] [client w.x.y.z:39140] PHP Fatal error: Uncaught TypeError: hash_equals(): Argument #1 ($known_string) must be of type string, null given in /var/www/html/functions.php:640\nStack trace:
\n#0 /var/www/html/functions.php(640): hash_equals()
\n#1 /var/www/html/agent/post/ticket.php(2589): validateCSRFToken()
\n#2 /var/www/html/agent/post.php(34): require_once('...')
\n#3 {main}
\n thrown in /var/www/html/functions.php on line 640, referer: https://itflow.server.domain/agent/asset_details.php?client_id=4&asset_id=103
[Wed Oct 22 12:04:26.816419 2025] [php:warn] [pid 961876:tid 961876] [client w.x.y.z:37558] PHP Warning: Undefined array key "csrf_token" in /var/www/html/agent/post/ticket.php on line 2589, referer: https://itflow.server.domain/agent/asset_details.php?client_id=4&asset_id=103
[Wed Oct 22 12:04:26.817619 2025] [php:error] [pid 961876:tid 961876] [client w.x.y.z:37558] PHP Fatal error: Uncaught TypeError: hash_equals(): Argument #1 ($known_string) must be of type string, null given in /var/www/html/functions.php:640\nStack trace:
\n#0 /var/www/html/functions.php(640): hash_equals()
\n#1 /var/www/html/agent/post/ticket.php(2589): validateCSRFToken()
\n#2 /var/www/html/agent/post.php(34): require_once('...')
\n#3 {main}
\n thrown in /var/www/html/functions.php on line 640, referer: https://itflow.server.domain/agent/asset_details.php?client_id=4&asset_id=103