-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors "unexpectedly empty!" in webtrees log files #154
Comments
The error can be reproduced with issue vesta-webtrees-2-custom-modules/vesta_common#105. However, vesta-webtrees-2-custom-modules/vesta_common#105 is probably not the only root cause for the error message, because it is a very specific situation (wrong date range in source) and the error message in the logs occurs very often. |
I'll have to investigate this - Maybe shared places where no name is given for the date of the event are not handled properly (in any case the cause seems to be date-related, as seen in vesta-webtrees-2-custom-modules/vesta_common#105). |
The related issue is now fixed (in code, no release yet). Is there anything special about the shared places in your tree that seem to trigger the error (e.g. 'Sachsen-Anhalt')? Such as a complex structure of names and parents, restricted to specific dates? |
Well, I make al ot of use of the SOUR:DATA:EVEN:DATE structure to describe sources. In a number of cases, the date ranges use the same start and end date, e.g. "DATE FROM 1926 TO 1926" in the following example.
I analyzed the webtrees error logs in more depth and exported all the errors "unexpectedly empty!" related to shared places, see attached CSV file. I also tried to get an overview over the pattern of the " |
Thank you for your help -
Yes - you'll see a 500 response code in the browser development tools in this case (but otherwise it just appears as if nothing is found, so the error isn't directly visible on the page).
This format (same date in FROM and TO) may be handled improperly, I'll have to check that. |
In this sub-structure of a source, Gedcom requires to provide a date range:
I could use DATE FROM 01 JAN 1926 TO 31 DEC 1926. However, in a lot of cases, this would add information, which I do not know or have no proof of. |
Oh, I never realized it should be a date period instead of a date value - Probably because webtrees doesn't enforce that. I'll create an issue for this in webtrees. |
I cannot seem to reproduce the error after the fix from vesta-webtrees-2-custom-modules/vesta_common#105 . If you apply that fix, do you still get these errors? |
I can confirm that the bugfix fixes the specific behavior reported in vesta-webtrees-2-custom-modules/vesta_common#105. Like mentioned above, there might be other root causes for the issue. After applying the bugfix, I did not get any new errors. I will keep watching the error logs, since the errors only occurs occasionally/sometimes and I do not know how to reproduce it. |
Thanks - if the error shows up again, the extended error message (last commit) should at least give a hint how to reproduce it. |
O.k, I installed the code from the last commit. If I find a new error message in the logs, I will report it. |
Since one month, the issue did not show up in the webtrees error logs again. Therefore, I think that the bugfix from vesta-webtrees-2-custom-modules/vesta_common#105 also fixed this issue. From my point of view, the issue can be closed. |
Thank you for the heads-up! |
Observed with webtrees 2.1.16 and vesta Shared Places 2.1.16.1.6.
In the webtrees error logs (Control panel / Website logs), I found a lot of errors from vesta shared places with a simular pattern. As a user, I did not recognize any surprising behavior. I also do not know how to reproduce thes errors in the logs. However, I still want to report the issue.
The errors look like this:
<b>unexpectedly empty! …/modules_v4/vesta_shared_places/patchedWebtrees/SharedPlace.php:1522</b> <b>#0 …/modules_v4/vesta_shared_places/patchedWebtrees/Http/RequestHandlers/TomSelectSharedPlace.php(99): Cissee\WebtreesExt\SharedPlace->primaryPlaceAt(Object(Vesta\Model\GedcomDateInterval), 'Sachsen-Anhalt,...')</b> vesta-webtrees-2-custom-modules/vesta_shared_places#1 [internal function]: Cissee\WebtreesExt\Http\RequestHandlers\TomSelectSharedPlace::Cissee\WebtreesExt\Http\RequestHandlers\{closure}(Object(Cissee\WebtreesExt\SharedPlace), 0) vesta-webtrees-2-custom-modules/vesta_shared_places#2 …/vendor/illuminate/collections/Collection.php(695): array_map(Object(Closure), Array, Array) <b>#3
It seems to be related to the name ofcertain shared places in a string: 'Sachsen-Anhalt,...' . Interesting enough, I also found error messages with a modifided 'achsen-anhalt, ...', e,g. Sachsen-Anhalt without starting "S".
The error messages seem to have started on 2023-02-25. However, I am not sure.
I also inlcude a full stack trace as file and some further example error messages.
Stack trace.txt
Error in logs - unexpectedly empty.txt
The text was updated successfully, but these errors were encountered: