Hi,
I've installed WebFM, but I'm unable to use it; as soon as I go to the Web File Manager page, I get a "server is unreachable" error. I don't even see my root webfm directory, can't upload anything, etc. After fiddling with webfm.js, I found out that the error originates in this function at line 1173:
Webfm.tree.prototype.callback = function(string, xmlhttp, cp) {
Webfm.progressObj.hide();
//alert(xmlhttp.statusText);
if (xmlhttp.status == 200) {
cp.content = Drupal.parseJson(string);
Webfm.dbgObj.dbg("tree fetch:", Webfm.dump(cp.content));
//clear dir_tree div
Webfm.clearNodeById(cp.rootId);
Webfm.dropContainers = [];
// Recursively build directory tree from php associative array
var parent = Webfm.$(cp.rootId);
cp.buildTreeRecur(cp.content.tree, parent, '');
cp.init();
if(cp.list)
Webfm.dirListObj.fetch(cp.content.current);
} else {
Webfm.alrtObj.msg(Webfm.js_msg["ajax-err"]);
}
}
At this point, xmlhttp.status equals 403 in my case, but I don't know much about AJAX, so I don't know what causes it.
I'm running Drupal 5.2, and have tried both webfm-5.x-1.11 and webfm-5.x-1.x-dev.
I have files specified as my File system path in admin/settings/file-system (i.e. the default), and have created a webfm subdirectory under that directory, with mode 775 (have also tried 777 with no success), which I have specified as WebFM's root directory.
I have no other modules installed in this brand new install of Drupal 5.2.
Any ideas? Things I can look at? I'd really like to use this module since it's the only one I can find that suits my needs for this site.
Comments
Comment #1
robmilne commented403 is the forbidden error - something one normally sees if .htaccess is blocking access to a directory or permissions are insufficient. Does your install of drupal work without webfm? If you enable the upload module can you upload and access files?
Comment #2
Adhemar commentedMy install works fine without webfm, and I can upload, attach, and view files with the stock Upload module with no problems.
I have not created any .htaccess files of my own.
Comment #3
robmilne commentedI'm not sure what else to suggest other than making sure that javascript is enabled on your browser. Can you ftp files to the webfm directory? What are your client/server particulars?
Comment #4
Adhemar commentedI've tried with Opera, Firefox and IE7, all with JavaScript enabled, all get the same error. As for the server, it's apache running on FreeBSD. I can't tell you much about the version of apache and its settings, since I don't have root access to the machine, and I can't find the httpd.conf file either. Any ideas on where to find it, and what settings I need to check?
Comment #5
robmilne commentedYou might want to have a look at php.ini too, though without root access you probably won't be able to change much on the server. Sorry I can't be more help - remote diagnosis is difficult.
Comment #6
Adhemar commentedThanks for your help, I understand this is difficult. Can you tell me what setting I should check?
Comment #7
robmilne commentedI'm not an expert in either httpd.conf or php.ini. Google them. Talk to your server admin too - he/she/they might know immediately what the problem is.
Comment #8
Crake commentedI'm running Drupal 5.2 I'm only getting a 'server is unreachable' when using webfm with internet explorer 6. It is working fine in Explorer 7 and Firefox. The error seems to take the server/database out, including another of my sites running on the same server, for a minute until it all comes back.
Anyone got any further with tracking this problem down?
Comment #9
robmilne commentedThis issue is stale and without resolution or further info from the submitter.
Comment #10
jmetisi commentedFor if it helps someone, I solved it changing in the settings.php file the line:
$ base_url = 'http://newsite.com';
to point to the new site and not to the old one, after a migration of your site.
Regards.