When a blocked request occurs (triggered by SuspiciousCoreParams), Admin Tools throws a fatal TypeError under PHP 8.4 while attempting to log the request to file.
Error details:
Akeeba\Plugin\System\AdminTools\Utility\BlockedRequestHandler::escapeLogLine(): Argument #1 ($value) must be of type string, null given, called in BlockedRequestHandler.php on line 863
Stack trace excerpt:
#0 BlockedRequestHandler.php(863): escapeLogLine() #1 BlockedRequestHandler.php(173): logRequestToFile() #2 BlockedRequestHandler.php(217): logRequest() #3 SuspiciousCoreParams.php(132): blockRequest()
One of the request headers or server variables passed to escapeLogLine() evaluates to null, which causes a fatal TypeError in PHP 8.4. Casting the value to (string) or allowing ?string in escapeLogLine() resolves the issue.
Kind regards, Antje