When enabling the module, I get a blank screen after clicking "Save Configuration" on the admin > Modules page. The page that is showing up blank is modules/list/confirm. Any advice you can offer would be greatly appreciated!

Used elfinder-lib-2.x-20120111_170001.tar.gz and elfinder-7.x-2.x-20120111_170001.tar.gz, as well as the newer _190001 versions of each.

Drupal 7.

Thanks in advance! I really need v2 because of it's support the private file system.

Comments

ph0enix’s picture

Please check server log for errors. Blank screen can mean that there are php error.

pdklein88’s picture

Here's the error in the Apache log file:

[Wed Jan 11 13:01:18 2012] [error] [client 24.11.162.3] PHP Fatal error: Cannot redeclare elfinder_lib_path() (previously declared in /Library/WebServer/Documents/drupal_docs/modules/elfinder/elfinder.module:883) in /Library/WebServer/Documents/drupal_docs/modules/elfinder/elfinder.install on line 76, referer: http://*****.org/drupal_docs/?q=admin/modules

ph0enix’s picture

StatusFileSize
new1.16 KB

Try to replace elfinder.install from attached archive

pdklein88’s picture

That seemed to work. I did get the following message after I enabled the module:

Notice: Undefined offset: 0 in elfinder_admin_profile_get() (line 1129 of /Library/WebServer/Documents/drupal_docs/modules/elfinder/elfinder.module).
Warning: Invalid argument supplied for foreach() in elfinder_get_user_profile() (line 379 of /Library/WebServer/Documents/drupal_docs/modules/elfinder/elfinder.module).
Warning: Invalid argument supplied for foreach() in elfinder_get_user_profile() (line 379 of /Library/WebServer/Documents/drupal_docs/modules/elfinder/elfinder.module).
Warning: Invalid argument supplied for foreach() in elfinder_get_user_profile() (line 379 of /Library/WebServer/Documents/drupal_docs/modules/elfinder/elfinder.module).

However, it appears to be working!!

ph0enix’s picture

Try to use new build. Please uninstall old one - it had big issue with profiles.

http://sourceforge.net/projects/drupal-elfinder/files/Drupal%207/elfinde...

ph0enix’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
boregar’s picture

Hi, having the same issue with the latest 7.x-2.x-dev (2012-Jan-22) with elFinder 2.0 beta (July 10th, 2011) installed on a fresh Drupal 7.10.

I can only see a blank screen when navigating to the elfinder url, whatever profile I am logged in.

Any suggestion?

ph0enix’s picture

Is there any error messages in server log?

boregar’s picture

I can't access server logs on my provider's admin console, and nothing appears in Drupal's reports.

ph0enix’s picture

Is Drupal still operable or website down?

Backup index.php from Drupal root directory and insert following code to index.php after <?php

ini_set('display_errors', 1);
ini_set('error_reporting', E_ALL);

Try to access /elfinder or /?q=elfinder and see if there will be any errors on screen. Restore original index.php after experiment.

boregar’s picture

Every other Drupal functionality is operable.
After inserting the 2 lines (ini_set...), nothing changed, still displaying a blank screen.

ph0enix’s picture

Did previous elfinder module version installed on this site before?

boregar’s picture

No, it's a fresh install. No other module, just Drupal 7.10 with default themes...
Note that elFinder 1.2 runs without any problem on another website with nearly the same config (but with more modules and libraries).
Note also that the /sites/all/libraries/elfinder/elfinder.html displays the elFinder GUI.

laurent.lemercier’s picture

Exactly the same symptoms in a fresh installation Hillmore described.
Drupal 7.10 or 7.x gave the same results.

ph0enix’s picture

Try to comment out in elfinder.install following line:

require_once drupal_get_path('module', 'elfinder') . "/elfinder.module";

Then replace

$libpath = elfinder_lib_path();

with

$libpath = 'sites/all/libraries/elfinder';

Is there anything in logs?

boregar’s picture

Sorry I had to deliver on time so I reverted to elFinder 1.2.
What about you Laurent? Did you try ph0enix' suggestion?

laurent.lemercier’s picture

I tried it very quickly, no results, nothing in logs.
I will try again on a new fresh installation, but I have no time at the moment.

ph0enix’s picture

Try to find following code in sites/all/libraries/elfinder/php/elFinderConnector.class.php and temporary comment out "ob_end_clean();" line - it can clean error/warning messages. After that try to access/install elFinder again and check error log.

	/**
	 * Output json
	 *
	 * @param  array  data to output
	 * @return void
	 * @author Dmitry (dio) Levashov
	 **/
	protected function output(array $data) {
		$header = isset($data['header']) ? $data['header'] : $this->header;
		unset($data['header']);
		ob_end_clean();

Unfortunately I cannot reproduce this for now.

laurent.lemercier’s picture

tonight I tried the following :
- Drupal 7-1.2
- CKeditor 7x-1.6
- elfinder 7.x-2.x-dev-20120126_110001
- http://sourceforge.net/projects/drupal-elfinder/files/Library/elfinder-l...

I think the main problem came from the library...

With these components, http://mysite/elfinder opens ... with a splendid "unable to connect to back end" error. Maybe I need to learn a bit more about elfinder and review the config ...

Hope this helps, regards

Laurent

amjp’s picture

Hi all,

I'm also having problems installing elfinder 7.x-2.x, but I don't know if it is the same issue.

Instead of having a blank screen all seems to be right, but when I go to mysite/elfinder it doesn't work at all. I have this message on register report:

Notice: Undefined variable: mime en elFinderVolumeDriver->canCreateTmb() (línea 2508 de /var/www/sites/all/libraries/elfinder/php/elFinderVolumeDriver.class.php).

What I was in this file is:

protected function canCreateTmb($path, $stat) {
return $this->tmbPathWritable
&& strpos($path, $this->tmbPath) === false // do not create thumnbnail for thumnbnail
&& $this->imgLib
&& strpos($stat['mime'], 'image') === 0
&& ($this->imgLib == 'gd' ? $mime == 'image/jpeg' || $mime == 'image/png' || $mime == 'image/gif' : true);
}

I'm not a developper, so I don't know where is the problem. ¿Could this help you?

laurent.lemercier’s picture

amjp : check your tmp in file system settings.

Good news : I managed to make it work on WAMP (on windows). Not on a live system... with exactly the same config and files (I backuped & restored it all)...

ph0enix’s picture

Try to replace line

&& ($this->imgLib == 'gd' ? $mime == 'image/jpeg' || $mime == 'image/png' || $mime == 'image/gif' : true);

to

&& ($this->imgLib == 'gd' ? $stat['mime'] == 'image/jpeg' || $stat['mime'] == 'image/png' || $stat['mime'] == 'image/gif' : true);
amjp’s picture

StatusFileSize
new86.82 KB

Thanks,

This fixed the error. After that, I got another advice:

Uninitialized string offset: 0 en elfinder_connector() (línea 510 de /var/www/sites/all/modules/elfinder/elfinder.module)

In this line of elfinder.module I had if ($volume['path'][0] != DIRECTORY_SEPARATOR) {, and I susbtituted by if ($volume['path'] != DIRECTORY_SEPARATOR) {. The advice disappeared, but I don't know if it is the correct way to fix it.

Nevertheless, elfinder doesn't work. Instead the correct screen, I got what you can see in the attachment.

ph0enix’s picture

Try to edit elfinder.module:

1. Replace elfinder_add_css function to following:

function elfinder_add_css($path, $options = array()) {
    return drupal_add_css($path, $options);
}

2. Update code in elfinder_file_browser function.

Find line:

$options = array('type' => 'module', 'media' => 'screen');

and replace it with:

$options = array('group' => CSS_DEFAULT,  'every_page' => FALSE);

Or wait next dev version build.

Also it possible that you need to uninstall module (with variables and tables) and enable it again.

amjp’s picture

It works!! Thanks you very much.

ph0enix’s picture

Please test and report any encountered issues.

ph0enix’s picture

Status: Active » Needs review
bcobin’s picture

I've followed the instructions and also get "unable to connect to backend" (an error I also see on the demonstration site, BTW.)

Using latest dev after seeing this thread.

Any ideas? Thanks...

bcobin’s picture

Watchdog says Page not found for sites/all/modules/elfinder/js/elfinder.wysiwyg.init.js

Which I suppose might explain things - the file is not included in the tarball. Thoughts?

amjp’s picture

If it helps, I have the same advice (Warning: file_get_contents(sites/all/modules/elfinder/js/elfinder.wysiwyg.init.js): failed to open stream: No such file or directory en drupal_build_js_cache() (línea 4766 de /var/www/includes/common.inc).) when I try to load an image to a profile although the loading works right.

enxox’s picture

my error with the last dev is

Fatal error: Class 'elFinder' not found in C:\xampp\htdocs\aranciaannie\sites\all\modules\elfinder\inc\elfinder.drupal.inc on line 7

and after reopening the website

Warning: include_once(/php\elFinder.class.php) [function.include-once]: failed to open stream: No such file or directory in include_once() (line 7 of C:\xampp\htdocs\aranciaannie\sites\all\modules\elfinder\elfinder.module).
Warning: include_once() [function.include]: Failed opening '/php\elFinder.class.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in include_once() (line 7 of C:\xampp\htdocs\aranciaannie\sites\all\modules\elfinder\elfinder.module).

ph0enix’s picture

enxox, try to find in elfinder.module lines

include_once dirname(elfinder_connector_path()) . DIRECTORY_SEPARATOR . 'elFinder.class.php';
include_once drupal_get_path('module', 'elfinder') . DIRECTORY_SEPARATOR . 'inc' . DIRECTORY_SEPARATOR . 'elfinder.drupal.inc';

and replace it with:

include_once dirname(elfinder_connector_path()) . '/elFinder.class.php';
include_once drupal_get_path('module', 'elfinder') .'/inc/elfinder.drupal.inc';
PazZze’s picture

I get following when trying to access /elFinder:
"Unable to connect to backend."

ph0enix’s picture

Try to open url /elfinder/connector and see if there any error messages on screen or in server error log.

PazZze’s picture

i got:
"Fatal error: Declaration of elFinderVolumeDrupal::_copy() must be compatible with that of elFinderVolumeDriver::_copy() in ../modules/elfinder/inc/elfinder.drupalfs.driver.inc on line 398"
And nothing in the logfiles

On an other installation (testing purpose) I got "{"error":["errUnknownCmd"]}". When I return to /elfinder i got "Error message
Strict warning: Only variables should be passed by reference in elFinderVolumeDriver->mount() (line 643 of /var/www/hby/sites/all/libraries/elfinder/php/elFinderVolumeDriver.class.php)." above the filebrowser
And in this three in the logfiles:
Location - "Message"
http://192.168.1.250/hby/elfinder/ - "Infinite redirect prevented."
http://192.168.1.250/hby/elfinder/connector?cmd=open&target=&init=1&tree... - "Recoverable fatal error: Argument 1 passed to drupal_http_build_query() must be an array, string given, called in /var/www/hby/includes/common.inc on line 2192 and defined in drupal_http_build_query() (line 477 of /var/www/hby/includes/common.inc)."
http://192.168.1.250/hby/admin/reports/dblog - "Infinite redirect prevented."

Hilari’s picture

I have the same problem.
"Fatal error: Declaration of elFinderVolumeDrupal::_copy() must be compatible with that of elFinderVolumeDriver::_copy() "

Thanks

ph0enix’s picture

Try to update to Feb 28 build and latest elFinder 2 library

Hilari’s picture

I installed the latest version and this works!! :-)
Thank you!

PazZze’s picture

works for me =)

enxox’s picture

last dev (28 feb) seems working for me,
but I have now problem with tinymce.
browser page is blank (maybe an issue of tinymce?)

ph0enix’s picture

Eitire page or elFinder popup? Could you please check logs for errors.

CinemaSaville’s picture

I'm having the same elFinder popup blank page issue as well having just installed the latest dev and elFinder 2 beta.

ph0enix’s picture

elFinder 2 beta library is not supported. Use latest library from http://sourceforge.net/projects/drupal-elfinder/files/Library/

rottielove’s picture

Fatal error: Class 'elFinder' not found in C:\Users\Peggy.Ayala\Sites\acquia-drupal7\sites\all\Modules\elfinder\inc\elfinder.drupal.inc on line 7

This is the error I am getting after enabling the module in drupal 7.12

I also have this error message
•Warning: include_once(/php\elFinder.class.php) [function.include-once]: failed to open stream: No such file or directory in include_once() (line 7 of C:\Users\Peggy.Ayala\Sites\acquia-drupal7\sites\all\Modules\elfinder\elfinder.module).
•Warning: include_once() [function.include]: Failed opening '/php\elFinder.class.php' for inclusion (include_path='.;C:\Program Files (x86)\acquia-drupal7\common\pear') in include_once() (line 7 of C:\Users\Peggy.Ayala\Sites\acquia-drupal7\sites\all\Modules\elfinder\elfinder.module).

CinemaSaville’s picture

@phOenix
Thanks, that fixed it. Now working.

Angelo Giammarresi’s picture

StatusFileSize
new216.95 KB
new166.73 KB

Hi,

I downloaded the file 7.x-7.0 from Drupal and installed as usual for a module but I got this "elFinder library was not found. Please download it from http://sourceforge.net/projects/elfinder/files/ and install to . (Currently using elFinder Not found)"
I downloaded the 1.2.tar.gz and tried to install from module page but I got an error something was missing in the file.
I downloaded the 1.2.zip unpacked and copied to sites/all/module/elfinder nothing happen, then I moved it to sites/all/libraries/elfinder and still get the same error when I try to activate the elfinder module.

What do I have to do? I add 2 shots

Thanks

ph0enix’s picture

Please list sites/all/libraries/elfinder contents

Angelo Giammarresi’s picture

@ phOenix - I succeeded to install it. It was the name of the folder wrong in the libraries.

But when I open the filebrowser it starts searching without stopping, do I have to set something somewhere?

Thanks
Angelo

Angelo Giammarresi’s picture

StatusFileSize
new69.33 KB

Hi,

I wish to get some help and that be the right place to ask my question.

I installed elfinder, activated the button/plugins with TinMyce when I click on the filebrowser icon it opens a new window searching for directory but never stop.
In the elfinder configuration I let it checked Use system defaults (sites/default/files)

Do I have to make some other settings? I attach e shot of what is my problem.

Thank you for helping I'm just a beginner to use drupal.

Angelo Giammarresi’s picture

StatusFileSize
new69.33 KB
new201.44 KB

Hi,
I'm still waiting for some help to use this nice module.
When I click on the file browser I opens the new browser window but I get only an animated bar like when you load a picture to this comment.
I cannot solve it so, I attach the shot of the inside elfinder folder

Thanks for helping

Angelo Giammarresi’s picture

In the elfinder settings I changed "Use system jQuery " to No and I don't get the running bar but a pop error message saying "invalid backend configuration" what does it means and what do I have to check?

thanks

narenpg’s picture

StatusFileSize
new132.17 KB

subscribing.. I am seeing the same issues. I dont understand why it says elfinder not found under libraries. When it exists, i also verified whether there is any typo. I dont see anything. Attaching the files. I see a status when i go to

narenpg’s picture

StatusFileSize
new437.71 KB
narenpg’s picture

StatusFileSize
new75.43 KB

Attaching firebug status..

narenpg’s picture

By looking at this error looks like it is not able to find the libraries directory or the jquery..That is weird.

Angelo Giammarresi’s picture

@ #55 I got your same problem and if you change in the elfinder settings "Use system jQuery " to No you get my same second issue - "invalid backend configuration"

I give it up and uninstall this module maybe I fins one working better without so much hassle.

ph0enix’s picture

Cannot reproduce this issue. Working with 0.7 and latest dev version. Try to disable/enable module, try to use it with default theme.

Note: this is 2.x version issue. Please do not use it for 1.x issues.

narenpg’s picture

@ph0enix it works with 0.7 version. But i cannot view/download any files under private directory. I think it is being denied by .htaccess. In .htaccess it says deny all, can drupal allows the private files to be seen without changing .hataccess.

ph0enix’s picture

Private filesystem support is available in 2.x dev version.

narenpg’s picture

Thanks. I will try when i it is stable.

bancarddata’s picture

FWIW I first had to apply the patch referenced at #1557860: ElFinder Library CSS/JS names have changed - cause empty popup window to get past the elFinder window not coming up at all. This was using the latest 7.x-2.x-dev copy of the module and elFinder 2.0 RC1 on Drupal 7.12 with ckeditor

After that, I was getting "unable to connect to backend" and when I would go to /elfinder/connector my apache log was showing "Call to undefined method elFinderDrupal::getNetVolumes() in /opt/apache/htdocs/drupal/sites/all/modules/elfinder/inc/elfinder.drupal.inc on line 28".

I was able to get by this by downloading the bleeding edge copy of elFinder.class.php from:
https://raw.github.com/Studio-42/elFinder/2.x/php/elFinder.class.php

I have not fully tested it yet but it is coming up now and I was able to select an already-existing image and insert it into the body of a node. So far, so good! Thanks for the great work.

3rdLOF’s picture

HA!!! JUst come in to post the exact same post as bancarddata : Had the same error and found the exact same solution.

I am not sure about the rest, but this begun happening with the latest Drupal Core update.

Anyone having "Invalid backend response. Data is not JSON." problems, do what boss ph0enix suggested and visit elfinder/connector on your site: If you get a

"Call to undefined method elFinderDrupal::getNetVolumes()" execute the solution by banvarddata on #61.

kaizerking’s picture

StatusFileSize
new22.37 KB

Installation ok,But i have following problems,
1.The file tab in content is not rendering correctly
2.To check mark the elfinder in wyswyg profile- i dont get this,

Status report shows elfinder exists
screenshot of file screen attached

lisazhou’s picture

Hi all I've the blank page issue.
I'm using 7.x-2.x-dev, after enabling the module I only got a blank page for mysite/elfinder
Web inspector give me this error:
ReferenceError: Can't find variable: elFinder

anyone can help? Thanks in advance!

ph0enix’s picture

lisazhou,

1. Try to use latest elFinder library (link below).
2. Try to browse page source and check if all elfinder files and jquery is included and accessible

ph0enix’s picture

kaizerking’s picture

@ ph0enix ,Why i am not getting the view correctly? I have described the problem #63

serialbob’s picture

Hi all,

I've this one when i try to install.

PDOException : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'mydatabase.elfinder_profile' doesn't exist: SELECT p.pid AS pid, p.name AS name, p.description AS description, p.settings AS settings FROM {elfinder_profile} p; Array ( ) in elfinder_admin_profile_get() (line 1217 in /var/www/sites/all/modules/elfinder/elfinder.module).

Any idea ?

Thanks for all ;-)

pixlkat’s picture

I had the same problem as #68 also. There is no hook_schema() in the .install file. I went back through the repository til where it still existed and copied it into my .install file and it seems to be behaving now. I am not sure why it got deleted, I didn't see anything in the commit messages that said anything about that.

botser’s picture

Same issue here as #68 and #69

PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'drpl1.elfinder_profile' doesn't exist: SELECT p.pid AS pid, p.name AS name, p.description AS description, p.settings AS settings FROM {elfinder_profile} p; Array ( ) in elfinder_admin_profile_get() (line 1217 of /home/bendomb/public_html/manual/sites/all/modules/elfinder/elfinder.module).

ph0enix’s picture

StatusFileSize
new1.37 KB

Tables creation was removed from latest build by misatake. For 7.x-2.x try to replace elfinder.install with attached or wait for next build. This issue should not affect 6.x-2.x.

ph0enix’s picture

@ kaizerking Are you using js/css aggregation? Have you tried to use to latest dev build? Please provide list of included css-files (elfinder, jquery, jquery ui).

kaizerking’s picture

@ph0enix, after replacing the install file it is working

kaizerking’s picture

How ever, i am getting this warning:
Strict warning: Non-static method elFinderDrupal::GetContentDisposition() should not be called statically in elFinderDrupal::GetContentDisposition() (line 1200 of E:\xampp\htdocs\newfolder\sites\all\modules\elfinder\elfinder.module).

ph0enix’s picture

Try to find in inc/elfinder.drupal.inc following line

public function GetContentDisposition($file, $filemime, $download = FALSE) {

and replace it with

public static function GetContentDisposition($file, $filemime, $download = FALSE) {
Christopher Riley’s picture

I tried installing the latest dev release and receive the following message on the admin/modules/list/confirm screen:

{"error":["Access denied"]}

Christopher Riley’s picture

I just checked and it is dying here:

if (!drupal_valid_token($_REQUEST['token'], 'elFinder')) {
print_r($_REQUEST['token']);
module_invoke_all('exit');
exit(drupal_json_encode(array('error' => array(t('Access denied')))));

This is do to the fact that $_REQUEST['token'] does not exist.

ph0enix’s picture

Try to clear cache and disable/enable elFinder module.

ph0enix’s picture

Status: Needs review » Closed (cannot reproduce)
zopa’s picture

obithemaster’s picture

Status: Closed (cannot reproduce) » Active

I've applied the changes as you've shown in comment #32 but i still have this error message:

" Fatal error: Class 'elFinder' not found in /Applications/XAMPP/xamppfiles/htdocs/drupal1/sites/all/modules/contrib/elfinder/inc/elfinder.drupal.inc on line 7 "

NOTE: i'm using Mac Os X, and I'm gonna upload my site on a linux server...

What can I do to fix it?

Kvark’s picture

RTFM :)
This may happend not because you are mac user, but because you dont read manuals :)
If you download 7.x-2.x-dev and you open readme.txt - you will see, that you should download elfinder library as well and remove from library mentioned files. eg.:
sites/all/libraries/elfinder/elfinder.html
sites/all/libraries/elfinder/php/connector.php

after that this error magicaly disapers.

7thkey’s picture

Issue summary: View changes

Hi there,

I get the WSOD with a single error line in modules page after activating the thing:

{"error":["Access denied"]}

I did every step mentioned in the readme file, including the latest libraries and removing the trouble files.

Libraries used:
elfinder-lib-2.1-20140130_000013.tar.gz
elfinder-lib-2.x-20140210_000015.tar.gz

On the other hand activating the module with the drush tool gives me a more detailed error:

Cannot modify header information - headers already sent by (output started at [warning]
/Users/user1/Dev/drush/includes/output.inc:37) elFinderConnector.class.php:112
{"error":["errConf","errNoVolumes"],"debug":[]}Drush command terminated abnormally due to an unrecoverable error. [error]

Did I miss something?

Cheers

trong.nguyen.tcec’s picture

You can make a change to make elfinder working well. https://drupal.org/node/2275771

ph0enix’s picture

Status: Active » Fixed
ph0enix’s picture

Status: Fixed » Closed (fixed)