# Don't upgrade to php 8.2 yet (December 11, 2022)

**URL:** <https://discourse.getcockpit.com/t/dont-upgrade-to-php-8-2-yet-december-11-2022/2604>\
**Category:** Cockpit v2\
**Created:** [December 11, 2022, 10:24am UTC](https://discourse.getcockpit.com/t/dont-upgrade-to-php-8-2-yet-december-11-2022/2604 "2022-12-11T10:24:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![faridbouchdak](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/faridbouchdak/32/1132_2.png) [@faridbouchdak](https://discourse.getcockpit.com/u/faridbouchdak)\
**Post date:** [December 11, 2022, 10:24am UTC](https://discourse.getcockpit.com/t/dont-upgrade-to-php-8-2-yet-december-11-2022/2604/1 "2022-12-11T10:24:20Z")

</div>

I just found out that v2 isn’t ready for php 8.2 yet.

when I try to login or simply use cockpit and it’s API, it throws two errors:

```auto
**Deprecated** : Creation of dynamic property Lime\Module::$_models is deprecated in **/cockpit-core/lib/Lime/App.php** on line **1311**

**Deprecated** : Creation of dynamic property Lime\Module::$_refs is deprecated in **/cockpit-core/lib/Lime/App.php** on line **1311**

```

I tried the built-in [PHP-attribute](https://www.php.net/releases/8.2/en.php#deprecate_dynamic_properties): `#[\AllowDynamicProperties]` for a quick-fix, but to no avail.

So i rolled back the php version on my machine to 8.1, waiting for an update from @artur

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [December 12, 2022, 12:40am UTC](https://discourse.getcockpit.com/t/dont-upgrade-to-php-8-2-yet-december-11-2022/2604/2 "2022-12-12T00:40:44Z")

</div>

Hey 👋

Should be fixed with this commit: [Fix PHP 8.2 related issues · Cockpit-HQ/Cockpit@c62d9fc · GitHub](https://github.com/Cockpit-HQ/Cockpit/commit/c62d9fcac5db02dc7def1d08b219d72156bf8a92)

You can get and test the latest dev build here:

> **[releases/develop • Cockpit files](https://files.getcockpit.com/?dir=releases%2Fdevelop)**
>
> Cockpit files

---

<div class="post-metadata">

**Author:** ![faridbouchdak](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/faridbouchdak/32/1132_2.png) [@faridbouchdak](https://discourse.getcockpit.com/u/faridbouchdak)\
**Post date:** [December 12, 2022, 9:01am UTC](https://discourse.getcockpit.com/t/dont-upgrade-to-php-8-2-yet-december-11-2022/2604/3 "2022-12-12T09:01:11Z")

</div>

Thank you for your reply @artur.  
We are one step closer.  
Now when i am logged in and want to view a collection, i get the following error:  
` **Deprecated** : Creation of dynamic property MongoHybrid\MongoLite::$db is deprecated in **/cockpit-core/lib/MongoHybrid/MongoLite.php** on line **14** `

this is not a package you maintain, right?

---

<div class="post-metadata">

**Author:** ![artur](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.getcockpit.com/artur/32/4_2.png) [@artur](https://discourse.getcockpit.com/u/artur)\
**Post date:** [December 12, 2022, 11:50am UTC](https://discourse.getcockpit.com/t/dont-upgrade-to-php-8-2-yet-december-11-2022/2604/4 "2022-12-12T11:50:03Z")

</div>

Good catch, should be fixed now 👍
