Skip to content

PHP Warning: Attempt to read property "id" on null in ActionLogPlugin #45843

@jjnxpct

Description

@jjnxpct

ummary

The ActionLogPlugin throws multiple PHP warnings when attempting to access properties on null objects.

Steps to reproduce the issue

Navigate to Joomla administrator backend
Perform actions that trigger the ActionLog plugin
Multiple errors appear in PHP error logs

Expected result

No PHP warnings should be generated.

##Actual result
Multiple PHP warnings are logged.

System information

PHP Version: 8.4.8
Joomla Version: 5.3.2

Additional comments

Error Details:
PHP Warning: Attempt to read property "id" on null in /administrator/components/com_actionlogs/src/Plugin/ActionLogPlugin.php on line 75
PHP Warning: Attempt to read property "username" on null in /administrator/components/com_actionlogs/src/Plugin/ActionLogPlugin.php on line 79
PHP Warning: Attempt to read property "id" on null in /administrator/components/com_actionlogs/src/Plugin/ActionLogPlugin.php on line 83

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions