Hello,

We installed filebrowser on our website but in the root files work but not in subdirectorys:
Unable to get files for this directory

http://www.sharedbans.com/filebrowser/sharedbans+plugins/files/public/sh...

We tried changing chmod settings, but this message keeps coming up, HELP!

Comments

mrmachine’s picture

Component: User interface » Code

i get this error, too ... i'm using Drupal 4.7 beta5 and have PHP5 installed. not sure if it matters, but i have Drupal installed on a subdomain. Filebrowser navigates folders ok and shows the icons, but when clicking on a file (i'm using it for mp3 directories), it says "unable to get files for this directory".

theque’s picture

Title: Keeps saying: Unable to get files for this directory » Quick patch
Status: Active » Needs review

Goto line 234, find

$link = "<a href=\"$completepath\">$icon $file</a>";

an replace it with

$link = "<a href=\"/$completepath\">$icon $file</a>";
mrmachine’s picture

Thanx - that worked for me ;)

heine’s picture

Title: Quick patch » 'Unable to get files for this directory' when in directory
Assigned: tcviper » heine

changing title

heine’s picture

Assigned: heine » Unassigned

.

ak’s picture

Doesn't worke for me. I've got drupal instaled in www.example.com/drupal/, pointing filebrowser to the files folder and the files where linking before the patch to www.example.com/drupal/filebrowser/files/somefile witch doesn't exist and now it links to www.eample.com/files/somefile witch is although wrong. It should be somehow www.example.com/drupal/files/somefile.

gábor hojtsy’s picture

Category: support » bug
Status: Needs review » Fixed

The 4.7 and HEAD (cvs) versions of filebrowser all have this bug fixed since mid May. Please grab a new tarball and use the new module.

Anonymous’s picture

Status: Fixed » Closed (fixed)