Skip to content

[5.x]: "actionRecentActivity" throws "Nesting level too deep - recursive dependency?" #15915

Open

Description

What happened?

Description

Looking at my PHP error logs, I sometimes find this:

2024-10-17 10:26:47 [web.ERROR] [yii\base\ErrorException:1] Nesting level too deep - recursive dependency? {"trace":["#0 [internal function]: yii\\base\\ErrorHandler->handleFatalError()","#1 {main}"],"memory":3935280,"exception":"[object] (yii\\base\\ErrorException(code: 1): Nesting level too deep - recursive dependency? at /var/www/releases/21/vendor/craftcms/cms/src/services/Elements.php:2717)"} 

Looking further in the application log, I have some more details:

2024-10-17 10:26:47 [web.WARNING] [application] Request context: {"environment":"production","userId":...,"sessionId":"...","body":"{\"elementType\":\"craft\\\\commerce\\\\elements\\\\Product\",\"elementId\":155830,\"draftId\":null,\"siteId\":12,\"provisional\":false}","vars":{"_GET":{"p":"admin/actions/elements/recent-activity","site":"esEn","dontExtendSession":"1","v":"1729153607180"},"_FILES":[]

Steps to reproduce

  1. That's the point – I can't reproduce it. It happens, but I cant reproduce it. We have 3 matrix fields, but they have only one level, nothing deeply stacked.

Expected behavior

That we don't get this error.

Actual behavior

That the PHP error appears.

Craft CMS version

Craft Pro 5.4.8

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

  • Commerce 5.1.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions