Elfinder: Can't Open Backend

Created on 6 Dec 2017  路  8Comments  路  Source: Studio-42/elFinder

When trying to upload and image for a open cart (1.5) listing we get "Can't Open Backend" error message. Please advise.

Thank you,
Amcap2

question

All 8 comments

Revised "Unable to Connect to the Backend"

Thank you for your help,

Amcap2

Please enable debug in the connector setting and check the details of the error. However, I do not know the error caused by the open cart.

Hello,
I'm using elFinder in Codeigniter 3x
I have to a backend error.
"Mauvaise r茅ponse du backend.
Un erreur est survenue du c么t茅 serveur.
HTTP error 500"

My path is : 'driver' => 'LocalFileSystem',
'path' => FCPATH . '/medias',
'URL' => base_url('medias'),
http://127.0.0.1:8080/edsa-terrysharp/ciblogterry/Elfinder_lib/connector?cmd=open&target=&init=1&tree=1&_=1512747661398

@terrysharp HTTP error 500 indicates that PHP stopped with an error. You need to know the details of the error. Have you tried 'connector' setting debug?

Hello, thanks for reply.
Yes I activate debug but it give me no more details about the error (se below).
Was it possible that eflinder display the interface but dont find the function connector to connect to backend ?
OK after trying debug I see a message : datas aren't in JSON format !
In Mozilla debugger I see


Severity: Error
Message: Class 'elFinderConnector' not found
Filename: controllers/Elfinder_lib.php
Line Number: 37
Backtrace:


$opts = array(
'debug' => true,
'roots' => array(
array(
'driver' => 'LocalFileSystem',
'path' => FCPATH . '/medias',
'URL' => base_url('medias'),
'uploadDeny' => array('all'), // All Mimetypes not allowed to upload
'uploadAllow' => array('image', 'text/plain', 'application/pdf'),// Mimetype image and text/plain allowed to upload
'uploadOrder' => array('deny', 'allow'), // allowed Mimetype image and text/plain only
'accessControl' => array($this, 'elfinderAccess'),// disable and hide dot starting files (OPTIONAL)
// more elFinder options here
)
),
);
$connector = new elFinderConnector(new elFinder($opts));
$connector->run();


@terrysharp Have you looked at the Wiki page (Integration with CodeIgniter) and integrated it? The autoloader does not seem to work.

Hey, it's exactkly this code I use.
But I find weird that we use "$connector = new elFinderConnector(new elFinder($opts));"
and the class is called "connector" and not "elFinderConnector" !!

Since $connector is a variable name, there is no problem. Please make sure CodeIgniter config $config['composer_autoload'] = TRUE;

By the way, it has nothing to do with the problem this time, but I edited the wiki. See Diff.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicorac picture nicorac  路  4Comments

donShakespeare picture donShakespeare  路  4Comments

shiyee picture shiyee  路  3Comments

CodeLyokoXtEAM picture CodeLyokoXtEAM  路  3Comments

Jeffery4000 picture Jeffery4000  路  4Comments