Am on drupal 6.2.

Problem:

1) Uploading: get an "unspecified error" message (no extra info in debug console). Oddly the file gets created on the server just fine.
2) when browsing a directory that has files in it, it will not list the files. Directories however get listed fine and the tree works as well.

Issue 1) may simply be due to the fact that it calls 2) after the upload is complete.

Other info:

- using pathauto and freelinking modules and site is using SSL with a self-signed certificate.

Anyone else run into this?

Comments

stantale’s picture

Firebug Info:

?q=webfm_js&action=read&param0=%252Fwebfm%252Fwiki (this is the correct path relative to the files directory)

the firebug response body is completely empty.

Response Headers
Date Thu, 11 Dec 2008 18:52:07 GMT
Server Apache/2.0.59 (CentOS)
X-Powered-By PHP/5.1.6
Expires Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified Thu, 11 Dec 2008 18:52:07 GMT
Cache-Control store, no-cache, must-revalidate, post-check=0, pre-check=0
Content-Length 0
Connection close
Content-Type text/html; charset=utf-8

Request Headers
Host myhost....
User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip,deflate
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive 300
Connection keep-alive
Content-Type application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With XMLHttpRequest
Referer https://myhost...
Content-Length 38
Cookie SESS360d5a017bdcce41288656ed6d751760=pqgfhksp9gq6rbqkrnvji0gnb0; has_js=1

robmilne’s picture

Often there are bad synergies with the javascript of other modules. Experiment with disabling other contrib modules - I know from what others have said that Devel causes webfm to malfunction.

nhck’s picture

I get this error message in Drupal 6.8, Opera(9.63) as well, but only after the first upload.

this is the error log:

Event thread: load
Error:
name: TypeError
message: Statement on line 2209: Cannot convert undefined or null to Object
Backtrace:
Line 2209 of linked script http://sub.my.domain.de/testing/pre/sites/sub.my.domain.de/dateien/js/bf...
attach_arr = Webfm.$(Webfm.attachFormInput).value.split(',');
Line 841 of linked script http://web.logu.tu-harburg.de/testing/pre/sites/web.logu.tu-harburg.de/d...
Webfm.menuAttach(null, data['fid']);
Line 4342 of linked script http://sub.my.domain.de/testing/pre/sites/sub.my.domain.de/dateien/js/bf...
handler.oncomplete(response.data);
Line 1 of function script
window.iframeHandler();
...
stacktrace: n/a; see 'opera:config#UserPrefs|Exceptions Have Stacktrace'

tlhong’s picture

There may be a line missing ";". Check the js/webfm.js line 149. After I add semicolon at the end. It seems to work.

Webfm.attachFormInput = "edit-attachlist";

robmilne’s picture

Thanks for noticing the missing ';'. I'm used to compilers which point out these kinds of omissions.

akeimou’s picture

i had exact same problem. moreover, the newly uploaded file shows up in the directory listing after a page refresh but the context menu on right-click disappears every now and then so that it was not possible to attach the file to a node.

tried disabling other contrib modules as suggested by robmilne and found that disabling Secure Pages module makes all webfm troubles disappear. this led to discovery that SSL Engine was not turned on in the Apache server settings for the site! so, had that turned on, enabled Secure Pages, and problem is gone.

i'm sure "Unspecified Error" problem can be caused by different things but mine was due to incorrect SSL setup.

cgmonroe’s picture

FWIW - The "Unspecified Error" is produced by the Drupal JSON function. This function is used on every Ajax call Drupal makes and I believe only returns this when the response string passed to it is null or empty. If it can't parse the response, it returns the string it was passed.

So, with SSL not responding to Ajax calls, you got an empty string (but with a 200 OK response?) and that caused the unspecified error.

nhck’s picture

Status: Active » Closed (cannot reproduce)

-

nhck’s picture

Status: Closed (cannot reproduce) » Active
nhck’s picture

Status: Active » Closed (cannot reproduce)

I'm closing this ghost bug. We need more input with a more recent version.