danielbrendel / hortusfox-web

Self-hosted collaborative plant management and tracking system for plant enthusiasts
https://www.hortusfox.com
MIT License
674 stars 34 forks source link

500 Internal Server Error - After upgrade to 3.1 #213

Closed chiruleonard closed 5 months ago

chiruleonard commented 6 months ago

Describe the bug I used the docker instructions from the github page. https://github.com/danielbrendel/hortusfox-web?tab=readme-ov-file#installation but when i tried to access the app, username and password was ok, but once i click Login it gave me this error.

Screenshots and Logs Screenshot Logs

Software:

danielbrendel commented 6 months ago

Hi,

The error is caused because there is at least one recent log entry in the log table associated with a non existing user.

A workaround would be to identify the user id and clear all log entries of that user. Or clear the entire log table. You could also manually edit the /app/models/LogModel.php file and validate that $log_user is not null at line 51.

Those are the only solutions right now until I add a fix.

Sorry for the inconvenience. If you need help with that workarounds feel free to join the discord and msg me there.

Kind Regards