Summary | Adding Attachments don't work |
Queue | IMP |
Queue Version | 4.1.3 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | s.suther (at) gmx (dot) de |
Created | 06/20/2007 (6579 days ago) |
Due | |
Updated | 03/08/2010 (5587 days ago) |
Assigned | |
Resolved | 06/20/2007 (6579 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
The problem is of a bad configuration of the file php.ini
If to form your MTA for example postfix, sendmail etcÂ… with a quota of
mail of 150MB for example, and want to send/receive archives of size
of 80 MB (I have users who have requested me that amount) and you have
a configuration php.ini in upload_max_filesize, post_max_size,
memory_limit less than (in this example) 150MB is likely that is the
cause of the error.
You should raise these values according to the mail quota for sending
/ receiving large files for has not any problem.
Also consider the values max_input_time, max_execution_time and
file_uploads.
References:
http://wiki.horde.org/FAQ/Admin/FileUploads
Greetings.
Gustavo Eli Pelcastre H.
on apache-error.log:
[Fri Jun 22 09:02:23 2007] [error] [client 81.173.179.145] PHP Fatal
error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 1286307 byte
s) in /usr/share/psa-horde/lib/Horde/MIME/Part.php on line 1113,
referer:
http://xxx.xxx.xxx/imp/compose.php?thismailbox=INBOX.sent-mail&uniq=1182495
977564
Allowed memory size of 8388608 bytes exhausted (tried to allocate 224 bytes)
I don't understand why, cause in php.ini it's set to 8M (see below)
and the file is only 800 KB.
Any Idea
/usr/share/psa-horde/imp/config/conf.php
================================
/* CONFIG START. DO NOT CHANGE ANYTHING IN OR AFTER THIS LINE. */
// $Horde: imp/config/conf.xml,v 1.53.2.13 2006/06/14 18:11:23 chuck Exp $
$conf['utils']['gnupg'] = '/usr/bin/gpg';
$conf['utils']['gnupg_keyserver'] = array('wwwkeys.pgp.net');
$conf['utils']['gnupg_timeout'] = '10';
$conf['utils']['openssl_cafile'] = '/usr/share/openssl/certs/ca-bundle.crt';
$conf['utils']['openssl_binary'] = '/usr/bin/openssl';
$conf['menu']['apps'] = array('imp', 'ingo', 'kronolith', 'turba');
$conf['user']['select_sentmail_folder'] = false;
$conf['user']['allow_resume_all_in_drafts'] = false;
$conf['user']['allow_folders'] = true;
$conf['user']['allow_resume_all'] = false;
$conf['user']['allow_view_source'] = true;
$conf['user']['alternate_login'] = false;
$conf['user']['redirect_on_logout'] = false;
$conf['server']['change_server'] = false;
$conf['server']['change_port'] = false;
$conf['server']['change_protocol'] = false;
$conf['server']['change_smtphost'] = false;
$conf['server']['change_smtpport'] = false;
$conf['server']['server_list'] = 'none';
$conf['server']['sort_limit'] = '0';
$conf['server']['cache_folders'] = false;
$conf['server']['cache_msgbody'] = false;
$conf['mailbox']['show_attachments'] = false;
$conf['mailbox']['show_preview'] = false;
$conf['mailbox']['show_xpriority'] = false;
$conf['fetchmail']['show_account_colors'] = false;
$conf['fetchmail']['size_limit'] = '4000000';
$conf['msgsettings']['filtering']['words'] = './config/filter.txt';
$conf['msgsettings']['filtering']['replacement'] = '****';
$conf['spam']['reporting'] = false;
$conf['notspam']['reporting'] = false;
$conf['msg']['prepend_header'] = false;
$conf['msg']['append_trailer'] = false;
$conf['compose']['allow_cc'] = true;
$conf['compose']['allow_bcc'] = true;
$conf['compose']['allow_receipts'] = true;
$conf['compose']['special_characters'] = true;
$conf['compose']['use_vfs'] = true;
$conf['compose']['link_attachments'] = true;
$conf['compose']['add_maildomain_to_unexpandable'] = false;
$conf['compose']['attach_size_limit'] = '0';
$conf['compose']['attach_count_limit'] = '0';
$conf['hooks']['vinfo'] = false;
$conf['hooks']['signature'] = false;
$conf['hooks']['trailer'] = false;
$conf['hooks']['fetchmail_filter'] = false;
$conf['hooks']['mbox_redirect'] = false;
$conf['hooks']['mbox_icon'] = false;
$conf['hooks']['spam_bounce'] = false;
$conf['maillog']['use_maillog'] = true;
$conf['tasklist']['use_tasklist'] = true;
$conf['notepad']['use_notepad'] = true;
Do you have a advice?
you're hitting _some_ error condition that causes the script to
return with no valid content-type. Also make sure that you have PHP's
error_reporting ($conf['debug_level'] in Horde) set all the way up to
E_ALL and that you are either displaying errors (and check the
downloaded output for PHP errors) or logging them.
If i open the window for new Mail, now i see following:
Notice: Undefined index: link_all_attachments in
/usr/share/psa-horde/imp/templates/compose/compose.inc on line 524
you're hitting _some_ error condition that causes the script to return
with no valid content-type. Also make sure that you have PHP's
error_reporting ($conf['debug_level'] in Horde) set all the way up to
E_ALL and that you are either displaying errors (and check the
downloaded output for PHP errors) or logging them.
to talk to your administrator.
If you are, check your apache logs for segfaults, and see
http://wiki.horde.org/FAQ/Admin/FileUploads
My php.ini-Settings:
file_uploads on
upload_max_filesize 8M
max_input_time 60
memory_limit 8M
max_execution_time 300
post_max_size 8M
No seg-error Messages in access.log error.log or /var/log/messages for today.
Any other Idee what it could be?
Priority ⇒ 1. Low
State ⇒ Not A Bug
talk to your administrator.
If you are, check your apache logs for segfaults, and see
http://wiki.horde.org/FAQ/Admin/FileUploads
Priority ⇒ 3. High
State ⇒ Unconfirmed
Queue ⇒ IMP
Summary ⇒ Adding Attachments don't work
Type ⇒ Bug
Browser want to download a File compose.php.
After closing the Window and push the button again, the Message
appears "Messege been send"
Whats wrong here?