Laravel-Backpack / LogManager

An interface to preview, download and delete Laravel log files, using Backpack.
http://backpackforlaravel.com
Other
275 stars 56 forks source link

Unable to view logs #24

Closed Evanslooten closed 6 years ago

Evanslooten commented 6 years ago

Bug report

What I did:

Installed LogManager via composer command in read me, setup the file system driver, added the URL to the sidebar, clicked the link when logged in.

What I expected to happen:

Show a list of log files

What happened:

Whoops! Illegal string offset 'file_name'.

What I've already tried to fix it:

I dumped out $file in the loop, it is not an array but a string file path. I was able to get the screen to load replacing the $file['xxx'] with variables using filesystem functions. This does let the screen load, but when attempting to preview the log it fails.

Possibly a this-instance Laravel configuration issue?

Backpack, Laravel, PHP, DB version:

3.4, 5.6, 7.1.11, 5.7.2 MySQL

welcome[bot] commented 6 years ago

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication mediums:

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

-- Justin Case The Backpack Robot

tabacitu commented 6 years ago

Hmm... that's very weird @Evanslooten . I've just installed it on a fresh instance, with exactly your versions, and it works just fine for me: https://cl.ly/0e1I3326093D

And actually, $file is an array for me - it's the array that Filesystem returns for a file: screen shot 2018-05-02 at 07 53 43

I have no idea what the problem was for you, or what to recommend to solve it. Heck, maybe a composer update? Very sorry for this.

Cheers!

PS. If anybody else has this problem, please speak up and reopen this issue. Would love to get to the bottom of this.