Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

[solved] Pb import gedcom file with 2.09 2 weeks 2 days ago #1

  • Bernard
  • Bernard's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 43
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

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

Last edit: by Bernard.

Pb import gedcom file with 2.09 2 weeks 1 day ago #2

  • Bernard
  • Bernard's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 43
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.

Pb import gedcom file with 2.09 2 weeks 1 day ago #3

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13603
> Is it a tip to get error message ?

webtrees.net/faq/xhr/
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Pb import gedcom file with 2.09 2 weeks 16 hours ago #4

  • Bernard
  • Bernard's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 43
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.

Pb import gedcom file with 2.09 2 weeks 4 hours ago #5

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13603
> 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 - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Pb import gedcom file with 2.09 1 week 6 days ago #6

  • Bernard
  • Bernard's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 43
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.

Pb import gedcom file with 2.09 1 week 5 days ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13603
> 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 - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Pb import gedcom file with 2.09 1 week 4 days ago #8

  • Bernard
  • Bernard's Avatar Topic Author
  • Offline
  • New
  • New
  • Posts: 43
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.

Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 
  • Page:
  • 1
Powered by Kunena Forum