# Site down with "Cannot autowire service...references class "Mautic\\CoreBundle\\Helper\\ComposerHelper" but no such service exists."

**URL:** <https://forum.mautic.org/t/site-down-with-cannot-autowire-service-references-class-mautic-corebundle-helper-composerhelper-but-no-such-service-exists/23087>\
**Category:** Product Support\
**Created:** [March 16, 2022, 3:42pm UTC](https://forum.mautic.org/t/site-down-with-cannot-autowire-service-references-class-mautic-corebundle-helper-composerhelper-but-no-such-service-exists/23087 "2022-03-16T15:42:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cStuartHardwick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cstuarthardwick/32/5695_2.png) [@cStuartHardwick](https://forum.mautic.org/u/cStuartHardwick)\
**Post date:** [March 16, 2022, 3:42pm UTC](https://forum.mautic.org/t/site-down-with-cannot-autowire-service-references-class-mautic-corebundle-helper-composerhelper-but-no-such-service-exists/23087/1 "2022-03-16T15:42:56Z")

</div>

**Your software**  
My Mautic version is: Whatever the previous update was as of 3/14/22. I was going to attempt the latest update this morning when I found my installation down.  
My PHP version is: 7.4  
My Database type and version is: MariaDB (MySQL) 5.6.43

**Your problem**  
Installation worked last night and I sent out a newsletter. This morning I get " The site is currently offline due to encountering an error. If the problem persists, please contact the system administrator."

These errors are showing in the log:  
[16-Mar-2022 15:26:15 UTC] Symfony\Component\DependencyInjection\Exception\RuntimeException: Cannot autowire service “Mautic\MarketplaceBundle\Command\InstallCommand”: argument “$composer” of method “\_\_construct()” references class “Mautic\CoreBundle\Helper\ComposerHelper” but no such service exists. - in file /home/cstukfps/email/vendor/symfony/dependency-injection/Compiler/DefinitionErrorExceptionPass.php - at line 54

Steps I have tried to fix the problem:  
I’ve manually deleted the cache through Cpanel and tried using terminal to reset file permissions as per a post on the Mautic website. I also tried starting the next update, but that gives the same error:

$ php bin/console mautic:update:find

In DefinitionErrorExceptionPass.php line 54:

Cannot autowire service “Mautic\MarketplaceBundle\Command\InstallCommand”: argument “$composer” of method “\_\_construct()” references class “Mautic\CoreBundle\Helper\ComposerHelper” but no such service exists."

The ComposerHelper.pgp its referring to exists, through the path on my installation is email\app\bundles\CoreBundle\Helper\ComposerHelper

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [March 16, 2022, 5:59pm UTC](https://forum.mautic.org/t/site-down-with-cannot-autowire-service-references-class-mautic-corebundle-helper-composerhelper-but-no-such-service-exists/23087/2 "2022-03-16T17:59:52Z")

</div>

> [@cStuartHardwick](#):
>
> My PHP version is: 8.0 (though phpAdmin reports 7.3.32

We [do not yet support PHP8](https://www.mautic.org/download/requirements). Please drop it to 7.4.

Maybe your host updated PHP without you knowing?

---

<div class="post-metadata">

**Author:** ![cStuartHardwick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cstuarthardwick/32/5695_2.png) [@cStuartHardwick](https://forum.mautic.org/u/cStuartHardwick)\
**Post date:** [March 16, 2022, 6:19pm UTC](https://forum.mautic.org/t/site-down-with-cannot-autowire-service-references-class-mautic-corebundle-helper-composerhelper-but-no-such-service-exists/23087/3 "2022-03-16T18:19:35Z")

</div>

Hmm. Maybe. That is indeed weird.

However, I set it back down to 7.4, deleted the cache and browser data, and still get the same error.  
Earlier, I ran the following, was any of this wrong?

```auto
find . -type f -not -perm 644 -exec chmod 644 {} +
find . -type d -not -perm 755 -exec chmod 755 {} +
chmod -R g+w var/cache/ var/logs/ app/config/
chmod -R g+w media/files/ media/images/ translations/
rm -rf var/cache/*

chown -R cstukfps:cstukfps /home/cstukfps/email (where cstukfps is obviously my installation, user, and permissions group name).
```

---

<div class="post-metadata">

**Author:** ![cStuartHardwick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/cstuarthardwick/32/5695_2.png) [@cStuartHardwick](https://forum.mautic.org/u/cStuartHardwick)\
**Post date:** [March 16, 2022, 6:33pm UTC](https://forum.mautic.org/t/site-down-with-cannot-autowire-service-references-class-mautic-corebundle-helper-composerhelper-but-no-such-service-exists/23087/4 "2022-03-16T18:33:04Z")

</div>

Interestringly, when I look at app\bundles\MarketplaceBundle\Command\InstallCommand , I see a syntax error on the line:

```
private ComposerHelper $composer;

```

It says "unexpected t\_string, expected t\_function or t\_const
