ARCANEDEV/LogViewer

htmlspecialchars error, translation strings mix up

ZBrettonYe opened this issue · 1 comments

  • LogViewer Version: 7.1.0
  • Laravel Version: 7.30.4
  • PHP Version: 7.3.28

Description:

Error message:htmlspecialchars() expects parameter 1 to be string, array given

it happened at bootstrap-4/dashboard.blade.php:23
"{{ $item['name'] }}"
image

It looks like the translation string is mix up with my project's translation string.

Steps To Reproduce:

  1. create a error.php translation file under resources/lang/en
  2. file contains
<?php

return [1,2,3,4];
  1. view the page http://localhost/log-viewer

I think the only way to solve this issue is to rename the error.php file into something else like errors.php

Or by using Translation Strings As Keys instead