Skip to content

Activity Log returns Error 500 when User gets deleted #190

@LeonBuchner

Description

@LeonBuchner

Steps to reproduce the problem

  • Create 2 Accounts in the same workspace
  • Both write comments in the activity Log
  • Delete one user
  • Try to access actitivy Log in the post again -> will return error 500

Expected behaviour

Comments should be still working and visible, maybe with a [DELETED USER] Flag

Actual behaviour

Error 500

Detailed description

Logs says the following

[2026-02-12 19:29:06] production.ERROR: Call to a member function only() on null {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function only() on null at /home/cleavr/project-path/20260212060027874/vendor/inovector/mixpost-pro-team/src/Concerns/Model/PostActivity/Comment.php:64)

Specifications

Mixpost
4.6.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions