Closed ddrury closed 5 years ago
Edit user is working for me.
lots more error lines
Can you post the next few lines....
Interestingly, I just added a user and I can edit him so it's just me (user id 1) that causes the error, I attach an image of the wt_user_settings table showing the differences (the only differenc with the other use tables is that the new user doesn't exist in the database.
Unresolvable dependency resolving [Parameter #0 [ int $id ]] in class Fisharebest\Webtrees\Tree …\vendor\illuminate\container\Container.php:975
Adding a gedcomid in the user_gedcom_setting table causes the error
... and shouldn't that be user_id?
This is actually quite a horrible problem to solve properly...
The selector for an individual includes the lifespan alongside the name.
Formatting dates requires a tree. This is because the format includes conversions to other calendars, which is a per-tree setting.
This has been implemented as a global $tree
for years.
As part of the code cleanup, we are getting rid of global/session state. This makes everything more predictable, testable, etc.
So, we no longer have a session tree
variable, that is no longer being written to a global tree
variable.
The result is that on pages with no tree, we cannot (currently) format dates.
I guess we could simply detect the missing tree, and not apply calendar conversions here....
Have fun :-)
Also, dates include links to the calendar page - which requires a tree...
Unresolvable dependency resolving [Parameter #0 [ int $id ]] in class Fisharebest\Webtrees\Tree …\vendor\illuminate\container\Container.php:975 +lots more error lines