# Mautic Update Composer 5.0.2. to 5.0.3. | Not Updating mautic/core-lib

**URL:** https://forum.mautic.org/t/mautic-update-composer-5-0-2-to-5-0-3-not-updating-mautic-core-lib/30813
**Category:** Product Support
**Created:** [February 7, 2024, 6:19am UTC](https://forum.mautic.org/t/mautic-update-composer-5-0-2-to-5-0-3-not-updating-mautic-core-lib/30813 "2024-02-07T06:19:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mcdiver](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mcdiver/32/6618_2.png) [@mcdiver](https://forum.mautic.org/u/mcdiver)
#### Post date: [February 7, 2024, 6:19am UTC](https://forum.mautic.org/t/mautic-update-composer-5-0-2-to-5-0-3-not-updating-mautic-core-lib/30813/1 "2024-02-07T06:19:09Z")

</div>

**Your software**  
My Mautic version is: 5.0.2  
My PHP version is: 8.2.  
My Database type and version is: SQL

**Your problem**  
My problem is: Hey I am currently running a test machine with Mautic 5.0.2  
Now I want to update to Mautic 5.0.3 and the Composer is simply not updating the Mautic core-lib. Everythin else is updated but not the core itself.  
I found a similar issue but not for Mautic 5

> [@Saw announcement for 4.3 upgrade - composer update not upgrading it to 4.3 but still on 4.2](https://forum.mautic.org/t/saw-announcement-for-4-3-upgrade-composer-update-not-upgrading-it-to-4-3-but-still-on-4-2/24192/7):
>
> I was able to fix it but it only a workaround and they are still discussing on best a solution to this. The workaround is on slack channel link below. Check this slack thread - [Slack](https://mautic.slack.com/archives/C01E8F6T2HM/p1654008977767519?thread_ts=1653719047.740319&cid=C01E8F6T2HM) I did the workaround steps show in slack and I was able to successfully upgrade to 4.3.1 but back up fully first and keep in mind it’s not an official fix however so far it’s working for me.

Steps I have tried to fix the problem:  
I tried alreay the method presented in the post, but without success. Is anyone else having issues with updating with Composer to 5.0.3?  
So I tried to manually change the composer.json and clearing the cache. I checked this instruction again but I stuck on 5.0.2  
[https://docs.mautic.org/en/5.x/getting\_started/how\_to\_install\_mautic.html#installing-with-composer](https://docs.mautic.org/en/5.x/getting_started/how_to_install_mautic.html#installing-with-composer)

I like to have the update because the API issue is fixed in 5.0.3 🙂

Thank you in advance for ideas and comments

---

<div class="post-metadata">

### Author: ![lexgabrees](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lexgabrees/32/4467_2.png) [@lexgabrees](https://forum.mautic.org/u/lexgabrees)
#### Post date: [February 7, 2024, 7:59am UTC](https://forum.mautic.org/t/mautic-update-composer-5-0-2-to-5-0-3-not-updating-mautic-core-lib/30813/2 "2024-02-07T07:59:32Z")

</div>

I’m running into the same issue, after updating with:

- composer update mautic/core-lib --with-dependencies
- clearing the cache and making sure all perms are correct.

Still seeing 5.02 in the footer.

---

<div class="post-metadata">

### Author: ![mcdiver](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mcdiver/32/6618_2.png) [@mcdiver](https://forum.mautic.org/u/mcdiver)
#### Post date: [February 8, 2024, 8:00pm UTC](https://forum.mautic.org/t/mautic-update-composer-5-0-2-to-5-0-3-not-updating-mautic-core-lib/30813/3 "2024-02-08T20:00:30Z")

</div>

If I execute the composer update command. I get the following output

````auto
Loading composer repositories with package information Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Generating autoload files
120 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Deprecation Notice: Return type of Mautic\Composer\Plugin\Scaffold\Operations\ScaffoldFileCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/mautic/vendor/mautic/core-composer-scaffold/Operations/ScaffoldFileCollection.php:118
Scaffolding files for mautic/core-lib:
  - Copy [project-root]/package-lock.json from assets/scaffold/files/package-lock.json
> npm ci --prefer-offline --no-audit
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs

> mautic@0.0.0 postinstall
> node_modules/modernizr/bin/modernizr -c modernizr-config.json -d node_modules/modernizr/modernizr-mautic-dist.js & npm run build

Modernizr build saved to node_modules/modernizr/modernizr-mautic-dist.js

> mautic@0.0.0 build
> webpack --mode production --config webpack.config.js

Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme```

I tried the npx update without succes. Anyone ideas what I can try?
Is there anything about the npm WARNings?
Thank you :)
````
