Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-120

CiviCRM fails to start when running off empty database (no GeneratedData loaded)

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      While installing sandbox for php4, I came over this problem: after installing clean db (without generated data), trying to get to contacts list page, I got pretty bad error (sorry, don't have it). After some investigation, I found out that this problem comes out of mysql, which is trying to execute following query:
      INSERT INTO crm_contact (domain_id , contact_type , sort_name ) VALUES ( 1 , 'Individual' , '' );

      The error was:
      ERROR 1216 (23000): Cannot add or update a child row: a foreign key constraint fails

      Dunno if this happens only when running off php4 or does it also affect php5.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              mover Michał Mach
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: