mbin icon indicating copy to clipboard operation
mbin copied to clipboard

Fix Attempt to read property "root" on null

Open melroy89 opened this issue 1 month ago • 0 comments

Fixing:

{
    "message": "Warning: Attempt to read property \"root\" on null",
    "context": {
        "exception": {
            "class": "ErrorException",
            "message": "Warning: Attempt to read property \"root\" on null",
            "code": 0,
            "file": "/app/src/Controller/Entry/Comment/EntryCommentViewController.php:52"
        }
    },
    "level": 400,
    "level_name": "ERROR",
    "channel": "php",
    "datetime": "2025-11-13T21:23:00.305241+00:00",
    "extra": {}
}

Keep the rest of the current existing code as is. I like the error message shown while still seeing the magazine, this code works fine. We don't need to clean up the existing working code: https://github.com/search?q=repo%3AMbinOrg%2Fmbin%20%22Comment%20not%20found%22&type=code.

Code line that caused issue was introduced in PR: https://github.com/MbinOrg/mbin/pull/1563

melroy89 avatar Nov 14 '25 18:11 melroy89