I have to 2 server configured to run SquirrelMail v. 1.4.3a

I can upload attachements when composing on the one, but can't on the other.

The attachements aren't that large 20K - 200K.

The error I get is:

ERROR:
Could not move/copy file. File not attached

I've made sure that my attachement directory has the proper permissions by
chmod -R 733 <SM_attach_dir>, I also did a chown -R nobody <SM_attach_dir>
to make all of the folders included in that directory writable by the user
httpd runs as.  I even went so far as chmod 777 the <SM_attach_dir> to see
if that made any difference, it didn't.

/tmp/
`-- [drwx-wx-wx nobody   nobody  ]  SM_attach
    |-- [drwx-wx-wx nobody   nobody  ]  3
    |   `-- [drwx-wx-wx nobody   nobody  ]  7
    |       `-- [drwx-wx-wx nobody   nobody  ]  9
    |           `-- [drwx-wx-wx nobody   nobody  ]  b
    `-- [drwx-wx-wx nobody   nobody  ]  7
        `-- [drwx-wx-wx nobody   nobody  ]  b
            `-- [drwx-wx-wx nobody   nobody  ]  9
                `-- [drwx-wx-wx nobody   nobody  ]  0


The error in apache's error log is:

[Thu Aug 19 15:25:01 2004] [error] PHP Warning:  File upload error -
unable to create a temporary file in Unknown on line 0
[Thu Aug 19 15:25:01 2004] [error] PHP Notice:  Undefined index:
attachfile in /usr/local/apache/htdocs/squirrelmail-1.4.3a/src/compose.php
on line 1276

The part of the compose.php file looks like so:

/* True if FAILURE */
function saveAttachedFiles($session) {
    global $_FILES, $attachment_dir, $attachments, $username,
           $data_dir, $compose_messages;

    /* get out of here if no file was attached at all */
    if (! is_uploaded_file($_FILES['attachfile']['tmp_name']) ) {
        return true;
    }

    $hashed_attachment_dir = getHashedDir($username, $attachment_dir);
    $localfilename = GenerateRandomString(32, '', 7);
    $full_localfilename = "$hashed_attachment_dir/$localfilename";
    while (file_exists($full_localfilename)) {
        $localfilename = GenerateRandomString(32, '', 7);
        $full_localfilename = "$hashed_attachment_dir/$localfilename";
    }

    // FIXME: we SHOULD prefer move_uploaded_file over rename because
    // m_u_f works better with restricted PHP installes (safe_mode,
open_basedir
)
    if ([EMAIL PROTECTED]($_FILES['attachfile']['tmp_name'], $full_localfilename)) {
            if
([EMAIL PROTECTED]($_FILES['attachfile']['tmp_name'],$full_localfilename))
{
                return true;
                }
    }
    $message = $compose_messages[$session];
    $type = strtolower($_FILES['attachfile']['type']);
    $name = $_FILES['attachfile']['name'];
    $message->initAttachment($type, $name, $full_localfilename);
    $compose_messages[$session] = $message;
    sqsession_register($compose_messages , 'compose_messages');
}

If it will help I can post the entire contents of compose.php


Both servers are running apache v 1.3.31

Both servers are running php v 4.3.8.  I copied the working server's
php.ini file to see if that may have something to do with it - it does
not.

Both server have the same config.php & the same config_local.php file.

Except from config_local.php

...
$imapPort = 143;
$imap_server_type = 'uw';
$useSendmail = false;
$show_prefix_option = false;
$default_sub_of_inbox = false;
$show_contain_subfolders_option = false;
$data_dir = '/SM_data';
$attachment_dir = '/tmp/SM_attach';
$force_username_lowercase = true;
$default_use_mdn = false;
$allow_thread_sort = true;
$allow_server_sort = true;
$hide_sm_attributions = true;
$dir_hash_level = 4;
$plugins[0] = 'filters';
//$plugins[1] = 'sent_subfolders';
//$plugins[2] = 'squirrelspell';
$plugins[3] = 'delete_move_next';
$plugins[4] = 'forced_prefs';
$plugins[5] = 'login_notes';
$plugins[6] = 'message_details';
...


I don't know where to proceed from here.  Any suggestions/help would be
appreciated.

TIA,

--Raf











-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to