Elfinder: Invalid backend response. Data is not JSON.

Created on 2 Jun 2017  路  14Comments  路  Source: Studio-42/elFinder

Hi,
elFinder works fine on my localhost and on all my hosts. but I have a host that when I want to open elFinder this error appears:
Invalid backend response. Data is not JSON.
I'm sure that it's my host problem. but I don't know what the problem is :(

any suggestion ?

question

Most helpful comment

Found the bug.

  • baseUrl => was wrong
  • defaultOpts : {url => was wrong

many thanks nao-pon

All 14 comments

@Mozhdeh-d Please check the response from the server with the browser's developer tool etc. Are there any error messages?

There's no error in console tab. but also there's no response for connector.php in network tab :(

1
2
3
4

Please use error_reporting , display_errors of PHP to display the error.

what's 'driver' set to?

To access the file system on the server by 'LocalFileSystem'.

Same issue here. I get no response/errors from connector.php even using error_reporting / display_errors but still get the "Invalid backend response. Data is not JSON." Driver is set to LocalFileSystem and works fine locally.

At the console (network tab), the difference I see between the local (that's working fine) and the host is the "target". While locally it's something like cmd=open&target=l1_XA&, in the host the target is empty (cmd=open&target=&)

If you have PHP 7.1 or higher on your server, there is a bug in Fatal error.(but error when deleting files) Please try the nightly build.

c.f. #2040

cmd=open&target=&

That is correct on first request.

Error handling extended of the nightly build. If you set the connector option debug totrue, you may be able to see something error message. Please try the nightly build.

Hi is this issue solved?, i have the same error, none error display on the console and all the http request return 200 response...is there any solution?

I have the same problem. With Version 2.1.29 and with with the above linked nightly build. With Version 2.1.19 have i not Problems

PHP: 7.1.11
Server Version: Apache/2.2.31 (Unix)

elfinder-not-join

@isadev , @wintstar First of all, please set 'debug' of the connector setting to true.

Please find the problem request in the browser developer tool and access the request URL directly in the browser, and look at the response.

Then let me know the request and response and your connector settings.

With the default installation method, there is no problem with my test site (2.1.29 (2.1 - src Nightly: 9b8c92b) on PHP 7.2.0 RC 4 on nginx / 1.6.2).

Found the bug.

  • baseUrl => was wrong
  • defaultOpts : {url => was wrong

many thanks nao-pon

How about you @isadev ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hayes-seyah09354085977 picture hayes-seyah09354085977  路  17Comments

dleffler picture dleffler  路  11Comments

wzfjesun picture wzfjesun  路  13Comments

CodeLyokoXtEAM picture CodeLyokoXtEAM  路  10Comments

gadangmadhulika picture gadangmadhulika  路  16Comments