Author
Reply
  • #10653

    Are you certain you checked the web server error log? Not the kiwitrees one (in admin > Site admin > logs).

    I have been able to reproduce this on my own site. The error you should see in those error logs is like:

    AH01071: Got error ‘PHP message: PHP Fatal error: Uncaught Error: Call to a member function getChildren() on null in /var/www/vhosts/xxxxx/modules_v4/cousins_tab/module.php:246\nStack trace:\n#0 /var/www/vhosts/kiwitrees.net/xxxxx/modules_v4/cousins_tab/module.php(128): cousins_tab_KT_Module->getSecondCousins(Object(KT_Family))\n#1 /var/www/vhosts/kiwitrees.net/xxxxx/individual.php(276): cousins_tab_KT_Module->getTabContent()\n#2 {main}\n thrown in /var/www/vhosts/kiwitrees.net/xxxxx/modules_v4/cousins_tab/module.php on line 246\n’

    If you definitely don’t see this in your server logs, then I strongly recommend you ask your web host to enable error reporting for PHP. It will help you (and me) a great deal and have no impact on anything else, other than a new small file on the server.

    Anyway, now that I can see the error report on my system I can look for the cause. It is somehow related to a family in the “2nd cousins” group for an individual having a null value in a family’s list of children (the “getChildren() function). Once I know the cause I can protect against the error.

    I’ll get a correction as soon as possible.

    Nigel
    My personal kiwitrees site is www.our-families.info