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 (Moderator: Dave Greenberg) »
  • CiviMail issue with EmailProcessor
Pages: [1]

Author Topic: CiviMail issue with EmailProcessor  (Read 1382 times)

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
CiviMail issue with EmailProcessor
October 07, 2010, 09:24:31 am
Trying to use the EmailProcessor.php as a crontask, I'm getting a strange error. I've posted the following in the CiviMail forums, but might need some more general help.

http://forum.civicrm.org/index.php/topic,15919.msg68101.html#msg68101

Any help appreciated.


~r

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: CiviMail issue with EmailProcessor
October 08, 2010, 05:59:44 am
Using a combination of var_dump and the error_log, it seems there is a notice of an array to string conversion in one of the DataObject files. This, coupled with the var_dump that shows me my 3 variables:

assignee_id = a 4-char string, the ID
source_id = same thing
target_id = an array... containing a 4-char string, the ID.

Is this the issue? Have I done something terrible in upgrades along the way that for some reason one of these values is an array containing the value I want, instead of just the value? Or is this normal?

Just looking for a confirmation on this particular code, as it might be the source of our solution. :)


r

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviMail issue with EmailProcessor
October 08, 2010, 09:54:17 am
Hi,

THat's about converting an email to an activity, not bounce processing, right ?

As for the different formats, that's normal than the source is a single Id and the target an array (you can have multiple targets). I'm pretty sure an activity can be assigned to several contacts, so not sure if it's correct to have a single value instead of an array.


Anyway, what's the notice ? Could you paste it and the line it corresponds ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: CiviMail issue with EmailProcessor
October 08, 2010, 10:09:44 am
in the EmailProcessor.php result:

retrieving message 70 Failed Processing: "MESSAGE SUBJECT" Reason:
Invalid Target Contact Id setting 70 as seen and moving it to the
ignored mailbox


in the error log:

PHP Notice:  Array to string conversion
in /usr/local/www/htdocs/joomla/administrator/components/com_civicrm/civicrm/packages/DB/DataObject.php on line 2565


the interesting thing is, when we were messing about, I actually told the Activity.php file to manually set an ID of one of the contacts as the Target ID instead of the incoming array... and it worked. But I'm fairly certain it was some kind of fluke.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: CiviMail issue with EmailProcessor
October 08, 2010, 02:04:26 pm
Err,

Are all the emails in this email asssociated with a contact or some don't exist in civi ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

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 issue with EmailProcessor
October 09, 2010, 08:05:52 am

any chance you can investigate and submit a patch. Seems like a bug was introduced in 3.2.x

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

seashell

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: CiviMail issue with EmailProcessor
October 10, 2010, 05:48:56 am
Hi all,
In testing, we tested a "existing contact" match based on email address and a known "new contact" based on a newly created email address we did not have in the database.  The process if a new contact creates the contact record but not the inbound email activity, for an existing record of course it does not create the activity.

Hope this helps.
Shelly

rchapman

  • I post occasionally
  • **
  • Posts: 77
  • Karma: 0
Re: CiviMail issue with EmailProcessor
October 14, 2010, 04:30:02 am
Thanks for responding everyone.

Donald: Are you asking me to investigate and submit a patch? Is there a link you can direct me to to begin that process? So far our investigation has taken us to a few specific lines of code, but without full knowledge of civi's code structure, I wasn't able to trace the function or its purpose.

Is there a first step I should take to investigation?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • CiviMail issue with EmailProcessor

This forum was archived on 2017-11-26.