Web based family history software

This Help forum is for issues relates to the latest release (1.4.6). For issues related to beta or git version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here.

Question Invalid date

More
10 years 9 months ago #1 by xilef
Invalid date was created by xilef
Hello,
In the list of individuals the date of death is shown with the text: "invalid date", if no date has been entered
An empty date is NULL.
This was already released in version 1.4.2.
Example:
www.stammbaum-staeck.de/ webtrees/indilist.php?surname=HANSEKOWSKI&ged=Familie%20Staeck.ged&lang=en_US

regards

Karl

webtrees V2.1.2
www.stammbaum-staeck.de/webtrees/
PHP Version 8.1
MariaDB-Version 10.5.11

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

More
10 years 9 months ago #2 by fisharebest
Replied by fisharebest on topic Invalid date
Curious.

I cannot reproduce this problem on my own sites.

Does anybody else have the same problem?

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

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

More
10 years 9 months ago #3 by vytux
Replied by vytux on topic Invalid date
Tried the same on mine as well and no problem.

On his site only some are reported as invalid so I guess there's some data corruption or similar.

Most likely need to check out the actual data for a working and not working person and compare.


Vytautas

webtrees 1.7.9 (MODS: vytux_cousins, vytux_gallery3, vytux_pages, fancy_imagebar, fancy_treeview, Ancestral fan chart)
PHP 7.1.2, MySQL 5.7.17 x86_64 GPL, Nginx (mainline)
ged.vytux.com
Help translate Vytux Modules at translate.vytux.com/
Attachments:

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

  • Bogie
  • Offline
  • Elite Member
  • Elite Member
  • Life is good!
More
10 years 9 months ago - 10 years 9 months ago #4 by Bogie
Replied by Bogie on topic Invalid date
I have the same issue on some individuals. In my case the death date is missing completely as in.

0 @I711@ INDI
1 NAME Anna /Ritting/
2 GIVN Anna
2 SURN Ritting
2 _MARNM Anna /Paske/
1 SEX F
1 BIRT
2 DATE 09 DEC 1848
1 CHAN
2 DATE 27 MAY 2013
3 TIME 22:14:24
2 _WT_USER treemaster
1 FAMS @F243@

Bogie
webtrees 2.1.19 | PHP 8.1.27 | MariaDB 10.5.23 | Apache on Ubuntu 12.9
AutoComplete places of @tkempf, chart modules of @magicsunday, Fancy treeview of @justCarmen
Last edit: 10 years 9 months ago by Bogie.

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

More
10 years 9 months ago #5 by xilef
Replied by xilef on topic Invalid date
All date fields that are marked in the list with "invalid date", are empty, and not corrupt.

Karl

webtrees V2.1.2
www.stammbaum-staeck.de/webtrees/
PHP Version 8.1
MariaDB-Version 10.5.11

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

More
10 years 9 months ago #6 by vytux
Replied by vytux on topic Invalid date
Sorry and you are correct, just did a better search and I have found about 6 in my list too...

Vytautas

webtrees 1.7.9 (MODS: vytux_cousins, vytux_gallery3, vytux_pages, fancy_imagebar, fancy_treeview, Ancestral fan chart)
PHP 7.1.2, MySQL 5.7.17 x86_64 GPL, Nginx (mainline)
ged.vytux.com
Help translate Vytux Modules at translate.vytux.com/

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

More
10 years 8 months ago #7 by JAS
Replied by JAS on topic Invalid date
This error occurs if have you got election in Layout - Estimated dates for birth and death - show.
This error occurs if have you got election inMen have not state any date near nativity and death and WT date estimates.

WT 1.7.12
PHP7: 256 MB, 60 sec
MySql: verze 5.6.28
InnoDB

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

More
10 years 8 months ago #8 by fisharebest
Replied by fisharebest on topic Invalid date
I have a fix for this. I will post it when I get home tonight.

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

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

More
10 years 8 months ago #9 by xilef
Replied by xilef on topic Invalid date
Hello fisharebest,

the problem is solved when the "Estimated dates for birth and death" field is set to not visible. In the previous version, a value has been set accurately, which was for all the empty date (death field) fields angzeigt.
This field I can not find it. It has been deleted. Then why is there still the "Estimated dates for birth and death"?
Thanks for the fix

Karl

webtrees V2.1.2
www.stammbaum-staeck.de/webtrees/
PHP Version 8.1
MariaDB-Version 10.5.11

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

More
10 years 8 months ago #10 by fisharebest
Replied by fisharebest on topic Invalid date
Code:
library/WT/Person.php $tmp=$this->getEstimatedBirthDate(); if ($tmp->MinJD()) { global $MAX_ALIVE_AGE; - $tmp2=$tmp->AddYears($MAX_ALIVE_AGE, 'bef'); + $tmp2=$tmp->AddYears($MAX_ALIVE_AGE, 'BEF'); if ($tmp2->MaxJD()<WT_SERVER_JD) { $this->_getEstimatedDeathDate=$tmp2; } else {

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

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

Powered by Kunena Forum
}