cms icon indicating copy to clipboard operation
cms copied to clipboard

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

Open gopeter opened this issue 1 year ago • 0 comments

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

gopeter avatar Oct 17 '24 16:10 gopeter