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) »
  • Error on Mail Test submit
Pages: [1]

Author Topic: Error on Mail Test submit  (Read 879 times)

nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Error on Mail Test submit
March 02, 2009, 12:17:34 pm
Sorry. A non-recoverable error has occurred.

DB Error: unknown error

Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`eurofutb_crm/civicrm_activity`, CONSTRAINT `FK_civicrm_activity_source_contact_id` FOREIGN KEY (`source_contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE), 1452

2.0.3 Civicrm.

I've got an admin group that I want to send the test email to. I tried that, and then tried sending to my email numerous times. I get this error.
Is there a way to easily test the smtp settings without having to run through a test email?
I am not sure the two coincide, however I would like to know both please -if anyone can assist.

Thank you kindly.

Adam

Array
(
    [callback] => Array
        (
            
  • => CRM_Core_Error
  • [1] => handle
            )

        
Code: [Select]
=> -1
    [message] => DB Error: unknown error
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_activity (source_contact_id , source_record_id , activity_type_id , subject , activity_date_time , status_id ) VALUES ( 1 ,  30 ,  3 , 'Test Mailing: Copy of test 5' ,  NULL ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`eurofutb_crm/civicrm_activity`, CONSTRAINT `FK_civicrm_activity_source_contact_id` FOREIGN KEY (`source_contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_activity (source_contact_id , source_record_id , activity_type_id , subject , activity_date_time , status_id ) VALUES ( 1 ,  30 ,  3 , 'Test Mailing: Copy of test 5' ,  NULL ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`eurofutb_crm/civicrm_activity`, CONSTRAINT `FK_civicrm_activity_source_contact_id` FOREIGN KEY (`source_contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
    [to_string] => [db_error: message="DB Error: unknown error" code=-1 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_activity (source_contact_id , source_record_id , activity_type_id , subject , activity_date_time , status_id ) VALUES ( 1 ,  30 ,  3 , 'Test Mailing: Copy of test 5' ,  NULL ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`eurofutb_crm/civicrm_activity`, CONSTRAINT `FK_civicrm_activity_source_contact_id` FOREIGN KEY (`source_contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]"]
)



nimzie

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 1
Re: Error on Mail Test submit
March 02, 2009, 12:44:07 pm
The email is sending now, I've figured out the cron script / config etc for running the cron task and will add it to my cron stuff.

I'm still getting this error though.

Thank you for your help.

Cheers,

Adam

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Error on Mail Test submit
March 02, 2009, 02:27:45 pm
Looks like your user session is invalid (pointing to an invalid contact_id). Logging out and logging back in should correct this.
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Error on Mail Test submit

This forum was archived on 2017-11-26.