Closed mestaritonttu closed 4 years ago
This issue has already been fixed in webtrees 2.0 (which is tested against PHP 7.1 - 7.4)
webtrees 1.7 is only tested against PHP 5.3 - 7.3
I could back-port the fix to the 1.7 branch, but you are likely to find other PHP 7.4 compatibility issues.
Ok, I understand the reasoning from a resource standpoint.
Using version 1.7.6. When I view some individuals, I get an unstyled view and in the website logs I see:
I am running PHP 7.4, looks like it is the cause as its behaviour changed in this regard.
Individual.php:1157 has:
$sublevel = 1 + (int) $gedcom[0];
So in this case $gedcom seems to be null and it fails.
Indeed, GedcomRecord.php has a workaround on line 633, which gives null for the $gedcom argument in the addName function:
$this->addName(static::RECORD_TYPE, $this->getFallBackName(), null);
addName is defined as
protected function addName($type, $value, $gedcom)