Web based family history software

Question Pb import gedcom file with 2.09

  • Bernard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago - 3 years 5 months ago #1 by Bernard
Hello,
When i import a Gedcom file with webtrees 2.09, the job stop at 9.8% (1119 indi say phpmyadmin). No error msg are displayed.
I have return to webtrees 2.07, i can import with success the same Gedcom file (4419 indi).
Sorry for this few dysfonctionnal datas.

Windows 10 64 bits Xampp 7.4.9 Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.9
MariaDB 10.4.14
Firefox last version webtrees 2.10
Last edit: 3 years 5 months ago by Bernard.

Please Log in or Create an account to join the conversation.

  • Bernard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #2 by Bernard
Replied by Bernard on topic Pb import gedcom file with 2.09
To day i have tried. I confirme import gedcom file freeze with 2.09 version. No error message.
I can run the webtrees 2.09 version, but i have replace FunctionsImport.php of 2.09 version file by FunctionsImport.php of 2.07.

Is it a tip to get error message ?

Windows 10 64 bits Xampp 7.4.9 Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.9
MariaDB 10.4.14
Firefox last version webtrees 2.10

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #3 by fisharebest
Replied by fisharebest on topic Pb import gedcom file with 2.09
> Is it a tip to get error message ?

webtrees.net/faq/xhr/

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Bernard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #4 by Bernard
Replied by Bernard on topic Pb import gedcom file with 2.09
Thanks for tip.
The problem is solved. With XHR responses, i have understood the misfit. In Gedcom file, one media data was not a string.
Thus i found one OBJE,with TITLE, FILE and FORM empty. I have deleted this OBJE and the FunctionsImport.php of 2.09 version run well.
Thanks

Windows 10 64 bits Xampp 7.4.9 Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.9
MariaDB 10.4.14
Firefox last version webtrees 2.10

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #5 by fisharebest
Replied by fisharebest on topic Pb import gedcom file with 2.09
> In Gedcom file, one media data was not a string.
> Thus i found one OBJE,with TITLE, FILE and FORM empty.

Can you post the exact GEDCOM data?

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Bernard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #6 by Bernard
Replied by Bernard on topic Pb import gedcom file with 2.09
Hello

First belows, the XHR response.

Return value of Fisharebest\webtrees\Functions\FunctionsImport::createMediaObject() must be of the type string, null returned …\app\Functions\FunctionsImport.php:810
#0 …\app\Functions\FunctionsImport.php(726): Fisharebest\webtrees\Functions\FunctionsImport::createMediaObject('\n1 OBJE\n2 TITL\n...', Object(Fisharebest\webtrees\Tree))
#1 …\app\Functions\FunctionsImport.php(320): Fisharebest\webtrees\Functions\FunctionsImport::convertInlineMedia(Object(Fisharebest\webtrees\Tree), '0 @S0@ SOUR\n1 A...')
#2 …\app\Http\RequestHandlers\GedcomLoad.php(222): Fisharebest\webtrees\Functions\FunctionsImport::importRecord('0 @S0@ SOUR\n1 A...', Object(Fisharebest\webtrees\Tree), false)

I have seen "must be of the type string" and "@S0@"

In my gedcom file, it was written

0 @S0@ SOUR
1 AUTH Raymond
1 TITL Arbre Raymond
1 TEXT Etabli par Raymond, .... relatifs à ce travail.
1 OBJE
2 TITL
2 FILE
3 FORM

I have deleted the empty lines and FunctionsImport.php run well.

Observation, if OBJE have a NOTE, this last is not extracted by FunctionsImport.php

Thanks for webtrees, it is a great job, well done.

Windows 10 64 bits Xampp 7.4.9 Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.9
MariaDB 10.4.14
Firefox last version webtrees 2.10

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #7 by fisharebest
Replied by fisharebest on topic Pb import gedcom file with 2.09
> 1 OBJE
> 2 TITL
> 2 FILE
> 3 FORM

OK - this is obviously invalid GEDCOM.

I guess webtrees should just ignore it. Create an issue on github and I'll fix it at some point.

>Observation, if OBJE have a NOTE, this last is not extracted by FunctionsImport.php

GEDCOM does not permit NOTE data here.

What program created this GEDCOM file?

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Bernard
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #8 by Bernard
Replied by Bernard on topic Pb import gedcom file with 2.09
Hello,
The note in media datas is not clear in specifications
because

Gedcom 5.5 specifications say two things

MULTIMEDIA_LINK:=
[ /* embedded form*/
n OBJE @<XREF:OBJE>@ {1:1} p.55
| /* linked form*/
nOBJE {1:1} p.55
+1 FORM <MULTIMEDIA_FORMAT> {1:1} p.48
+1 TITL <DESCRIPTIVE_TITLE> {0:1} p.43
+1 FILE <MULTIMEDIA_FILE_REFERENCE> {1:1} p.47
+1 <<NOTE_STRUCTURE>> {0:M} p.33]

MULTIMEDIA_RECORD:=
n @XREF:OBJE@ OBJE {1:1}
+1 FORM <MULTIMEDIA_FORMAT> {1:1} p.48
+1 TITL <DESCRIPTIVE_TITLE> {0:1} p.43
+1 <<NOTE_STRUCTURE>> {0:M} p.33
+1 BLOB {1:1}
+2 CONT <ENCODED_MULTIMEDIA_LINE> {1:M} p.43
+1 OBJE @<XREF:OBJE>@ /* chain to continued object */ {0:1} p.26
+1 REFN <USER_REFERENCE_NUMBER> {0:M} p.55
+2 TYPE <USER_REFERENCE_TYPE> {0:1} p.55
+1 RIN <AUTOMATED_RECORD_ID> {0:1} p.38
+1 <<CHANGE_DATE>> {0:1} p.29

Gedcom 5.5.1 specifications say two things

MULTIMEDIA_LINK:=
n OBJE @<XREF:OBJE>@ {1:1} p.26
|
n OBJE
+1 FILE <MULTIMEDIA_FILE_REFN> {1:M} p.54
+2 FORM <MULTIMEDIA_FORMAT> {1:1} p.54
+3 MEDI <SOURCE_MEDIA_TYPE> {0:1} p.62
+1 TITL <DESCRIPTIVE_TITLE> {0:1} p.48

MULTIMEDIA_RECORD:=
n @XREF:OBJE@ OBJE {1:1}
+1 FILE <MULTIMEDIA_FILE_REFN> {1:M} p.54
+2 FORM <MULTIMEDIA_FORMAT> {1:1} p.54
+3 TYPE <SOURCE_MEDIA_TYPE> {0:1} p.62
+2 TITL <DESCRIPTIVE_TITLE> {0:1} p.48
+1 REFN <USER_REFERENCE_NUMBER> {0:M} p.63, 64
+2 TYPE <USER_REFERENCE_TYPE> {0:1} p.64
+1 RIN <AUTOMATED_RECORD_ID> {0:1} p.43
+1 <<NOTE_STRUCTURE>> {0:M} p.37
+1 <<SOURCE_CITATION>> {0:M} p.39
+1 <<CHANGE_DATE>> {0:1} p.31

Thus in Gedcom 5.5.1 MEDIA can have a note if saved like XREF, but no if saved like OBJE but in Gedcom 5.5 MEDIA have a note in the two save modes.

I work on my Gedcom with Ancestris. I can in 5.5.1 version add note to OBJE saved medias. When i upload the Gedcom file from Ancestris to webtrees, the import function push OBJE saved media to XREF saved media. I lost note. For me it is not logical.

Windows 10 64 bits Xampp 7.4.9 Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.9
MariaDB 10.4.14
Firefox last version webtrees 2.10

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}