Roundcube Community Forum

Release Support => Pending Issues => Topic started by: T-13 on December 19, 2011, 02:11:30 PM

Title: Cannot attach files or forward messages with attached files
Post by: T-13 on December 19, 2011, 02:11:30 PM
i have IIS7 on a win server 2008 R2 and hmailserver

Roundcube will send and receive emails just fine but i can't attach any files to an email or forward an email with an attachment. I can however receive and download attachments that have been sent to me.

if i click the attachment icon on the top i get the browse prompt just fine but after I select the file it just says "Uploading file..." but never uploads it

I have the php safe mode set to OFF
my max post size is 25M my max file size is 20M and the file i'm testing is 401 bytes (text file)
I set the temp file directory to be the temp file in roundcube

anything else I can do to get this to work?
Title: Cannot attach files or forward messages with attached files
Post by: SKaero on December 19, 2011, 02:19:30 PM
Whats in the error log?
Title: Cannot attach files or forward messages with attached files
Post by: T-13 on December 19, 2011, 02:41:41 PM
a lot of failed logins, nothing about uploads
Title: Cannot attach files or forward messages with attached files
Post by: klausguenter on December 19, 2011, 07:15:04 PM
Have you switched file_uploads on in php?
Title: Cannot attach files or forward messages with attached files
Post by: T-13 on December 20, 2011, 09:56:21 AM
yes file_uploads = On

I get a 500 error when I try to forward an email with an attachment if that sparks anything?
Title: Cannot attach files or forward messages with attached files
Post by: SKaero on December 20, 2011, 02:38:42 PM
500 means server error, it should be putting something in the RoundCube error log.
Title: Cannot attach files or forward messages with attached files
Post by: T-13 on December 20, 2011, 04:36:21 PM
the error log has a few errors like this

[14-Dec-2011 12:07:42 -0600]: IMAP Error: Login failed for [email protected] from 70.89.242.50. LOGIN: Invalid user name or password. in C:\inetpub\wwwroot\Webmail\program\include\rcube_imap.php on line 199 (POST /?_task=login&_action=login)


that is all, i also checked IIS it doesn't have anything in the event log
and my Hmailserver doesn't have any real errors in its log ether
Title: Cannot attach files or forward messages with attached files
Post by: Julius Caesar on December 21, 2011, 04:51:56 AM
And what does the ISS-log mention about the 500-error?
Title: Cannot attach files or forward messages with attached files
Post by: T-13 on December 21, 2011, 03:51:09 PM
there are no errors in the IIS7 event log only "information" logs informing me its not really being used

"A worker process with process id of '2636' serving application pool 'Webmail' was shutdown due to inactivity.  Application Pool timeout configuration was set to 20 minutes.  A new worker process will be started when needed."

this is the 500 error

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

when i refreshed the error page it loaded the message without the attachment and allowed me to forward the message, i did receive it but still no attachment

apparently it was a php error not an IIS error, but that gave me the idea to dig into the error itself a bit... here is the php error

PHP Warning:  fopen(): Filename cannot be empty in C:\inetpub\wwwroot\Webmail\plugins\filesystem_attachments\filesystem_attachments.php on line 84


this is the iis call before the error
2011-12-21 21:12:40 ::1 GET / _task=mail&_id=9899985094ef24bc6f0394&_action=compose 80 - ::1 Mozilla/5.0+(Windows+NT+6.0;+WOW64;+rv:7.0.1)+Gecko/20100101+Firefox/7.0.1 500 0 0 1077
Title: Cannot attach files or forward messages with attached files
Post by: T-13 on January 04, 2012, 04:46:55 PM
does anyone know how to fix this or what it means?