Menu

error in gedcom file created using phpgedview

Help
2010-02-22
2013-05-30
  • Ricki Lee Gafter

    In trying to add a second husband to a member of my family tree I encountered an error on line 2163 of edit_quickupdate.php.  It appears as though the information in person ( in $name = $person->getFullName(); ) was null.  I ran the gedcom check from the admin panel which generated

    0014705  3 TIME 10:28:13
    0014706  2 _PGVU rlgafter
    0014707[]  too many FAM:HUSB; see FAM @F345@
    0014708[]  missing 0 @I1006@ INDI; see FAM @F345@
    0014709  1 HUSB @I1018@
    0014710  1 MARR

    which I believe is the problem line.  How can I correct this problem (I think I need to remove the reference to I006) using the graphical interface?  If I can not correct it using the graphical interface how do I know what the problem is so that I can correct it.

    Thanks in Advance,
    Ricki

     
  • Stephen Arnold

    Stephen Arnold - 2010-02-22

    Ricki
    Version of PGV? This was a very old bug, but squashed some time ago.
    Rather than gedcheck, provide the code for I1018, I1006 and F345 and its an easy fix with raw edit.
    Stephen

     
  • Ricki Lee Gafter

    Hi Stephen,

    Thanks for your quick reply.  I am using PGV 4.2.0.  The code is :

    0 @I1018@ INDI
    1 NAME Julius /Davidovitz/
    2 GIVN Julius
    2 SPFX Davidovitz
    1 SEX M
    1 BIRT
    2 PLAC Hungary
    1 FAMS @F345@
    1 CHAN
    2 DATE 11 FEB 2010
    3 TIME 22:00:40

    0 @F345@ FAM
    1 CHIL @I1006@
    1 HUSB @I1018@
    1 MARR
    2 PLAC Hungary
    1 CHAN
    2 DATE 21 FEB 2010
    3 TIME 15:47:28
    1 CHIL @I1017@
    1 CHIL @I022@
    1 CHIL @I1005@
    1 CHIL @I1012@
    1 CHIL @I1020@
    1 CHIL @I1059@
    1 HUSB @I1018@
    1 MARR Y
    1 WIFE @I1019@
    1 HUSB @I1018@
    1 MARR
    2 PLAC Hungary

    The above reference to i1006 is the only reference that I found in the gedcom file.  I am not familiar enough with the format of gedcom files to know if I only need to remove the reference to i1006, just the line?

    Ricki

     
  • Thomas52

    Thomas52 - 2010-02-22

    Each family will have one HUSB, one WIFE, and any number of children each one time.
    You have three HUSB & need to remove the two extra lines that read "1 HUSB @I1018@"
    There may be a problem with I1006, but I would need to see the code.

     
  • knorway

    knorway - 2010-02-22

    Ricki,

    As to your initial question about adding husbands to a family.  In GEDCOM language a family can have at maximum one wife and one husband.  Any compbination of husband and wife will require a new family record.

    for example:

    0 @F345@ FAM
    1 WIFE @I1019@
    1 HUSB @I1018@
    1 MARR
    2 PLAC
    0 @F346@ FAM
    1 WIFE @I1019@
    1 HUSB @I1056@
    1 MARR
    2 PLAC
    

    So here you can see two families where the wife is the same person with a different husband.   If a child is born to one family (husband and wife combination) the child record goes there, and if the second family (the husband) adopts the children after a death of husband one the children can be added to that family but with adoption information.  I forgot the actual record type but I know PGV will help to add this information in the second family.

     
  • Anton Largiader

    Anton Largiader - 2010-02-22

    Also you have multiple MARR lines with associated PLACes.

    Did you possibly get to this point by editing the FAM record to add the YES (Y) later on? If so, did you do that using Quick Edit? That would sound similar to a bug I ran into adding the Y to the DEAT event last year some time.

     
  • Ricki Lee Gafter

    I'm clearly missing something.

    I have changed the record for f345 to :

    0 @F345@ FAM
    1 HUSB @I1018@
    1 WIFE @I1019@
    1 MARR
    2 PLAC Hungary
    1 CHAN
    2 DATE 22 FEB 2010
    3 TIME 12:50:45
    2 _PGVU rlgafter
    1 CHIL @I1017@
    1 CHIL @I022@
    1 CHIL @I1005@
    1 CHIL @I1012@
    1 CHIL @I1020@
    1 CHIL @I1059@

    the record for I1019 is:

    0 @I1019@ INDI
    1 NAME Bertha //
    2 GIVN Bertha
    2 SURN
    1 SEX F
    1 BIRT Y
    1 DEAT
    2 PLAC Hungary
    1 FAMS @F345@
    1 CHAN
    2 DATE 22 FEB 2010
    3 TIME 12:48:19
    2 _PGVU rlgafter

    I am trying to add a second husband to I1019 and am presented with the error at that time.  I don't know how the error happened.  I initually (many years ago) created the gedcom using Family Tree Maker and have been using phpgedview for quite some time (over 5 years). 

    What should I be looking for in the gedcom file so that I can correct whatever bug is in it?  I did remove the reference to the extra husband.

     
  • Anton Largiader

    Anton Largiader - 2010-02-22

    When you say "Tried to add a second husband" what do you mean? Did you use "Add a new husband" from Close Relatives, or something else? You mentioned in your first post that the error was from Quick Update.

     
  • Ricki Lee Gafter

    I directed my browser to i019, then selected the 'edit' link from the 'options for individual' panel.  This presented me with a new window which has 4 tabs: 1) Personal Facts and Details, 2) Family with xxx, 3) add a new husband, 4) Family with Parents

    If I select 'Family with xxx' the window redraws but I am presented with the error Fatal error: Call to a member function getFullName() on a non-object in /home/xyz/g3/edit_quickupdate.php  on line 2162

    If I select 'Add a new Husband' the window redraws but only through the 4 tabs … Looking at the source (ctrl u) the following is at the bottom of the file
    <b>Fatal error</b>:  Call to a member function getFullName() on a non-object in <b>/home/xyz/g3/edit_quickupdate.php</b> on line <b>2162</b><br />

     
  • Anton Largiader

    Anton Largiader - 2010-02-22

    Try it from the Close Relatives tab of the main screen. There should be (at least there is in 4.2.2) a link to add a new husband. Quick Update (which you used) is different and doesn't have the best reputation.

    And see if you can upgrade to the latest version of PGV. If your host runs the PDO extension of php, I think you should be good. AFAIK that is the only roadblock to upgrading past 4.2.1.

     
  • Ricki Lee Gafter

    I'll try that. 

    The questions remain, how can I determine should the gedcom file look like?  How can I correct the problem(s) that exist in it?  What caused them/how can I ensure that they do not occur again?

     
  • Anton Largiader

    Anton Largiader - 2010-02-22

    how can I determine should the gedcom file look like?

    I'd start with Gedcheck, and simply inspect the records of everyone surrounding the problem records.

    How can I correct the problem(s) that exist in it?

    Depends what they are. But wherever possible, fix them using PGV rather than raw edits.

    What caused them/how can I ensure that they do not occur again?

    Start with upgrading. Stephen indicated this may be an old, fixed bug.

     
  • Ricki Lee Gafter

    Is it recommended to install the new version and work of the existing db or create a new db and upload the old gedcom file?

     
  • Anton Largiader

    Anton Largiader - 2010-02-23

    There's a README file with the new download describing it (and linking to the Wiki).

     
  • Ricki Lee Gafter

    I've installed 4.2.3, reimported my gedcom file and still have the same error.

    Any other suggestions?

     
  • knorway

    knorway - 2010-02-23

    I have 4.2.3 installed.  I was able to add a "New Husband" to an already existing woman with the following sequence:

    1 Display the woman (or man) that needs a have a spouse added.
    2 click on the "Close Relatives" tab
    3 click on "Add a new husband" at the bottom of page.
    4 fill in the appropriate information for the man
    5 select "Save"
    6 a new family (FAM record) is createdand a new Individual (INDI record) is created in the GEDCOM
    

    I know nothing about the error you are receiving SORRY, but for me this works as expected.  In the GEDCOM before you import the Family's and Individuals what does the FAM record look like for the family in question?  Does it have multiple HUSB records?  Follow the HUSB record to the INDI record and tell us what the NAME information says.  Maybe the data before import is bad.  If you can't find the Husband's INDI record then that is a problem.

     
  • Gerry Kroll

    Gerry Kroll - 2010-02-24

    rlgafter:
    You say you get the same error after an upgrade to 4.2.3.  That's not possible - the line number you quote doesn't match what's in 4.2.3.  I'll believe line number 2173.

    Your family record lists at least one child that doesn't exist. 

    That "1 CHIL @I022@" looks wrong.  It should probably be I1022.  Before you change that, you should check that I1022 actually exists, and that this record points to the family record through a "1 FAMC @F345@" line.

     
  • knorway

    knorway - 2010-02-24

    canajun2eh,

    Thanks for bring that up AND when I look at the first entry in this stream message it says:

    00147081 CHIL @I1006@ missing 0 @I1006@ INDI; see FAM @F345@

    Which if correct is something also to look at.

    rlgafter

    Check in the GEDCOM for Individual I1006  This would also cause the problem noted above.

     

Log in to post a comment.