# Community Store exception when adding new user to store group

**URL:** <https://forums.concretecms.org/t/community-store-exception-when-adding-new-user-to-store-group/2096>\
**Category:** eCommerce\
**Created:** [January 6, 2022, 6:16pm UTC](https://forums.concretecms.org/t/community-store-exception-when-adding-new-user-to-store-group/2096 "2022-01-06T18:16:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![linuxoid](https://forums.concretecms.org/user_avatar/forums.concretecms.org/linuxoid/32/5311_2.png) [@linuxoid](https://forums.concretecms.org/u/linuxoid)\
**Post date:** [January 6, 2022, 6:16pm UTC](https://forums.concretecms.org/t/community-store-exception-when-adding-new-user-to-store-group/2096/1 "2022-01-06T18:16:28Z")

</div>

Has anyone got the following error after placing a successful order:

Failed to start the session because headers have already been sent by “…/public\_html/concrete/vendor/doctrine/common/lib/Doctrine/Common/Util/Debug.php” at line 82

I’ve pinned the place after which it occurs. It’s in completePostPaymentProcesses() of Order.php at line 981 of v2.4.3. If I replace (simply for the sake of testing)

```auto
$user->getUserObject()->enterGroup($group);

```

for

```auto
$user->enterGroup($group);

```

the exception disappears. It doesn’t solve the problem that the new user doesn’t get added to the group in any case.
