I am getting an error in the Place hierarchy when i try to view "View all records found in this place". The message is
Fatal error: Call to a member function getType() on a non-object in /home/thomas/public_html/phpGedView/placelist.php on line 356
Hi,
svn 6021 did not change anything other than it now refers to fatal error in line 356 of placelist.php.
Adding the print_r($positions); results in Array ( [0] => I984 [1] => I464 [2] => I334 [3] => I2225 etc.
You may see the whole listing at http://www.thomas.rindal.name/phpGedView/placelist.php?action=show&level=2&parent\[0]=Norge&parent[1]=Nordland
I noticed that the problem occurs on all hierarchy lists which includes Bø, ie Nordland and Norge (Norway).
I suspect I have managed to get out of synch between the place tables and the indi/fam tables. Reason is I have added hundreds of individuals with events in this place "Bø" recently.
Thanks a lot for looking into this.
Regards,
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Łukasz ,
is the remedy to delete these lines from the placelinks table?
pl_p_id pl_gid pl_file
1 I2990 1
73 I2990 1
560 I2990 1
629 I2990 1
This individual is probably deleted by myself after realising I was creating a wrong link. I used the delete function. Would there be a problem with the delete function that is missing an update to the placelist table or have I done something wrong myself? (I know deleting is not adviced but I saw no other option at the time.
Regards,
Thomas
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am getting an error in the Place hierarchy when i try to view "View all records found in this place". The message is
Fatal error: Call to a member function getType() on a non-object in /home/thomas/public_html/phpGedView/placelist.php on line 356
URL is http://www.thomas.rindal.name/phpGedView/placelist.php?action=find&level=3&parent\[0]=Norge&parent[1]=Nordland&parent[2]=B%C3%B8
The place table looks like this for the level 2 and 3 place:
560 Bø 2 73 1 B000 700000
673 Bø 3 560 1 B000 700000
This is ver 4.2.2 svn.
Any help is higly appreciated.
Regards,
Thomas
Thoms,
try svn 6021, I think it should work.
If not, try to add:
print_r($positions);
on line 347 of placelist.php file
and report what you see
Hi,
svn 6021 did not change anything other than it now refers to fatal error in line 356 of placelist.php.
Adding the print_r($positions); results in Array ( [0] => I984 [1] => I464 [2] => I334 [3] => I2225 etc.
You may see the whole listing at
http://www.thomas.rindal.name/phpGedView/placelist.php?action=show&level=2&parent\[0]=Norge&parent[1]=Nordland
I noticed that the problem occurs on all hierarchy lists which includes Bø, ie Nordland and Norge (Norway).
I suspect I have managed to get out of synch between the place tables and the indi/fam tables. Reason is I have added hundreds of individuals with events in this place "Bø" recently.
Thanks a lot for looking into this.
Regards,
Thomas
Thomas,
I found that this error is caused by place Vinje, Bø, Nordland, Norge
To help me try to add on line 356:
print $position."<br />";
Łukasz
Line added to placelist.php on my prod. site.
URL http://www.thomas.rindal.name/phpGedView/placelist.php?action=show&level=3&parent\[0]=Norge&parent[1]=Nordland&parent[2]=B%C3%B8
Regards,
Thomas
Looks like reference to I2990, which does not exist, might be the problem?
Regards,
Thomas
Yes, this reference cause the problem.
Thomas, you have this reference in placelinks table. Try to delete all references where pl_gid=I2990
Łukasz ,
is the remedy to delete these lines from the placelinks table?
pl_p_id pl_gid pl_file
1 I2990 1
73 I2990 1
560 I2990 1
629 I2990 1
This individual is probably deleted by myself after realising I was creating a wrong link. I used the delete function. Would there be a problem with the delete function that is missing an update to the placelist table or have I done something wrong myself? (I know deleting is not adviced but I saw no other option at the time.
Regards,
Thomas
I checked the delete function and it works as expected. It deletes all references.
OK, that's good. It all works as expected now, which makes me very happy since I am attending a family reunion in this community next week-end.
Thanks again for helping me out of this self-inflicted problem.
Regards,
Thomas