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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Using CiviCRM w/ Drupal 7.7 upgraded from 4.0.4 to 4.0.5 dashboard error
Pages: [1]

Author Topic: Using CiviCRM w/ Drupal 7.7 upgraded from 4.0.4 to 4.0.5 dashboard error  (Read 1453 times)

eCnet

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
    • 100 Black Men Omaha
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.x
  • MySQL version: latest
  • PHP version: 5.x
Using CiviCRM w/ Drupal 7.7 upgraded from 4.0.4 to 4.0.5 dashboard error
August 20, 2011, 08:01:39 pm
Using CiviCRM w/ Drupal 7.7 upgraded from 4.0.4 to 4.0.5 dashboard servlets stay loading. When I click on refresh data I get this error Sorry. A non-recoverable error has occurred.
DB Error: no such field. With debug on I get a back trace error.

backTrace

/home/jmason27/public_html/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 159
, handle,
/home/jmason27/public_html/sites/all/modules/civicrm/packages/PEAR.php, call_user_func, 931
/home/jmason27/public_html/sites/all/modules/civicrm/packages/DB.php, PEAR_Error, 968
/home/jmason27/public_html/sites/all/modules/civicrm/packages/PEAR.php, DB_Error, 564
/home/jmason27/public_html/sites/all/modules/civicrm/packages/DB/common.php, raiseError, 1903
/home/jmason27/public_html/sites/all/modules/civicrm/packages/DB/mysql.php, raiseError, 898
/home/jmason27/public_html/sites/all/modules/civicrm/packages/DB/mysql.php, mysqlRaiseError, 327
/home/jmason27/public_html/sites/all/modules/civicrm/packages/DB/common.php, simpleQuery, 1216
/home/jmason27/public_html/sites/all/modules/civicrm/packages/DB/DataObject.php, query, 2424
/home/jmason27/public_html/sites/all/modules/civicrm/packages/DB/DataObject.php, _query, 1610
/home/jmason27/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php, query, 147
/home/jmason27/public_html/sites/all/modules/civicrm/CRM/Core/DAO.php, query, 874
/home/jmason27/public_html/sites/all/modules/civicrm/CRM/Core/BAO/Dashboard.php, executeQuery, 436
/home/jmason27/public_html/sites/all/modules/civicrm/CRM/Contact/Page/DashBoard.php, resetDashletCache, 58
/home/jmason27/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 224
/home/jmason27/public_html/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 443
, civicrm_invoke,
/home/jmason27/public_html/includes/menu.inc, call_user_func_array, 503
/home/jmason27/public_html/index.php, menu_execute_active_handler, 21
Sorry. A non-recoverable error has occurred.

Any help is appreciated

eCnet

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
    • 100 Black Men Omaha
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.x
  • MySQL version: latest
  • PHP version: 5.x
Re: Using CiviCRM w/ Drupal 7.7 upgraded from 4.0.4 to 4.0.5 dashboard error
August 23, 2011, 09:56:04 pm
I have a new error message now.

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

       
Code: [Select]
=> -3
    [message] => DB Error: constraint violation
    [mode] => 16
    [debug_info] =>
                    INSERT INTO civicrm_dashboard_contact ( dashboard_id, contact_id )
                    VALUES  ( 1, 102 ), ( 4, 102 ), ( 5, 102 ), ( 6, 102 ), ( 7, 102 ) [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`jmason27_civicrm`.`civicrm_dashboard_contact`, CONSTRAINT `FK_civicrm_dashboard_contact_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]
    [type] => DB_Error
    [user_info] =>
                    INSERT INTO civicrm_dashboard_contact ( dashboard_id, contact_id )
                    VALUES  ( 1, 102 ), ( 4, 102 ), ( 5, 102 ), ( 6, 102 ), ( 7, 102 ) [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`jmason27_civicrm`.`civicrm_dashboard_contact`, CONSTRAINT `FK_civicrm_dashboard_contact_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_dashboard_contact ( dashboard_id, contact_id )
                    VALUES  ( 1, 102 ), ( 4, 102 ), ( 5, 102 ), ( 6, 102 ), ( 7, 102 ) [nativecode=1452 ** Cannot add or update a child row: a foreign key constraint fails (`jmason27_civicrm`.`civicrm_dashboard_contact`, CONSTRAINT `FK_civicrm_dashboard_contact_contact_id` FOREIGN KEY (`contact_id`) REFERENCES `civicrm_contact` (`id`) ON DELETE CASCADE)]"]
)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Using CiviCRM w/ Drupal 7.7 upgraded from 4.0.4 to 4.0.5 dashboard error
August 24, 2011, 06:15:40 am
Seems that it's looking for a Contact with id 102, which should be at

civicrm/contact/view?reset=1&cid=102

but he's missing. Did you delete such a contact?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Using CiviCRM w/ Drupal 7.7 upgraded from 4.0.4 to 4.0.5 dashboard error

This forum was archived on 2017-11-26.