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 CiviMember (Moderator: Deepak Srivastava) »
  • DB error with renewal page and CiviMail checksum link
Pages: [1]

Author Topic: DB error with renewal page and CiviMail checksum link  (Read 705 times)

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
DB error with renewal page and CiviMail checksum link
March 04, 2012, 08:20:29 am
I'm trying to setup membership renewals with a CiviMail message that contains a link to a contribution page with checksum and contact id as parameters.  Upon loading this link I get this error. I'm running CiviCRM 4.1 on Drupal 6.25.

Code: [Select]
DB Error: constraint violation

Database Error Code: Cannot add or update a child row: a foreign key constraint fails (`bikewalk_bwkc`.`civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE), 1452
Additional Details:
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -3
    [message] => DB Error: constraint violation
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_acl_cache (contact_id , acl_id ) VALUES ( 8047 ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`bikewalk_bwkc`.`civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_acl_cache (contact_id , acl_id ) VALUES ( 8047 ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`bikewalk_bwkc`.`civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
    [to_string] => [db_error: message="DB Error: constraint violation" code=-3 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_acl_cache (contact_id , acl_id ) VALUES ( 8047 ,  2 )  [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`bikewalk_bwkc`.`civicrm_acl_cache`, CONSTRAINT `FK_civicrm_acl_cache_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]"]
)

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: DB error with renewal page and CiviMail checksum link
March 04, 2012, 10:17:05 am
Did you try logout / login?  and also clear your cache

Kurund
Found this reply helpful? Support CiviCRM

erogers

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 0
  • CiviCRM version: 4.6.2
  • CMS version: Wordpress 4.1
  • MySQL version: 5
  • PHP version: 5
Re: DB error with renewal page and CiviMail checksum link
March 04, 2012, 05:22:59 pm
Yes, I have cleared the cache.  I am trying to do this without logging in.  My users generally don't create accounts, so they need a link with the CID and checksum that they can use to renew without logging in.  Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • DB error with renewal page and CiviMail checksum link

This forum was archived on 2017-11-26.