Menu

#2972 Call to a member function CalendarURL() on null

v4.3.1
closed-fixed
None
5
2022-07-03
2022-06-24
David Smart
No

I've updated to the latest version of PhpGedView (rev 7350).
My server has PHP 7.4.9 on a Linux box.

There are a few crashes I'm seeing - I'll file each individually.

Fatal error: Uncaught Error: Call to a member function CalendarURL() on null in /volume1/web/gen/includes/classes/class_date.php:1192 Stack trace: #0 /volume1/web/gen/includes/functions/functions_print_lists.php(238): GedcomDate->Display(true) #1 /volume1/web/gen/indilist.php(280): print_indi_table(Array, '<img src="image...')

2 {main}

thrown in /volume1/web/gen/includes/classes/class_date.php on line 1192

1 Attachments

Discussion

  • Gerry Kroll

    Gerry Kroll - 2022-06-24
    • assigned_to: Gerry Kroll
     
  • Gerry Kroll

    Gerry Kroll - 2022-06-24

    add the following after line 1191 in /includes/classes/class_date.php :

    if (!is_null($this->date1))

    Please let me know whether this works for you.

     
  • David Smart

    David Smart - 2022-06-24

    That appears to be the perfect fix. Thanks!

    (I don't see how I can mark this issue as resolved)

     
  • Gerry Kroll

    Gerry Kroll - 2022-06-24

    It's not fixed until the correction has made it into the SVN repository. I'll look after that.

     
  • Gerry Kroll

    Gerry Kroll - 2022-07-03
    • status: open --> closed-fixed
     
  • Gerry Kroll

    Gerry Kroll - 2022-07-03

    Fixed in SVN 7351

     

Log in to post a comment.