I checked permissions on /var/tmp and they seem fine, although php.ini does not define the upload tmp directory (commented out, but even if defined the error occurs).

Also I always get the same errors in the Apache logs:

[Tue May 25 10:08:33 2004] [error] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
[Tue May 25 10:08:34 2004] [error] PHP Notice: Undefined index: attachfile in /var/www/html/webmail/src/compose.php on line 1276
[Tue May 25 10:09:31 2004] [error] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
[Tue May 25 10:09:32 2004] [error] PHP Notice: Undefined index: attachfile in /var/www/html/webmail/src/compose.php on line 1276
[Tue May 25 10:09:45 2004] [error] PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0
[Tue May 25 10:09:46 2004] [error] PHP Notice: Undefined index: attachfile in /var/www/html/webmail/src/compose.php on line 1276


Now, that undefined index error to me is an indication of something going a bit wrong in compose.php

Nope. It's an undefined index because PHP couldn't put a file in your temp directory. You most always need to solve the *first* error and the following errors will disappear.


I had SM, Apache and PHP installed on RH 9 as packages and it all worked fine, but I had to compile PHP to get some features I needed (vanilla + multi byte support) and now that upload feature is broken. :(

Well, reinspect your compile and config options and make sure you don't have another conflicting install on your machine, because the first error clearly indicates that it is not able to put a file in its temp directory, which it doesn't even seem to be able to identify ("Unknown").


 - paul


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
--
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