Skip to content

[Bug]: PHP execution exception (null pointer) in CoreCacheHandler #18782

@SimonCremer

Description

@SimonCremer

Pimcore version

2025.3

Steps to reproduce

Not sure how to reproduce it, but found the following entries within the error log. It happened during the deletion of data objects.
Uncaught PHP Exception Error: "Call to a member function __isBasedOnLatestData() on null" at CoreCacheHandler.php line 464

Actual Behavior

When deleting a lot of data objects the mentioned error occured from time to time.
Uncaught PHP Exception Error: "Call to a member function __isBasedOnLatestData() on null" at CoreCacheHandler.php line 464.

Expected Behavior

No error in CoreCacheHandler#464.
The Service::getElementById call in line 462 could return null, therefore $data should probably be checked on null (or something like that) before accessing it.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions