htmlspecialchars() expects parameter 1 to be string
This error comes in the live environment when getting a log report. And not for all the reports but for some repor