Kayako logo
E-mail Piping Issues E-mail piping issues and related configuration questions are posted here,

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
logicway Offline
Member
 
Posts: 62
Join Date: Jul 2006
Fatal Error on piping attachments - 17-05-2007, 12:44 PM

When a mail with a attachment around 3 MB is being piped, the mail does not get piped (using DirectAdmin). The mail is returned with the following error:

Quote:
Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 3251423 bytes) in /home/********/domains/*********/public_html/support/includes/MIME/mimeDecode.php on line 382
Other mails with smaller attachments does not have any issues.
My php.ini settings:
memory_limit 64M (master value = 20M)
post_max_size 64M (master value = 8M)
upload_max_filesize 64M (master value = 20M)

Setting in Admin, Mail Parser:
Message Size Limit (In Kilobytes) 8192

Which setting do I have to set, to resolve this error?

Last edited by logicway; 17-05-2007 at 03:35 PM.
   
Reply With Quote
  (#2) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,566
Join Date: Aug 2006
Location: Mumbai, India
17-05-2007, 02:03 PM

Increase your PHP memory_limit setting. That will fix the issue.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#3) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,299
Join Date: Apr 2007
Location: Toronto Canada
17-05-2007, 02:06 PM

Quote:
Originally Posted by supportskins View Post
Increase your PHP memory_limit setting. That will fix the issue.
But its already at 64M. What should the setting be?

I have a similar issue which is why I am asking.

Where is the message size limit in the mail parser section? I don't see that option within mail parser.

Last edited by Siora; 17-05-2007 at 02:10 PM.
   
Reply With Quote
  (#4) Old
logicway Offline
Member
 
Posts: 62
Join Date: Jul 2006
17-05-2007, 03:38 PM

Quote:
Originally Posted by supportskins View Post
Increase your PHP memory_limit setting. That will fix the issue.
As Siora mentioned, it is already 64M. Wouldn't that be enough for a attachment of only 3 MB?

Besides, the error mentiones "allowed memory size of 20971520 bytes" which is exactly 20M.
Does the piping still takes the master value for memory_limit setting?
I changed this value using a .htaccess-file.
   
Reply With Quote
  (#5) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,566
Join Date: Aug 2006
Location: Mumbai, India
17-05-2007, 03:43 PM

Although I am not sure, it could have taken the master value. The error you are seeing is due to exhaused memory_limit set in PHP. Increasing it will fix the issue.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#6) Old
logicway Offline
Member
 
Posts: 62
Join Date: Jul 2006
18-05-2007, 10:33 AM

Quote:
Originally Posted by supportskins View Post
Although I am not sure, it could have taken the master value. The error you are seeing is due to exhaused memory_limit set in PHP. Increasing it will fix the issue.
How will I know if the master value is taken? Does any Kayako Staff know this?
I cannot change the master value, only my webhost could do this. And I don't know if they are willing to change it.
   
Reply With Quote
  (#7) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,566
Join Date: Aug 2006
Location: Mumbai, India
18-05-2007, 11:02 AM

Have you tried increasing the memory_limit which you are allowed to increase? Try setting it to 100M and check if it works. Note, the software will never use memory_limit as 100 even though it is set to 100M.



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
  (#8) Old
div.matt Offline
New Member
 
Posts: 3
Join Date: Jan 2007
Unhappy Help! Attachments issue with nasty bounce-backs - 06-09-2007, 08:22 PM

Help! I have the same problem.

Everytime someone sends an email larger than 2mb to our support email address, the email is not parsed (does not become a ticket) and worse, the client gets a bounce-back message which makes them think we never got their email. We are forced to monitor our support mailbox regularly to see what eSupport missed


My memory_limit is 150M in php.ini
max_execution_size = 1200
allow_call_time_pass_reference = On
display_error = On


Here's a sample bounce message:

--
Hi. This is the qmail-send program at ***.***.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<support@***.***.com>:
Allowed memory size of 8388608 bytes exhausted (tried to allocate 77 bytes)

--- Below this line is a copy of the message.
--

Any ideas?

Thanks.
   
Reply With Quote
  (#9) Old
Jamie Edwards Online
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 5,120
Join Date: Jan 2006
Location: United Kingdom
07-09-2007, 12:52 AM

Hi Matt,

8388608 bytes is 8MB exactly - so PHP's memory limit has been set to 8MB somewhere. After making the change to php.ini, did you restart apache?


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
  • New to the forum? New user's guide here.
  • Submit bug reports here.
  • Submit support tickets via the members area.
  • Submit sales queries either via live chat or via e-mail.
  • There is no official ETA on Version 4.
   
Reply With Quote
  (#10) Old
div.matt Offline
New Member
 
Posts: 3
Join Date: Jan 2007
07-09-2007, 01:04 PM

Good morning,

Yes, we did restart apache. Here's a link to our php.ini.

http://support.zgraph.com/phpinfo.php

This is quite frustrating -- we have clients calling us thinking we didn't get their requests, since they bounce back.
   
Reply With Quote
  (#11) Old
div.matt Offline
New Member
 
Posts: 3
Join Date: Jan 2007
07-09-2007, 02:02 PM

Additionally, when our staff replies to a client's ticket and needs to attach something, we get the following bounce-back (perhaps related to the fact that we usually CC our support mailbox on replies, so people can also keep tabs on ticket threads without logging in -- and because of this issue, some emails don't get parsed, we need to monitor the inbox):

Hi. This is the qmail-send program at ***.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<support@***.***.com>:
Content-type: text/html
X-Powered-By: PHP/4.3.9

<br />
<b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4072009 bytes) in <b>/var/www/vhosts/****/httpdocs/modules/parser/functions_parsercore.php</b> on line <b>52</b><br />
Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)
   
Reply With Quote
  (#12) Old
kabicy Offline
New Member
 
Posts: 1
Join Date: Jun 2008
i have meet the same problem - 26-06-2008, 08:39 PM

i have meet the same problem
   
Reply With Quote
  (#13) Old
supportskins Offline
Senior Member
 
supportskins's Avatar
 
Posts: 3,566
Join Date: Aug 2006
Location: Mumbai, India
27-06-2008, 10:04 AM

Which version of Kayako are you using and is your php.ini set according to the settings specified above?



Professional and Affordable Kayako Skins - Specialists in Kayako Skinning & Customization - Professional Paid Support
Our Skins and Services - http://www.supportskins.com/store/
SupportSkins.com - http://www.supportskins.com/
   
Reply With Quote
Reply

Tags
attachments, fatal, piping

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46