For some reason I've not been able to upload using webfm. Currently I'm logged in as user#1 (admin) and have created a folder using the webfm interface. When I upload a file I recieve the following error: " Sites/default/webfm ...(file) could not be inserted into db", also it is not inserted into the file structure.

Other issue:
If i manually insert a file into a folder (not using webfm), I recieve "server is unreachable" when opening the folder through webfm.

Any suggestions?

Current Configuration:
-Default location is webfm (site/default/files/webfm/)
-Drupal 6.13
-mySql 5.0.67
-PHP 5.2.6
- apache 2.2.9
- Running on windows 2003 server

CommentFileSizeAuthor
webfm issue.jpg54.33 KBJcaro

Comments

robmilne’s picture

Sounds like a permissions issue. Check that the files and webfm root directories have the correct permission settings.

nhck’s picture

Status: Active » Closed (fixed)
gorson’s picture

Hi guys. i have the same issue but it appears that no tables are being created during the install of webfm.
I have modified the install file as per http://drupal.org/node/355678 #2,
changed
'fdesc' => array('type' => 'text', 'not null' => TRUE),
to
'fdesc' => array('type' => 'text', 'size' => 'normal', 'not null' => TRUE),
but still no tables.
Current Configuration:
-Default location is webfm (site/default/files/webfm/)
-Drupal 6.16
-mySql 5.1.11 (InnoDB)
-PHP 5.2.8
-apache 2.2.149
- Running on windows 2003 server
Thanks for any help!

cgmonroe’s picture

Try totally uninstalling WebFM (Not just disabling it). Then upgrade to the Dev version. This has a couple of patches relating to problems like this (and is fairly stable).

gorson’s picture

Thanks for the quick reply..

I disabled, then deleted webFM from the remote test server, then uploaded and enabled webfm-6.x-2.x-dev and the same problem still exists, ie no tables created.

I noticed that my previous settings were still there, ie. default file permissions, a role assignment I was using. Where are these settings stored?

Below is the latest watchdog entry if it helps. I had also tried to manually create the 2 tables but this did not work either:(

a:4:{s:6:"%error";s:12:"user warning";s:8:"%message";s:266:"Table 'test-nhmrc.webfm_file' doesn't exist
query: INSERT INTO webfm_file (fpath, uid, fsize, fcreatedate, perm, fmime, fdesc) VALUES ('_files_nhmrc/webfm/test_doc.doc', 1, 11264, 1280273499, 11, 'application/msword', '')";s:5:"%file";s:65:"[pathtositeroot]\sites\all\modules\webfm\webfm.module";s:5:"%line";i:2534;}

Again, thanks for any help.

gorson’s picture

Problem fixed. Reinstalled the webfm module using devel. For some reason that worked and created the tables:)