Closed hartenthaler closed 3 years ago
Is it possible to have more information on this bug? In which case it happens. It's linked to confidential data and the calculate_median (Array) function calculates the median of the different dates of birth for the same generation. I can't reproduce this bug.
I will try to test in which cases it appears.
I can reproduce this error: try it on my page with Elizabeth Stuart (I4584) and 2 generations. It is maybe related to the fact that in the next generation there is one person with a birth date in Julian calendar: Anna-von-Oldenburg. Her birth record is
1 BIRT
2 DATE @#DJULIAN@ 14 OCT 1574
Thanks, the problem was julian date. I modify to take all calendars (French, Julian ...).
Tested without any error. Thanks! Solved!
There is an error in the webtrees logfile:
A non well formed numeric value encountered …/modules_v4/webtrees-branch-statistics/resources/views/chart.phtml:367</b> <b>#0 …/modules_v4/webtrees-branch-statistics/resources/views/chart.phtml(367): Fisharebest\Webtrees\Webtrees::Fisharebest\Webtrees\{closure}(8, 'A non well form...', '/mnt/web312/a3/...', 367, Array)</b> <b>#1 …/modules_v4/webtrees-branch-statistics/resources/views/chart.phtml(255): calculate_median(Array)</b> #2 …/app/View.php(189): include('/mnt/web312/a3/...') #3 …/app/View.php(286): Fisharebest\Webtrees\View->render() #4 …/app/Helpers/functions.php(203): Fisharebest\Webtrees\View::make('_webtrees-branc...', Array) #5 …/app/Http/ViewResponseTrait.php(51): view('_webtrees-branc...', Array) <b>#6 …/modules_v4/webtrees-branch-statistics/src/Module.php(200): Fisharebest\Webtrees\Module\AbstractModule->viewResponse('_webtrees-branc...', Array)</b> #7 …/app/Http/Middleware/WrapHandler.php(66): Squatteur\Webtrees\BranchStatistics\Module->handle(Object(Nyholm\Psr7\ServerRequest)) #8 …/vendor/oscarotero/middleland/src/Dispatcher.php(136): Fisharebest\Webtrees\Http\Middleware\WrapHandler->process(Object(Nyholm\Psr7\ServerRequest), Object(Middleland\Dispatcher)) <b>#9 …/modules_v4/vesta_research_suggestions/ResearchSuggestionsModule.php(212): Middleland\Dispatcher->handle(Object(Nyholm\Psr7\ServerRequest))</b> #10 …/vendor/oscarotero/middleland/src/Dispatcher.php(136):