artgris / FileManagerBundle

FileManager is a simple Multilingual File Manager Bundle for Symfony
MIT License
171 stars 89 forks source link

Notice: Undefined property: stdClass::$url #56

Closed kaistaerk closed 4 years ago

kaistaerk commented 4 years ago

Hi there,

Iam using Symfony 4.2 and just installed the file manager. There was a problem in the ManagerController, so i got the error

Notice: Undefined property: stdClass::$url

I took a look on it.

ManagerController:277 $file->url = $this->generateUrl('file_manager_file', array_merge($fileManager->getQueryParameters(), ['fileName' => $file->url]));

After dumping $file, i changed it to $file->name and it works.

Is there any reason for using "url" or did I found a bug?

Kind regards Kai

kaistaerk commented 4 years ago

it occurs only in a local env.....

artgris commented 4 years ago

Hi @kaistaerk , sorry for my late reply.

Yes you found a bug, but changed '$file->name' is not the solution. I will correct this in my latest version.

Thx =)