# Fatal error: Nesting level too deep - recursive dependency?

**URL:** <https://forum.modmore.com/t/fatal-error-nesting-level-too-deep-recursive-dependency/2273>\
**Category:** Commerce\
**Created:** [August 18, 2021, 6:15am UTC](https://forum.modmore.com/t/fatal-error-nesting-level-too-deep-recursive-dependency/2273 "2021-08-18T06:15:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![heibel](https://forum.modmore.com/letter_avatar_proxy/v4/letter/h/96bed5/32.png) [@heibel](https://forum.modmore.com/u/heibel)\
**Post date:** [August 18, 2021, 6:15am UTC](https://forum.modmore.com/t/fatal-error-nesting-level-too-deep-recursive-dependency/2273/1 "2021-08-18T06:15:15Z")

</div>

Last Commerce version (1.2.1).  
When I try to delete product in Cart I get this …

**Fatal error** : Nesting level too deep - recursive dependency? in **/www/core/components/commerce/model/commerce/comsessioncartorder.class.php** on line **225**

---

<div class="post-metadata">

**Author:** ![mhamstra](https://forum.modmore.com/user_avatar/forum.modmore.com/mhamstra/32/459_2.png) [@mhamstra](https://forum.modmore.com/u/mhamstra)\
**Post date:** [August 18, 2021, 6:01pm UTC](https://forum.modmore.com/t/fatal-error-nesting-level-too-deep-recursive-dependency/2273/2 "2021-08-18T18:01:45Z")

</div>

We’ve not seen that error before, and I’m also not seeing it in my development environment, so please email [support@modmore.com](mailto:support@modmore.com) with credentials so we can try to debug that for you.

From some googling into possible reasons for that error, it might help to add the third argument on the mentioned file/line:

```auto
$pos = array_search($item, $this->_items, true);

```

… but I would like to understand how it’s getting into any recursion there. I can’t see how that’s possible…
