Below this batch of errors I do see the list as expected.
As an experiment, I modified class_person.php : 1649 where I added 3 lines to trap the null.
protectedfunction_addName($type, $full, $gedrec) {
global $UNDERLINE_NAME_QUOTES, $NAME_REVERSE, $unknownNN, $unknownPN, $pgv_lang;//LookforGIVN/SURNatleveln+1if($gedrec==null)//Addednullguard; search for unknown family name
$sublevel=0; // Added - value 0 | 1 behave the sameelse//Added
$sublevel=1+(int)$gedrec[0];
I no longer see the batch of errors, but there may be a more elegant fix.
Last edit: David Smart 2020-10-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if ($gedrec == null) // Added null guard; search for unknown family name
$sublevel = 0; // Added - value 0 | 1 behave the same
else // Added
works for me - have the same Error with php 7.4
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem was fixed in the SVN version sometime in January 2022. Please upgrade your copy of PhpGedView using the latest-and-greatest from the SVN repository.
I get a bunch of these when I click on (unknown) in the Individual list.
Below this batch of errors I do see the list as expected.
As an experiment, I modified class_person.php : 1649 where I added 3 lines to trap the null.
I no longer see the batch of errors, but there may be a more elegant fix.
Last edit: David Smart 2020-10-10
I can't reproduce this error. The problem may be caused by the way you have entered these unknown names in your database.
Please e-mail me a ZIP copy of your GEDCOM: gkroll (at) keldine (dot) ca .
Give me (in that e-mail) the Indi ID of several of those problematic records.
if ($gedrec == null) // Added null guard; search for unknown family name
$sublevel = 0; // Added - value 0 | 1 behave the same
else // Added
works for me - have the same Error with php 7.4
Thank you.
The problem was fixed in the SVN version sometime in January 2022. Please upgrade your copy of PhpGedView using the latest-and-greatest from the SVN repository.
Click on the "SVN" link at the top of this page, and follow the "trunk" path.
https://sourceforge.net/p/phpgedview/svn/HEAD/tree/trunk/phpGedView
There have beem many "how to" posts, both here and in the Help forum.