I tried to install the module but I get the following message:

"elFinder library was not found. Please download it from http://sourceforge.net/projects/elfinder/files/ and install to sites/all/libraries/elfinder. (Currently using elFinder Not found)"

I downloaded the file but still receive this message, plus a library is missing, see attached image.

Comments

ph0enix’s picture

Status: Active » Postponed (maintainer needs more info)

elFinder Filefield Source is a optional module for use elFinder with filefield. This feature depending on filefield_sources module which didn't ported to Drupal 7 yet. Basically when it will be ported this feature will be available. Currently it is working on Drupal 6.

Are you still see error message about missing elFinder library? Did you downloaded and extracted library files as required? Please provide sites/all/libraries/elfinder directory listing.

Kikky’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

I'm testing elFinder on Drupal 6 and its working fine, thanks for the reply.

davmorr’s picture

The directory structure of the elFinder JS library has apparently changed recently, at least as of version 2.0 rc1. The elFinder Drupal module installer function is looking for the file 'elFinder.class.php' in the directory 'sites/all/libraries/elfinder/connectors/php/'. The 'connectors' directory is no longer present in the library directory tree. The easiest fix for this is to either use the dev version of this module (as of 4/15/12) where this is fixed, or edit line 25 of the module file 'elfinder.install' from:

if ( !(is_readable($libpath . '/connectors/php/elFinder.class.php') && is_readable($libpath . '/js/elfinder.min.js')) ) {

to

if ( !(is_readable($libpath . '/php/elFinder.class.php') && is_readable($libpath . '/js/elfinder.min.js')) ) {

*Note: This is referencing the current recommended release version of this module - 7.x-0.7

davmorr’s picture

Update:
Actually, there are a few other issues with this version of the module, caused by the library's dir tree changes. You are probably just better off disablinge and uninstalling the module and installing the dev release.

If you go this route, see the following issue: http://drupal.org/node/1534344
There is a minor tweak in the elfinder_init() function that needs to be resolved for it to work properly.

anurasn’s picture

Just Replace the elfinder.install file's 24th line:

...
if ( !(is_readable($libpath . '/connectors/php/elFinder.class.php') && is_readable($libpath . '/js/elfinder.min.js')) ) {
      $severity = REQUIREMENT_ERROR;
    }
....

to

...
if ( !(is_readable($libpath . '/php/elFinder.class.php') && is_readable($libpath . '/js/elfinder.min.js')) ) {
      $severity = REQUIREMENT_ERROR;
    }
...

Then the installation problem will solve and the another problem will see in file browsing. I will add it's patch also.

gghh2’s picture

Hi !

Thanks for the #5 patch.
But do you have the patch when we are in file browsing since 30 April ?

Thanks !

cloudbull’s picture