Roundcube Community Forum

 

frustrated with attachments - FIXED

Started by pekulior, November 12, 2007, 02:50:53 AM

Previous topic - Next topic

pekulior

i'm sure this may have already been beaten to death, but i've looked all over the site and cannot find anything i haven't tried so far.

I'm having a problem with uploads. I have the RC 2 that is listed on the roundcube.net site. Everything besides the attachments is working just fine. I have the temp directory set to 777 with the webserver as the owner because i read that may help. i've changed the .htaccess for what you see below

<IfModule mod_php4.c>
 php_flag display_errors Off
 php_flag log_errors On
 php_value error_log logs/errors
 php_value upload_max_filesize 20M
 php_value post_max_size 30M
</IfModule>

<IfModule mod_php5.c>
 php_flag display_errors Off
 php_flag log_errors On
 php_value error_log logs/errors
 php_value upload_max_filesize 20M
 php_value post_max_size 30M
</IfModule>

still not working. when i upload a file in roundcube it doesn't give me any errors. it shows the circle with a slash through it and the name of the file. when i click send it says the message was sent successfully. i check the logs and there are no errors. i check the temp directory after i uploaded the file and nothing ever. is there something i may have missed somehow? if so i would love to see it! i love how roundcube works besides this, but i'm afraid if i can't get it to work i will have to go with a more simple program that works correctly.

SKaero

Are there any errors in the in error logs on the sever, and whats your php max script execution time?

pekulior

if you're talking about the logs my host has access to and i don't then i can't tell you an answer for that. i checked the logs directory and there are no errors listed. max execution time has been set to 150

it appears everything uploads ok through rouncube but no files are ever stored and no attachments are ever sent.

hshn

I have made a sensational discovery (:-):

With Firefox there's no problem to send emails with greater attachments. The upload is very big, the max_execution_time from 120s is sufficient. The problem happens in my environment only with Opera 9.22. With Opera it's not possible to upload attachments greater than (apr.) 200K. Its mysterious! The same OS on client-side, the same mailserver, the same preferences in both browsers (esp. proxy server) ...


Here is my .htaccess:
....
<IfModule mod_php5.c>
 php_flag   display_errors Off
 php_flag   log_errors   On
 php_value   error_log    logs/errors
 php_value   upload_max_filesize   10M
 php_value   post_max_size  20M
 php_value   memory_limit  256M
 php_value   max_execution_time   120
</IfModule>

Best regards,
Heidrun


pekulior

unfortunately, i'm unable to send attachments of any size. it doesn't matter if it is 2 Bytes or 2M. it appears to attach it fine in the email but when i send it it doesn't show any attachments in the sent mail folder under the email i sent or on the receiving end. i've tried squirrel mail and it works fine....i just like the way roundcube looks.

i did check my error logs again and there is an error but i don't see how it would be an issue with attachments...

[12-Nov-2007 07:05:35] PHP Warning: Cannot modify header information - headers already sent in /webmail/program/include/rcube_html.inc on line 163

pekulior

i went ahead and changed my .htaccess to the following and it appears to be working now. I'm using servage as my host so if anyone is having the same issue here is the fix i used for myself

# AddDefaultCharset UTF-8
AddType text/x-component .htc

<IfModule mod_php4.c>
 php_flag display_errors Off
 php_flag log_errors On
 php_flag file_uploads On
 php_value error_log logs/errors
 php_value upload_max_filesize 10M
 php_value post_max_size 12M
 php_value   memory_limit  256M
 php_value   max_execution_time   120
 php_value LimitRequestBody 81920000
</IfModule>

<IfModule mod_php5.c>
 php_flag display_errors Off
 php_flag log_errors On
 php_flag file_uploads On
 php_value error_log logs/errors
 php_value upload_max_filesize 10M
 php_value post_max_size 12M
 php_value   memory_limit  256M
 php_value   max_execution_time   120
 php_value LimitRequestBody 81920000
</IfModule>

<FilesMatch &quot;(\.inc|\~)$&quot;>
 Order allow,deny
 Deny from all
</FilesMatch>

Order deny,allow
Allow from all

I also changed the line in db.inc.php from

// maximum length of a query in bytes
$rcmail_config['db_max_length'] = 512000; // 500K


to the following

// maximum length of a query in bytes
$rcmail_config['db_max_length'] = 81920000;

don't know which thing did it but it's all working now and i'm not changing anything

SteveV

Hello,
I also working with Roundcube by Servage..
I have exactly the same problem you had..
I Copied your .htaccess file and modified the db.inc but I still can't send attachments ?!
It's very strange..
Sometimes it works and sometimes it doesn't
Did you changed anything more ?

I also contacted Servage but they say it's a Roundcube programming problem..

Thanks for your help !