My installation of DBFM won't work and just says "Invalid directory" in a JS alert. I can't see what I'm doing wrong - the directory is "files" and the DBFM directory is "/dbfm" and the /files/dbfm directory exists (Windows, so no chmod to do, made sure it's *not* read only). Any suggestions? I can't find any discussion anywhere else.

Comments

hjg2000’s picture

Assigned: Unassigned » hjg2000

Hello,

thank you for this good module - this is the right moment for me - I'm happy!

Only ... I have also this problem with "invalid directory".
The bug is perhaps:
- my Drupal have in MySQL: "$db_prefix = 'dru_';"
- DBFM create the "dbfm_perm" without "dru_" in the database
- the program look for "dru_dbfm_perm" and cannot find
- the error is "invalid directory"

Have a good day!

Hans

greg.harvey’s picture

Hi Hans,

Thanks for expanding on my issue. I, however, was not using a prefix, so the issue seems to exist whether a prefix is specified or not. =(

rooey’s picture

DBFM doesn't give a monkeys about the filesystem. It's all held in the database table (dbfm_file) did you configure via the admin screen?

What OS/platform etc?

Details!

greg.harvey’s picture

Hi - I visited the admin screen and left *everything* as default - it didn't work.

Windows XP Pro
XAMPP 1.6.2
Drupal 5.7

Don't know what else I can tell you? The message is in the first post and nothing else presented. It just didn't work. =(

rooey’s picture

Assigned: hjg2000 » rooey
Status: Active » Closed (duplicate)
rooey’s picture

It's also worth noting that you can NOT create root directories from any other account than the drupal "root" account (first account made with drupal).

ench0’s picture

If "DBFM doesn't give a monkeys about the filesystem" then why is there the following comment about the "Root directory:" field in the admin/settings/dbfm screen:

"This path is relative to "File system path" set in admin/settings/file-system and
must be preceeded with a slash."

This implies that it does actually depend/rely on the Drupal File System and is confusing to new users. Perhaps this message should read something like 'this is a virtual path, which exposes DBFM's internal file system by mapping it relative to the "File system path" set in admin/settings/file-system. This path must be preceded with a slash.'

ench0’s picture

Title: Invalid directory message » DBFM: 'Invalid directory' message

Hmm, actually according to this: http://drupal.org/node/188506,
DBFM truly has nothing to do with the file system so my previous assumption that DBFM's file system is mapped as part of Drupal's File System is probably incorrect.

ench0’s picture

Greg, I think I had the same problem as you and I may have found a way to fix it.

Please confirm whether your dbFM interface looked like the dbfm-no-icons.jpeg screenshot attached here: http://drupal.org/node/236768#comment-787759 . If yes then I also explain how I fixed the 'Invalid directory' problem in that same post.

I also use a XAMPP environment on Windows XP (Media Center), here's my settings:

###### ApacheFriends XAMPP (basic package) version 1.6.5 ######

+ Apache 2.2.6
+ MySQL 5.0.51
+ PHP 5.2.5 + PHP 4.4.7 + PEAR
+ PHP-Switch win32 1.0 (please use the "php-switch.bat")
+ XAMPP Control Version 2.5 from www.nat32.com
+ XAMPP Security 1.0
+ SQLite 2.8.15
+ OpenSSL 0.9.8g
+ phpMyAdmin 2.11.3
+ ADOdb 4.96
+ Mercury Mail Transport System v4.52
+ FileZilla FTP Server 0.9.24
+ Webalizer 2.01-10
+ Zend Optimizer 3.3.0
+ eAccelerator 0.9.5.2 for PHP 5.2.5 (comment out in the php.ini)

rooey’s picture

Title: DBFM: 'Invalid directory' message » Fix for DBFM 'Invalid directory' message?

Indeed - the path specified here really is whatever you want

put something like

"filesystemofdoom" in the text box and you'll see what I mean :)

geoff_eagles’s picture

Status: Closed (duplicate) » Closed (fixed)

I think it's about time this was closed. Most of the problem was - I think - caused by an incorrect text description on the admin configuration page. The documentation should have made it plain that there is no longer any connection to the actual filesystem. The notional root directory is entered - without a slash - on the admin config page.

greg.harvey’s picture

ench0 makes an interesting point about the icons though. I haven't tried the "fix", but it sounds feasible...?

geoff_eagles’s picture

indeed, ench0's correct - dbFM must be able to find the icons directory in order to work.