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.
| Comment | File | Size | Author |
|---|---|---|---|
| #71 | elfinder-install.zip | 1.37 KB | ph0enix |
| #63 | screenshot.PNG | 22.37 KB | kaizerking |
| #54 | elfinder_firebug.PNG | 75.43 KB | narenpg |
| #53 | elfinder_statusbar.zip | 437.71 KB | narenpg |
| #52 | elfinder_libraries.PNG | 132.17 KB | narenpg |
Comments
Comment #1
ph0enix commentedPlease check server log for errors. Blank screen can mean that there are php error.
Comment #2
pdklein88 commentedHere'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
Comment #3
ph0enix commentedTry to replace elfinder.install from attached archive
Comment #4
pdklein88 commentedThat 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!!
Comment #5
ph0enix commentedTry to use new build. Please uninstall old one - it had big issue with profiles.
http://sourceforge.net/projects/drupal-elfinder/files/Drupal%207/elfinde...
Comment #6
ph0enix commentedComment #7
boregar commentedHi, 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?
Comment #8
ph0enix commentedIs there any error messages in server log?
Comment #9
boregar commentedI can't access server logs on my provider's admin console, and nothing appears in Drupal's reports.
Comment #10
ph0enix commentedIs Drupal still operable or website down?
Backup index.php from Drupal root directory and insert following code to index.php after <?php
Try to access /elfinder or /?q=elfinder and see if there will be any errors on screen. Restore original index.php after experiment.
Comment #11
boregar commentedEvery other Drupal functionality is operable.
After inserting the 2 lines (ini_set...), nothing changed, still displaying a blank screen.
Comment #12
ph0enix commentedDid previous elfinder module version installed on this site before?
Comment #13
boregar commentedNo, 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.
Comment #14
laurent.lemercier commentedExactly the same symptoms in a fresh installation Hillmore described.
Drupal 7.10 or 7.x gave the same results.
Comment #15
ph0enix commentedTry to comment out in elfinder.install following line:
Then replace
$libpath = elfinder_lib_path();with
$libpath = 'sites/all/libraries/elfinder';Is there anything in logs?
Comment #16
boregar commentedSorry I had to deliver on time so I reverted to elFinder 1.2.
What about you Laurent? Did you try ph0enix' suggestion?
Comment #17
laurent.lemercier commentedI 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.
Comment #18
ph0enix commentedTry 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.
Unfortunately I cannot reproduce this for now.
Comment #19
laurent.lemercier commentedtonight 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
Comment #20
amjp commentedHi 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:
I'm not a developper, so I don't know where is the problem. ¿Could this help you?
Comment #21
laurent.lemercier commentedamjp : 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)...
Comment #22
ph0enix commentedTry to replace line
to
Comment #23
amjp commentedThanks,
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.
Comment #24
ph0enix commentedTry to edit elfinder.module:
1. Replace elfinder_add_css function to following:
2. Update code in elfinder_file_browser function.
Find line:
and replace it with:
Or wait next dev version build.
Also it possible that you need to uninstall module (with variables and tables) and enable it again.
Comment #25
amjp commentedIt works!! Thanks you very much.
Comment #26
ph0enix commentedPlease test and report any encountered issues.
Comment #27
ph0enix commentedComment #28
bcobin commentedI'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...
Comment #29
bcobin commentedWatchdog 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?
Comment #30
amjp commentedIf 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.
Comment #31
enxox commentedmy 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).
Comment #32
ph0enix commentedenxox, try to find in elfinder.module lines
and replace it with:
Comment #33
PazZze commentedI get following when trying to access /elFinder:
"Unable to connect to backend."
Comment #34
ph0enix commentedTry to open url /elfinder/connector and see if there any error messages on screen or in server error log.
Comment #35
PazZze commentedi 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."
Comment #36
Hilari commentedI have the same problem.
"Fatal error: Declaration of elFinderVolumeDrupal::_copy() must be compatible with that of elFinderVolumeDriver::_copy() "
Thanks
Comment #37
ph0enix commentedTry to update to Feb 28 build and latest elFinder 2 library
Comment #38
Hilari commentedI installed the latest version and this works!! :-)
Thank you!
Comment #39
PazZze commentedworks for me =)
Comment #40
enxox commentedlast dev (28 feb) seems working for me,
but I have now problem with tinymce.
browser page is blank (maybe an issue of tinymce?)
Comment #41
ph0enix commentedEitire page or elFinder popup? Could you please check logs for errors.
Comment #42
CinemaSaville commentedI'm having the same elFinder popup blank page issue as well having just installed the latest dev and elFinder 2 beta.
Comment #43
ph0enix commentedelFinder 2 beta library is not supported. Use latest library from http://sourceforge.net/projects/drupal-elfinder/files/Library/
Comment #44
rottielove commentedFatal 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).
Comment #45
CinemaSaville commented@phOenix
Thanks, that fixed it. Now working.
Comment #46
Angelo Giammarresi commentedHi,
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
Comment #47
ph0enix commentedPlease list sites/all/libraries/elfinder contents
Comment #48
Angelo Giammarresi commented@ 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
Comment #49
Angelo Giammarresi commentedHi,
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.
Comment #50
Angelo Giammarresi commentedHi,
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
Comment #51
Angelo Giammarresi commentedIn 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
Comment #52
narenpg commentedsubscribing.. 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
Comment #53
narenpg commentedComment #54
narenpg commentedAttaching firebug status..
Comment #55
narenpg commentedBy looking at this error looks like it is not able to find the libraries directory or the jquery..That is weird.
Comment #56
Angelo Giammarresi commented@ #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.
Comment #57
ph0enix commentedCannot 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.
Comment #58
narenpg commented@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.
Comment #59
ph0enix commentedPrivate filesystem support is available in 2.x dev version.
Comment #60
narenpg commentedThanks. I will try when i it is stable.
Comment #61
bancarddata commentedFWIW 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.
Comment #62
3rdLOF commentedHA!!! 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.
Comment #63
kaizerking commentedInstallation 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
Comment #64
lisazhou commentedHi 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!
Comment #65
ph0enix commentedlisazhou,
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
Comment #66
ph0enix commentedkannary100,
Try to use latest library http://sourceforge.net/projects/drupal-elfinder/files/Library/elfinder-l...
Comment #67
kaizerking commented@ ph0enix ,Why i am not getting the view correctly? I have described the problem #63
Comment #68
serialbob commentedHi all,
I've this one when i try to install.
Any idea ?
Thanks for all ;-)
Comment #69
pixlkat commentedI 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.
Comment #70
botser commentedSame issue here as #68 and #69
Comment #71
ph0enix commentedTables 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.
Comment #72
ph0enix commented@ 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).
Comment #73
kaizerking commented@ph0enix, after replacing the install file it is working
Comment #74
kaizerking commentedHow 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).
Comment #75
ph0enix commentedTry to find in inc/elfinder.drupal.inc following line
and replace it with
Comment #76
Christopher Riley commentedI tried installing the latest dev release and receive the following message on the admin/modules/list/confirm screen:
{"error":["Access denied"]}
Comment #77
Christopher Riley commentedI 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.
Comment #78
ph0enix commentedTry to clear cache and disable/enable elFinder module.
Comment #79
ph0enix commentedComment #80
zopa commentedComment #81
obithemaster commentedI'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?
Comment #82
Kvark commentedRTFM :)
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.
Comment #83
7thkey commentedHi 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
Comment #84
trong.nguyen.tcec commentedYou can make a change to make elfinder working well. https://drupal.org/node/2275771
Comment #85
ph0enix commentedComment #86
ph0enix commented