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) »
  • Civimail Processor cron job crashes system - critical
Pages: [1]

Author Topic: Civimail Processor cron job crashes system - critical  (Read 1346 times)

Alan.Guggenheim

  • Guest
Civimail Processor cron job crashes system - critical
February 13, 2010, 01:11:07 pm
I am running into a critiacal issue, with my server crashing on the CiviMailProcessor.php cron job.
I ran it by hand and I am getting the following error:
Fatal error: Call to a member function __toString() on a non-object in <home>modules/civicrm/CRM/Mailing/Event/BAO/Reply.php on line 124

Looking ate my email account, I found that the processor has stopped processing IMAP emails and moving them on a "strange" email record:
Date:  Wed, 03 Feb 2010 06:24:06 -0600 [02/03/2010 06:24:06 AM CST]
From:  Gateway@
To:  civimail+r.95.36995.6f636b98a826fcbf@thewoodlandsteaparty.com
Subject:  NDN:
Headers:  Show All Headers 

This message was written in a character set (utf-8) other than your own.
If it is not displayed correctly, click here to open it in a new window.

Sorry. Your message could not be delivered to:

swestcott,fc (The name was not found at the remote site. Check that the name
has been entered correctly.) 

if I delete this email, the process can restart and work through the bounced and other emails until it finds an other similar record.
It looks like the triggering factor is the incorect "from" header:
Gateway@

Any idea where this problem comes from and how to stop it at least from crashing the server?

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: Civimail Processor cron job crashes system - critical
February 13, 2010, 05:19:18 pm

would be good if u can edit and add debug statements to the file:

CRM/Mailing/Event/BAO/Reply.php

i suspect parseMail might be returning an error which we are not trapping etc

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

Alan.Guggenheim

  • Guest
Re: Civimail Processor cron job crashes system - critical
February 14, 2010, 04:38:49 pm
OK. I can edit, but do you have a pointer to the procedure or documentation on the debug statements. Never done it inCiviCRM.

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: Civimail Processor cron job crashes system - critical
February 14, 2010, 08:37:09 pm

you can use any php debugging statements in CiviCRM (which is also in PHP). PHP documentation is at php.net.

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

Alan.Guggenheim

  • Guest
Re: Civimail Processor cron job crashes system - critical
February 14, 2010, 09:20:40 pm
I have no idea what debug statement you want, on what part of the code, what variables,...

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Civimail Processor cron job crashes system - critical
February 18, 2010, 05:10:41 am
Quote from: Alan.Guggenheim on February 13, 2010, 01:11:07 pm
Fatal error: Call to a member function __toString() on a non-object in <home>modules/civicrm/CRM/Mailing/Event/BAO/Reply.php on line 124

Can you edit the CRM/Mailing/Event/BAO/Reply.php file and comment-out the line number 124? I.e., change it to

Code: [Select]
//$parsed->setHeader('Reply-To', empty($replyto) ? $parsed->from->__toString() : $replyto);
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Civimail Processor cron job crashes system - critical

This forum was archived on 2017-11-26.