Brian,
This is perfectly appropriate for the mailing list (forwarding there now).
- paul
-------- Original Message -------- Right... I was seeing this exact same problem. It looked like it wasn't able to create the temporary file for some reason.
Actually, if you try uploading a large file and look in the tmp directory that php uses by default (/var/tmp, methinks) *while* it is uploading, you can see if the file is growing is size or not.
Best as I could figure it, it seemed like something internal to PHP and not anything to do with Squirrelmail that was failing.
And for me, a complete deinstall, clean rebuild and reinstall was the only way to clear it up. Of course, I'm dealing with a FreeBSD system. To see the specifics of what I had included, you can search the Squirrelmail archives... one of my recent posts listed the features I had compiled into PHP that allowed this to execute successfully. Multi-byte support was one I excluded, but others had reported no problems with having that compiled in.
I think this would be a good question to bring up with the PHP community, or start searching there to see if other people are having the same issues.
Although, just like with Squirrelmail, I'll bet these sorts of questions are popping up in the mailing lists of particular applications and not in the core tech.
Could be a Makefile/build issue with a later release of PHP?
Dunno... (And, Paul, hope you don't mind that I didn't CC the mailing list. I'd be more inclined to add something there when/IF I get a more concrete answer to this problem).
As Paul suggested, try cleaning up the PHP build. Also, if you're installing PHP, you might also have to re-run ldconfig to refresh which shared libraries are getting picked up and used; the PHP build process specifies that that should be run manually after the build (maybe that's another source of the issue? Stale shared libraries?).
L8r.
Brian 8)
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
