# Upgarde to 4.4.9 via Composer fails with unefined constant

**URL:** https://forum.mautic.org/t/upgarde-to-4-4-9-via-composer-fails-with-unefined-constant/28365
**Category:** Mautic 4 Install/Upgrade Support
**Created:** [June 19, 2023, 6:09pm UTC](https://forum.mautic.org/t/upgarde-to-4-4-9-via-composer-fails-with-unefined-constant/28365 "2023-06-19T18:09:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)
#### Post date: [June 19, 2023, 6:09pm UTC](https://forum.mautic.org/t/upgarde-to-4-4-9-via-composer-fails-with-unefined-constant/28365/1 "2023-06-19T18:09:30Z")

</div>

**Your software**  
My Mautic version is: 4.4.9  
My PHP version is: 8.0  
My Database type and version is: MariaDB

**Your problem**  
My problem is: When I try to run database migrations after the latest composer update, I get the following error message:

```auto
Migration 20230522115137 failed during Execution. Error Undefined constant MauticPlugin\MauticCitrixBundle\Integration\CitrixAbstractIntegration::DEPRECATION_MESSAGE

In Version20230522115137.php line 38:
                                                                                                                 
  Undefined constant MauticPlugin\MauticCitrixBundle\Integration\CitrixAbstractIntegration::DEPRECATION_MESSAGE  

```

Steps I have tried to fix the problem:

- Cleared cache
- Validated issue exists on multiple boxes

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [June 19, 2023, 6:43pm UTC](https://forum.mautic.org/t/upgarde-to-4-4-9-via-composer-fails-with-unefined-constant/28365/2 "2023-06-19T18:43:46Z")

</div>

After a quick look i think there is an issue in the migration file, there is no constant declared in the bundle class and yet the migration is referring to it.

Further more all this migration does is insert some warning that I guess is telling you that citrix is deprecated. If you deactivate the plugin and try to run the migration again it should be ok.

You can also “fix” the issue by changing the line here:

> <https://github.com/mautic/mautic/blob/aa4f8b678bc13edf0b9f1f51cf7d642b6fbaf347/app/migrations/Version20230522115137.php#L38>

to something like this:

```auto
$message = "Citrix is not available on Mautic 5";

```

Hope this helps.

Regards, M.

---

<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: [June 19, 2023, 6:49pm UTC](https://forum.mautic.org/t/upgarde-to-4-4-9-via-composer-fails-with-unefined-constant/28365/3 "2023-06-19T18:49:36Z")

</div>

@steverobinson would you mind raising it as a bug on GitHub?

I think it’s hopefully a quick fix which we can push out in the next patch release.

---

<div class="post-metadata">

### Author: ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)
#### Post date: [June 19, 2023, 7:48pm UTC](https://forum.mautic.org/t/upgarde-to-4-4-9-via-composer-fails-with-unefined-constant/28365/4 "2023-06-19T19:48:23Z")

</div>

Thanks! I ended up skipping (deleting) the migration for now since we’re not running the plugin at this time, but your fix is a lot more elegant!

---

<div class="post-metadata">

### Author: ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)
#### Post date: [June 19, 2023, 7:48pm UTC](https://forum.mautic.org/t/upgarde-to-4-4-9-via-composer-fails-with-unefined-constant/28365/5 "2023-06-19T19:48:49Z")

</div>

@silavapi [Bug created](https://github.com/mautic/mautic/issues/12501)
