Interactive tree error

Bug #1316253 reported by Søren Tolstrup
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
webtrees
Fix Released
Medium
fisharebest

Bug Description

In 1.5.3 the Interactive Tree view isn't working with some individuals. The error message is:

Catchable fatal error: Argument 1 passed to TreeView::drawPerson() must be an instance of WT_Individual, null given, called in /usr/local/www/[username]/www/webtrees/modules_v3/tree/class_treeview.php on line 292 and defined in /usr/local/www/[username]/www/webtrees/modules_v3/tree/class_treeview.php on line 212

The tree is working fine with other individuals. I haven't figured out a pattern.

Revision history for this message
Ulf Granlund (ulf-granlund) wrote :

In my case it is only for myself that this problem occurs. Maybe it's because I am set as the Default person?

Revision history for this message
Ulf Granlund (ulf-granlund) wrote :

What I wrote above was not correct. I have now found one more individual that is affected by this error. And setting another individual as the default person did not change anything, so it has nothing to do with that.

Revision history for this message
fisharebest (fisharebest) wrote :

Could it be related to one-parent families?

Revision history for this message
fisharebest (fisharebest) wrote :

Yes. It happens when the partner of the person has a mother, but no father.

Changed in webtrees:
status: New → In Progress
assignee: nobody → fisharebest (fisharebest)
importance: Undecided → Medium
Changed in webtrees:
status: In Progress → Fix Committed
Revision history for this message
Ulf Granlund (ulf-granlund) wrote :

In my tree it is not related to one-parent families. I have at least two individuals in my tree where the problem occurs and their partners both have two parents.

Revision history for this message
fisharebest (fisharebest) wrote :

Looking at the code, the problem occurs when the partner of the person has a mother but not father.

(Father but no mother is OK).

Revision history for this message
Grzegorz (g.m.) wrote :

This affects newer generations as well.

Revision history for this message
fisharebest (fisharebest) wrote :

Can you provide me with a GEDCOM file that will demonstrate the problem?

Revision history for this message
Søren Tolstrup (sofie54) wrote :
Revision history for this message
Ulf Granlund (ulf-granlund) wrote :

Similar case in my tree. Father and mother exist for both the individual and partner:

http://www.granlunds.name/family/individual.php?pid=I594&ged=PerTomas_101101.ged&lang=en_GB

Is this enough or do you need the actual GEDCOM?

Revision history for this message
Ulf Granlund (ulf-granlund) wrote :

However, there is a grandfather missing. It seems the problem climbs upwards in the tree. But not always and to all generations. The problem "jumps" some generations.

Revision history for this message
fisharebest (fisharebest) wrote :

I would need a GEDCOM file that demonstrates the problem.

Revision history for this message
Ulf Granlund (ulf-granlund) wrote :

Have sent it to you by email.

Revision history for this message
fisharebest (fisharebest) wrote :

Thanks for the file.

In webtrees 1.5.3, I see the error. In the fixed version (2014-05-06), I do not see the error.

> In my tree it is not related to one-parent families

Checking the data, I see that F146 has a mother but no father.
This family is included in the chart.

Revision history for this message
Ulf Granlund (ulf-granlund) wrote :

I was not aware of a fix.

When you wrote that it was related to one-parent families, I would interpret that as meaning
that the individual would have to be a member of a one-parent family in order to experience the error.
This was/is not case. Apparently it is enough that there is a one-parent family somewhere down the tree
for the error to occur. That is something quite different. But if your fix fixes the latter case also, then
I guess it's fine. I would like to download the fix. Is it available somewhere?

Revision history for this message
fisharebest (fisharebest) wrote :

> Is it available somewhere?

Yes. See the forums...

Revision history for this message
Ulf Granlund (ulf-granlund) wrote :

OK. Thanks. The replacement file seems to have solved the problem.

Changed in webtrees:
status: Fix Committed → Fix Released
Revision history for this message
fisharebest (fisharebest) wrote :

The fix is not released (in a stable version).

The status will be changed to "released" after the 1.5.4 version is released.

Changed in webtrees:
status: Fix Released → Fix Committed
Revision history for this message
fisharebest (fisharebest) wrote :

Fix released in 1.6.0

Changed in webtrees:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.