Date problem corrupted record
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webtrees |
Fix Released
|
Low
|
fisharebest |
Bug Description
Trying to test enhancement to date picker with SVN 9782.
Created new INDI and pasted in events with various date formats.
Trying to save the changed caused a stack dump in the edit_interface.
Used "Back" to recover the GEDCOM. Inspected it--all valid.
Took out all the events and tried to save--still a stack dump
Tried to delete the record--another stack dump
Refresh page--pending changes note appears (I have my changes set to automatic).
Went there, and see several Replace, then Delete.
Tried to accept all--stack dump
Reject all worked.
Made another INDI, and pasted in a few events at a time. Dates in the future are NOT a problem.
I've narrowed it down to nine events--I will do more testing to narrow it down more, but I wanted to enter this much so that I don't forget the details overnight.
The problem is definitely associated with dates, as the stack dump indicates. I think all my formats are legal. The dump is:
ERROR 8: Trying to get property of non-object
0 Error occurred on line 848 of file functions_
1 called from line 668 of file functions_
2 called from line 1285 of file functions_
3 called from line 1192 of file functions_
4 called from line 401 of file functions_edit.php in function delete_gedrec
5 called from line 2594 of file functions_edit.php in function delete_person
6 called from line 1717 of file edit_interface.php
Notice: Trying to get property of non-object in /home/content/
Fatal error: Call to a member function Format() on a non-object in /home/content/
The following dates did NOT cause the problem, and they all looked OK in the display except as NOTEd.
Repeat, these have been ruled out--still looking for the bad one(s).
1 BIRT
2 DATE 9 AUG 2019
2 NOTE testing
1 CHR
2 DATE AUG 2019
2 NOTE testing
1 BARM
2 DATE 2019
2 NOTE testing
1 GRAD
2 DATE ABT 9 AUG 2019
2 NOTE testing
1 CENS
2 DATE INT AUG 2019
2 NOTE *** This one was displayed with a set of
3 CONT *** empty parens after the year.
1 EMIG
2 DATE BEF 2019
2 NOTE testing
1 IMMI
2 DATE @#DGREGORIAN@ 9 MAY 101 B.C.
2 NOTE testing
1 NATU
2 DATE @#DGREGORIAN@ 9 MAY 101
2 NOTE testing
1 FCOM
2 DATE @#DGREGORIAN@ 9 MAY 1001 B.C.
2 NOTE testing
1 BLES
2 DATE @#DGREGORIAN@ 9 AUG 1698/99
2 NOTE testing
1 ORDN
2 DATE 09 AUG 1698/99
2 NOTE testing
1 OCCU
2 DATE @#DGREGORIAN@ 9 AUG 2019
2 NOTE testing
1 PROP
2 DATE EST @#DGREGORIAN@ AUG 2019
2 NOTE testing
1 RELI
2 DATE AFT @#DGREGORIAN@ 2019
2 NOTE No record corruption so far