elFinder shows empty window

Added by Takeo Mohri 11 months ago

I impletemted elFinder with elRTE.

It worked fine, so I tried to install it to the other place.

However, it does not work there.

The path in the connecter.php should be right because in the connector.php I have

if (!file_exists($sPathServer)) {
    mkdir($sPathServer);
}

and it successfully creates a folder for files.

elFinder shows a window, but it shows only header part and resize part.
Content is completly blank. It does not even show any error messages there.

There is a JavaScript error "data is null" in Firebug.

Do you have any clue to fix this issue?

------------ additional info ------------
Testing on Firefox 4 on Win Vista Home SP2 / Firefox 4 on Win XP


Replies (9)

RE: elFinder shows empty window - Added by Dmitry Levashov 11 months ago

Use firebug to check
1 all js files loaded
2 look in connector response

RE: elFinder shows empty window - Added by Troex Nevelin 11 months ago

Probably wrong response from connector as Dmitry said. Firebug is your friend.

RE: elFinder shows empty window - Added by Takeo Mohri 11 months ago

I compared the js files between working one and bad one.
All js files are loaded properly.

Then, now
Could you please let me know how to look in connector response?

RE: elFinder shows empty window - Added by Takeo Mohri 11 months ago

I have 4 requests.
3 are png images.

One is connector.php
There is no response for it.
I checked in Net => All => Response.

RE: elFinder shows empty window - Added by Takeo Mohri 11 months ago

Response is empty and I don't have a tab for JSON.

elRTE.jpg (23.2 kB)

RE: elFinder shows empty window - Added by Dmitry Levashov 11 months ago

No response - no json
This mean - connector not called or die, open connector page in separate tab.
If url is correct, add error_reporting(E_ALL) in begin of connector page or see php log

RE: elFinder shows empty window - Added by Dmitry Levashov 11 months ago

Check php configuration. version > 5 and json module required.

RE: elFinder shows empty window - Added by Takeo Mohri 11 months ago

Even though I made error_reporting(E_ALL) in begin of connector page, I could not get any errors.

Therefore, I put

error_reporting = E_ALL
display_errors = Off
log_errors = On
error_log = /x/x/x/x/x/x/elRTE/connectors/php/phplog.txt

in php.ini.

Then, I got

PHP Fatal error:  Call to undefined function json_encode()

in phplog.txt

I found the JSON is a default set of PHP5.2 or higher, so I checked the php version of my server.

It was 5.1.6.

I changed it to 5.3.3, then it finally started working.

Thank you so much!!

(1-9/9)