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

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. :(

Dirk

On 22 May 2004, at 1:38, Charles Ulrich wrote:

Thanks, Brian, for your suggestion and to everyone else that sent advice.
The problem has been solved and I'd like to follow up and document it
here. My co-worker tracked down the problem. Turns out that the filesystem
of the jail had incorrect permissions on /var/tmp, which is where PHP
stores uploaded files before they are finished. Once proper permissions
were assigned, attachments uploaded just fine.


It still seems a little odd, though, that SM didn't give a more speficic
error. I know nothing of PHP, but most other languages don't make it a
habit of throwing out potentially useful error messages when they can't
write a specific file. Even a log entry would have been great. Just
something for the developers to think about if they track this list.


Thanks again for all of your help, everyone.

Charles Ulrich



-------------------------------------------------------
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