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) »
  • Can't send test mail to one specific address (all others seem to work)
Pages: [1]

Author Topic: Can't send test mail to one specific address (all others seem to work)  (Read 1954 times)

JMenn

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
Can't send test mail to one specific address (all others seem to work)
December 02, 2010, 05:34:15 pm
I had mentioned this in IRC but it seemed folks were busy.

I'm trying to send out a test mail from a CiviMail email blast (step 4 of 5 I believe). When I enter in a specific person's email, I get this error:

Fatal error: Call to a member function get() on a non-object in ..snipped...../sites/all/modules/civicrm/CRM/Mailing/BAO/Job.php on line 338

I'm using CiviCRM 3.1.5 (had issues during the upgrade to 3.2.5 had to rollback, will upgrade later), PHP 5.2.13, and Drupal 6.x.  All other email address I've tried are able to get the test email without a problem, but this one user's email address gives that error. I've tried pulling up her contact screen and sending an email to her through there, and have had no problem

I'm a bit at a loss of what to do, any ideas on what to look for?

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Can't send test mail to one specific address (all others seem to work)
December 03, 2010, 04:14:56 am
we could bypass error easily but in that case that contact could not receive test mail.

so would like to take some close look.

firstly u might want to take a look at our demo site and try to replicate issue http://drupal.demo.civicrm.org/

some questions :
1. does that contact already exist in your civicrm database ?
2. after getting error, could u check do you have contact in database ?
( u could check from any UI and contact search for with your test email address )

let us know your findings.

kiran 

You Are Designed To Choose... Defined By Choice.

JMenn

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
Re: Can't send test mail to one specific address (all others seem to work)
December 03, 2010, 10:30:14 am
I'll try to recreate issue later today.  Regarding the other questions: Yes, contact was in my database prior to attempting to send test email, and still is after attempting to send.

Quote from: Kiran Jagtap on December 03, 2010, 04:14:56 am
we could bypass error easily but in that case that contact could not receive test mail.

so would like to take some close look.

firstly u might want to take a look at our demo site and try to replicate issue http://drupal.demo.civicrm.org/

some questions :
1. does that contact already exist in your civicrm database ?
2. after getting error, could u check do you have contact in database ?
( u could check from any UI and contact search for with your test email address )

let us know your findings.

kiran 



JMenn

  • I’m new here
  • *
  • Posts: 12
  • Karma: 1
Re: Can't send test mail to one specific address (all others seem to work)
December 03, 2010, 11:26:06 am
Erm, so I took a relatively silly method of trying to fix this: deleted the contact out of our database, readded her, and now everything appears to be working fine.  I'm also not at all sure how to go about recreating the issue on the demo site so... I guess end it here unless someone wants to guide me through the process of trying to recreate on the demo site.

kasiawaka

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 4
    • Kasuwade Solutions Inc.
Re: Can't send test mail to one specific address (all others seem to work)
March 25, 2011, 02:09:39 pm
I wanted to report the same issue with CiviCRM 3.1.4 - when trying to test newsletter by sending it to one email address, we get the same error:
<code>
Fatal error: Call to a member function get() on a non-object in [..]/sites/all/modules/civicrm/CRM/Mailing/BAO/Job.php on line 334
</code>

That error occurs when the test email used is an email that already exists in the CiviCRM database. There is no error when sending test newsletter to the Test Group that is made of CiviCRM contacts.
So this is our workaround for now - create a group (we called it "Newsletter Test") and add one or more contact to it that are suppose to receive the test newsletter.

Kasia
Kasia Wakarecy
http://kasuwade.ca

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: Can't send test mail to one specific address (all others seem to work)
March 25, 2011, 09:53:47 pm

kasia:

curious if this still happens with 3.4. Can you try doing the same test on our drupal sandbox

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

kasiawaka

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 4
    • Kasuwade Solutions Inc.
Re: Can't send test mail to one specific address (all others seem to work)
March 29, 2011, 02:17:30 pm
I could not recreate the same error on the 3.4 demo site but I'm not sure if this is related to the fact that the mailing configuration is not setup there? I never received a test email when sending from the demo site.

What I noticed on the site that had issues (returning an error when trying to email test newsletter to an individual):
- the table civicrm_email had that particular email address listed twice
- when checking the related contacts, one of those email addresses was linked to non-existing contact.

Is it possible that the error is/was related to the record that was deleted but the email address of it was left behind and now the error is caused by that broken link?
Kasia Wakarecy
http://kasuwade.ca

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: Can't send test mail to one specific address (all others seem to work)
March 29, 2011, 03:34:45 pm

hey kasia:

wanna get on IRC and we can debug this and figure out whats happening and why

however next week is better for us to help with this (a lot of vacation this week)

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

kasiawaka

  • I post occasionally
  • **
  • Posts: 42
  • Karma: 4
    • Kasuwade Solutions Inc.
Re: Can't send test mail to one specific address (all others seem to work)
June 27, 2011, 02:06:52 pm
Sorry Lobo,
Got stuck with other projects, haven't look into this thread for a while.
Let's coordinate that investigation soon
Kasia
Kasia Wakarecy
http://kasuwade.ca

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Can't send test mail to one specific address (all others seem to work)

This forum was archived on 2017-11-26.