[imp] IMP-CVS Compose-Sending Error

Eric Jon Rostetter eric.rostetter@physics.utexas.edu
Thu, 14 Mar 2002 13:28:01 -0600


Quoting Steve Siegelman <ssiege2@emory.edu>:

> After applying I am having a problem sending an email which contains
> attachments of a few mb.

After upgrading from php 4.0.x to php 4.1.x I've noticed various problems
with file uploading...

> In IE, the compose screen disappears and I get the IE error page:
> 
> The page cannot be displayed
> 
> Cannot find server or DNS Error
> Internet Explorer
> 
> In Netscape, I get a popup window:
> 
> The document contained no data
> 
> In either case, the email does send fine.

Yes, I've seen this with any kind of file upload after upgrading php.
It is not a DNS problem obviously.
 
> If I send a small email with no attachments, no problem.
> If I send an email with small attachments of just kb, no problem.

It seems to be related directly to file upload, and generally is
size related...
 
> I saw one posting with a similiar problem but no real conclusion.

I was able to get around this by doing the following, none of which 
make any sense, but it solved the problem.

1) Make sure you have logging setup correctly.  It makes no sense, but
when logging wasn't setup right (I do all syslog, and not file 
logging -- not sure if that matters) I would get this error.

2) Check you php.ini settings for memory_limit, max_post_size or
post_max_size (not sure which), and upload_max_filesize.

In the past, if upload_max_filesize was xMB, you could upload files
to xMB, even if memory_limit was smaller.  This doesn't seem to work
anymore.  It apparently buffers the file in memory more, and hence
if upload_max_filesize is 20MB, but memory_limit is 10MB, you won't
get anything larger than 10MB or so.  Not sure why, this is just my
experience.


> Has anyone else seen this problem or have a work around?

I've seen very similar problems, and have a non-sensical work-around.
Maybe it will work for you too?

-- 
Eric Jon Rostetter 
The Department of Physics 
The University of Texas at Austin 
Austin, Texas 78712-1081 

Office:    RLM 7.126 
Telephone: 512-471-5821 
Email:     eric.rostetter@physics.utexas.edu 

Fragen Sie nicht was Ihre Kumputer tun koennen,
aber fragen Sie was Sie fur Ihre Kumputer koennen.