First of all i want to say: sorry for my english :). And the second is: this is very strange problem.
The Problem:
Can't attache some files (for example file with size abot 0,7 mb and extension "zip"). Some Files is attached successfully, but some files has error (see attachments).
1. All configuration i checked: php.ini, .htaccess, apache file info module. All of this is allow to attached any files and big size files to...
2. For all whos want to say me: give us your config files - ok - here they are:
main params:
---------php.ini------------
file_uploads = On
upload_tmp_dir = /tmp/httpd
(directory has owner is apache and rights 777)
upload_max_filesize = 128M
max_file_uploads = 50
note: i'm also have a "temp" and "tmp" directory into roundcube folder to exclude that reason of the problem.
---------.htaccess--------- the file is placed into roundcube directory (part of file)
<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 50M
php_value post_max_size 50M
php_value memory_limit 128M
php_value safe_mode Off
php_flag safe_mode Off (this is a double option because i've don't sure about correct option "flag" or "value")
php_flag register_globals Off
php_flag zlib.output_compression Off
php_flag magic_quotes_gpc Off
php_flag magic_quotes_runtime Off
php_flag magic_quotes_sybase Off
php_flag suhosin.session.encrypt Off
#php_value session.cookie_path /
php_flag session.auto_start Off
php_value session.gc_maxlifetime 43200
php_value session.gc_divisor 500
php_value session.gc_probability 1
</IfModule>
-----
As you can see at second attachment file the picture, wich are contain the example - where i can attachted several files. Some files is successfully atachted.
----
i suppose that a problem is into some mime files detection.
the code
<?php
if ( function_exists('finfo_open') ) {
echo "ok";
}
else {
echo "no";
}
?>
gives me "ok" - and i suggest that the problem not into a fileinfo module because that module is work.
for now i can't find the solve of this problem.
--------------
Some Resume:
The files with extensions: zip, mp3 and tar can't be upload (failed).
I try to find out - what if this files is listed somewhere - and find a file: config/mimetypes.php into rouondcube directory.
BUT! i try to change it (and also restart httpd) - it does not work!
Please - help me by your ideas, advices and some thinks.
Thanks.
Whats in the error log?
Quote from: SKaero on February 25, 2015, 12:27:02 PM
Whats in the error log?
I have this messages:
[25-Feb-2015 16:02:29 Asia/Yekaterinburg] PHP Warning: rcube_cache: max_packet_size (1046576) exceeded for key 52338825554eda05886f88148ce6974689636dc87cb30773e87cc3. Tried to write 5485168 bytes in /var/www/mail.seven-sky.net.ru/program/lib/Roundcube/rcube_cache.php on line 334
[25-Feb-2015 23:09:09 Asia/Yekaterinburg] PHP Warning: rcube_cache: max_packet_size (1046576) exceeded for key 132169116454ee0fb3e95747aeb0ccda186dbbf7cf6b3ac426b452a. Tried to write 2756356 bytes in /var/www/mail.seven-sky.net.ru/program/lib/Roundcube/rcube_cache.php on line 334
I tried to find out what does it mean, but my attempt is failed. I supporse that this is code need to write some info into MySQL DB, But i don't need it. I need only temporary cache on disk and than send a mail...
Here is a list of my active plugins:
acl
additional_message_headers
archive
debug_logger
emoticons
hide_blockquote
http_authentication
identity_select
jqueryui
legacy_browser
markasjunk
new_user_identity
subscriptions_option
Any thinks?
I have found some interesting thing:
Look at picture
mark by green is successeffuly added as attachments
mark by red - NOT!
Why? I'm confused Failed file size is between 1 - 2 Mb... Hmmmm....
PS: and also file DSC05704 with size about 6,6 mb can not be upload, BUT FILE with size 6,5 DSC07035-2 is uploaded succeffully...
some magic...
sorry for double files :)
Any ideas?
PS: today i have seen that one of my hosters use the same version of roundcube, but on server of my hoster i have NOT this error... the roundcube work very well... :(
what do I do?
Quote from: descaler on February 25, 2015, 01:28:09 PM
Quote from: SKaero on February 25, 2015, 12:27:02 PM
Whats in the error log?
I have this messages:
[25-Feb-2015 16:02:29 Asia/Yekaterinburg] PHP Warning: rcube_cache: max_packet_size (1046576) exceeded for key 52338825554eda05886f88148ce6974689636dc87cb30773e87cc3. Tried to write 5485168 bytes in /var/www/mail.seven-sky.net.ru/program/lib/Roundcube/rcube_cache.php on line 334
[25-Feb-2015 23:09:09 Asia/Yekaterinburg] PHP Warning: rcube_cache: max_packet_size (1046576) exceeded for key 132169116454ee0fb3e95747aeb0ccda186dbbf7cf6b3ac426b452a. Tried to write 2756356 bytes in /var/www/mail.seven-sky.net.ru/program/lib/Roundcube/rcube_cache.php on line 334
I tried to find out what does it mean, but my attempt is failed. I supporse that this is code need to write some info into MySQL DB, But i don't need it. I need only temporary cache on disk and than send a mail...
Here is a list of my active plugins:
acl
additional_message_headers
archive
debug_logger
emoticons
hide_blockquote
http_authentication
identity_select
jqueryui
legacy_browser
markasjunk
new_user_identity
subscriptions_option
Any thinks?
max_packet_size is talking about the database, not sure if its related since attachments aren't stored in the database by default. You may want to try with a fresh Roundcube database incase some database structure changes didn't get updated in the updates.