Configuration Settings Missing - "WebFM root not set"

MkeHack - April 30, 2009 - 15:33
Project:Web File Manager
Version:6.x-2.10-rc4
Component:User interface
Category:bug report
Priority:minor
Assigned:Unassigned
Status:active
Description

acquia drupal 1.2.4 - (6.x)
version = "6.x-2.10-rc4"

I entered the Web File Manager configuration settings, saved configuration and it completes with no errors, WebFM root and role directories are created. When I open Web File Manger I get error "WebFM root not set". Also if I start the File Manger Configuration after saving a configuration the fields are all initialized to their programatic values. I have been unable to find the webfm configuration settings in the Drupal DB tables(tried webfm_file, variables). Where are they saved? What are my next steps I need to fix this? I have a programming background can trouble shoot but not a lot of PHP or Java experience but can muddle throug with some direction. Thank in advance for your help

#1

robmilne - April 30, 2009 - 15:40

The readme.txt may not be the most up to date but it should be complete enough to get up and running. The "WebFM root not set" warning means that you haven't set a root directory in webfm settings.

#2

MkeHack - April 30, 2009 - 15:54

directory structure is
file sytem: sites/default/files
WebFM: sites/default/files/webfm
Role: sites/default/files/webfm/role

I assumed that the directory sites/default/files/webfm is the root directory that was created in the configrations settings session. What am I missing, sorry?

#3

MkeHack - May 1, 2009 - 03:00

MORE INFO

I have done some high level research on some of the files for webfm modules. I assume that the variable_get function is used to webfm get configuration settings from the variable table. I also assume that the webfm.install is used to creat the table and variable needed to support webfm. I looked at webfm.install and located the code that is used to create the tables webfm_file and webfm_attach but no code to create the configuration setting variables in the variable table. I don't know if this makes any sense? Thanks for any help that can be provided.

#4

robmilne - May 1, 2009 - 12:29

variable_get() is a getter/setter of data in the 'variable' table. The vars created/fetched are called from within the php code.

#5

MkeHack - May 1, 2009 - 13:33

Can you tell me in which php code module the config settings variables are created? Since I can see that there are no config setting variables created in the variables table I don't know what else to do to trouble shoot this. Thanks for your help.

#6

robmilne - May 1, 2009 - 17:29

It is found in many php modules (ie: webfm.module). A line like variable_get('clean_url', 0) gets the 'clean_url' variable or creates it and sets it to zero if it doesn't already exist.

#7

ajithrajb - October 16, 2009 - 20:18

I too had the same issue.. I was just experimenting in my local system... i tried for some half an hour. but now its resolved. Since it was not setting root directory i manually created folder and set the permission using chmod(this is wrong step-- dont do this step). If u had created the WebFm directory on your own manually then delete that directory. Give the name for root directory as "WebFm" . Give appropriate directory name for each role. ex: anonymous role give anonymous. Check if Maximum file size per upload: is crossing the limit. By default it is 4Mb. But default limit in drupal is 2Mb. I was trying with default. I got this error

# Role root directory not set for anonymous user role
# Role root directory not set for authenticated user role
# Role root directory not set for moderator role
# Your PHP settings limit the maximum file size per upload to 2097152 MB.
Depending on your sever environment, these settings may be changed in the system-wide php.ini file, a php.ini file in your Drupal root directory, in your Drupal site's settings.php file, or in the .htaccess file in your Drupal root directory.
# Your PHP settings limit the maximum file size per upload to 2097152 MB.
# Your PHP settings limit the maximum file size per upload to 2097152 MB.

Later i changed limit to 1Mb. Note: make sure ur limit is less than or equal to limit.

Then i got this error
# Role root directory not set for anonymous user role
# Role root directory not set for authenticated user role
# Role root directory not set for moderator role

Solution:
Choose atleast any one of the option Webfm attachment. Ur problem ll be resolved. It'll set the root directory
Ex: check the option "Open attachments in a new browser window" or "Enable file size column"

It worked.

After success later even if u can uncheck that above mentioned option it'll still work. Hope it works for u too.. :) .. May be its a bug in development

#8

Niels Hackius - October 12, 2009 - 15:58
Priority:critical» minor

Ajith raj,
so you created the folders through the admin-interface of webfm and deleted them manually (server access, recursively) later?

After this you had to recreate them manually?

Also which Drupal limit are you talking about?

#9

ajithrajb - October 16, 2009 - 20:00

No need to create folders on ur own.. That's the mistake i did. I edited my previous comment(last post).. Please go through.. I was taliking about the limit maximum allowed file size... make sure Maximum file size per upload is less than or equal to limit set in php.ini.

 
 

Drupal is a registered trademark of Dries Buytaert.