During installation of webmail module I am getting the error :"The weights of modules file and file_attach are incorrect for Webmail Plus configuration. Webmail Plus needs to have a weight less than File but greater than File Attach. You can fix it by hand or using this experimental feature."
But on clicking on the "experimental feature" link another error comes : "Fatal error: require_once() [function.require]: Failed opening required 'sites/default/modules/webmail_plus/webmail_plus.fix_weight.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/visvas/public_html/eboard/includes/menu.inc on line 346 "
Does it related to post :http://drupal.org/node/428944
any ideas?
what this error is ? and how i could i fix it?
Comments
Comment #1
pankajshr_jpr commentedComment #2
keinstein commentedI had the same issue and found out, that the logic in webmail_plus is misleading.
if($file_weight->weight=$file_attach_weight->weight || $file_weight->weight>$file_attach_weight->weight) {
should read like
if($file_weight->weight<=$file_attach_weight->weight+1) {
The next error is
db_query("UPDATE {system} SET weight = -5 WHERE name = 'webmail_plus' AND type = 'module'");
This should be like
db_query("UPDATE {system} SET weight = %d WHERE name = 'webmail_plus' AND type = 'module'",
($file_weight +$file_attach_weight->weight) / 2 );
or something like that (ensure, that no integer overflow will occure).
I set the weight of webmail_plus to 5 is that OK?
Comment #3
my-family commentedI have exactly the same problem as described in the first post (the same version, the same behaviour) and no idea what to do... Thanks in advance for help.
Comment #4
scripthead commentedExcellent fix, I am going to add this to the next release for sure!
Comment #5
Grizz commentedAnd when will the next release be?
Grizz
Comment #6
brianbrown commentedThe first fix listed above (#2) has been implemented; the second one has not (as of 6.x-1.x-dev) 2009-Oct-03. The addition of the second change fixes this issue!
-B
Comment #7
pankajshr_jpr commentedComment #9
wimvanaelst commentedkeinstein, Where did you change the weight of webmail plus ? I have exactly the same error as described by pankajshr. Is the solution to use the development release ?