CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Out of Memory Error - when sending mail
Pages: [1]

Author Topic: Out of Memory Error - when sending mail  (Read 1566 times)

markimus

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
Out of Memory Error - when sending mail
April 22, 2010, 01:35:51 pm


I am not sure what is going on, all of a sudden when I went to send some test mails I started getting this error. 
Not surewhat is going on

Warning: Got a packet bigger than 'max_allowed_packet' bytes query: INSERT INTO watchdog (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (1, 'php', '%message in %file on line %line.', 'a:4:{s:6:\"%error\";s:12:\"user warning\";s:8:\"%message\";s:2491486:\"Got a packet bigger than 'max_allowed_packet' bytes\nquery: INSERT INTO watchdog\r\n (uid, type, message, variables, severity, link, location, referer, hostname, timestamp)\r\n VALUES\r\n (1, 'civicrm', '$Ignoring exception thrown here = PEAR_Error Object\\n(\\n [error_message_prefix] => \\n [mode] => 16\\n [level] => 1024\\n
Code: [Select]
=> \\n [message] => recipient is not recognized\\n [userinfo] => \\n [backtrace] => Array\\n (\\n [0] => Array\\n (\\n [file] = in /home/ldcrm/public_html/includes/database.mysql.inc on line 128

Here is the back trace- which doesn't seem to make sense either. 


$backTrace = /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 471 , nullHandler, /home/ldcrm/public_html/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 931 /home/ldcrm/public_html/sites/all/modules/civicrm/packages/PEAR.php, PEAR_Error, 566 /home/ldcrm/public_html/sites/all/modules/civicrm/packages/Mail/smtp.php, raiseError, 292 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Utils/Mail.php, send, 112 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Activity/BAO/Activity.php, send, 1091 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Activity/BAO/Activity.php, sendMessage, 1029 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Contact/Form/Task/EmailCommon.php, sendEmail, 343 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Contact/Form/Task/Email.php, postProcess, 118 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Core/Form.php, postProcess, 250 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php, mainProcess, 153 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Upload.php, realPerform, 130 /home/ldcrm/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203 /home/ldcrm/public_html/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 263 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Utils/Wrapper.php, run, 115 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Activity/Page/Tab.php, run, 105 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Activity/Page/Tab.php, edit, 185 /home/ldcrm/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 210 /home/ldcrm/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 350 , civicrm_invoke, /home/ldcrm/public_html/includes/menu.inc, call_user_func_array, 348 /home/ldcrm/public_html/index.php, menu_execute_active_handler, 18

What do I need to do to rectify this. 
Success is the ability to go from one failure to another with no loss of enthusiasm.

Tiggr

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 1
    • Rodgauer Workshop
  • CiviCRM version: 4.7.beta3
  • CMS version: Drupal 7
Re: Out of Memory Error - when sending mail
April 23, 2010, 01:10:11 am
Hi!

That's strange! 'watchdog' is no table of civicrm...

Maybe some security system goes mad about your mailings?

Bye
Marcus (aka Tiggr)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Out of Memory Error - when sending mail
April 23, 2010, 07:54:56 am

watchdog is a drupal table and its logging errors so that is fine

your best bet is to debug

packages/Mail/smtp.php, line 288 or so. Thats where the smtp error is being thrown. Seems like the smtp server refuses to add a mail address to the recipient list

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

markimus

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
Re: Out of Memory Error - when sending mail
April 23, 2010, 08:15:37 am
Quote from: Donald Lobo on April 23, 2010, 07:54:56 am

watchdog is a drupal table and its logging errors so that is fine

your best bet is to debug

packages/Mail/smtp.php, line 288 or so. Thats where the smtp error is being thrown. Seems like the smtp server refuses to add a mail address to the recipient list

thanx

lobo

this is whats ther on line 288ish 


foreach ($recipients as $recipient) {
            if (PEAR::isError($res = $this->_smtp->rcptTo($recipient))) {
                $error = $this->_error("Failed to add recipient: $recipient",
                                       $res);
                $this->_smtp->rset();
                return PEAR::raiseError($error, PEAR_MAIL_SMTP_ERROR_RECIPIENT);
            }
        }
Success is the ability to go from one failure to another with no loss of enthusiasm.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Out of Memory Error - when sending mail
April 23, 2010, 08:20:33 am

yes, i did see those lines. u'll need to add debug statements and figure out why your smtp server is not adding those email recipients. mail servers are  a bit hard to deal with :(

if u r not familiar with php, u might want to recruit a friend / hire someone from http://civicrm.org/professional/ to help you solve the issue

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

markimus

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
Re: Out of Memory Error - when sending mail
April 23, 2010, 09:50:50 am
So I changed my mail servers and it started working?  It seems strange that it was working fine before and then it stopped ... now with the new server its working fine? 
Success is the ability to go from one failure to another with no loss of enthusiasm.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Out of Memory Error - when sending mail

This forum was archived on 2017-11-26.