simialbi / yii2-elfinder

This extension integrates the jQuery elFinder into yii2 framework
MIT License
7 stars 5 forks source link

Data is not in JSON format. #6

Closed paskuale75 closed 3 years ago

paskuale75 commented 3 years ago

Invalid response from the backend. The data is not in JSON format.

Thanks

simialbi commented 3 years ago

Do you have an example? Which URL does not return JSON? What is returned instead?

paskuale75 commented 3 years ago

URL -> http://localhost:8080/elfinder/connection?instanceName=pratica-1&cmd=open&target=&init=1&tree=1&_=1627567646415

p.s. but it also happens if I use the default connectionSet as per example

simialbi commented 3 years ago

The URL seems to be wrong. With the solution I coded, elfinder is a submodule of pratica, so the URL should look like this: http: //localhost:8080/pratica/elfinder/connection?instanceName=pratica-1&cmd=open&target=&init=1&tree=1&_=1627567646415

paskuale75 commented 3 years ago

Also happens if I use 'default' connectionSet as in documentation, here the url: http://localhost:8080/elfinder/connection?instanceName=default&cmd=open&target=&init=1&tree=1&_=1627570414917

paskuale75 commented 3 years ago

sorry my mistake, I had added a VarDumper :: dump in the @vendor code, I close the issue.