# Cannot use 'Object' as class name as it is reserved

**URL:** <https://discourse.cakephp.org/t/cannot-use-object-as-class-name-as-it-is-reserved/9564>\
**Category:** Need Help\
**Tags:** help\
**Created:** [July 29, 2021, 7:54pm UTC](https://discourse.cakephp.org/t/cannot-use-object-as-class-name-as-it-is-reserved/9564 "2021-07-29T19:54:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierrot10](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pierrot10](https://discourse.cakephp.org/u/pierrot10)\
**Post date:** [July 29, 2021, 7:54pm UTC](https://discourse.cakephp.org/t/cannot-use-object-as-class-name-as-it-is-reserved/9564/1 "2021-07-29T19:54:23Z")

</div>

Hello,

I hope you can help me quickly 🙂

I have an old cakephp web site V2.4.3 and I got so many problems with the host provider.  
I have to move to a new host provider.

I transfer the root of cakephp to the new host provider. I also imported the DB.  
I modified the DB credential and now when I look at my web site, I have that error message

> **Fatal error** : Cannot use ‘Object’ as class name as it is reserved in **/home/clients/xxxxxx7bc2b114dc798f9b2489b9xxxxxxxx/web/lib/Cake/Core/Object.php** on line **31**

Is there something else, I should do like deleting the cache folder???

Many thanks

---

<div class="post-metadata">

**Author:** ![pierrot10](https://avatars.discourse-cdn.com/v4/letter/p/bc79bd/32.png) [@pierrot10](https://discourse.cakephp.org/u/pierrot10)\
**Post date:** [July 29, 2021, 8:44pm UTC](https://discourse.cakephp.org/t/cannot-use-object-as-class-name-as-it-is-reserved/9564/2 "2021-07-29T20:44:24Z")

</div>

> [@pierrot10](#):
>
> Cannot use ‘Object’ as class name as it is reserved in

Would it not be because of the PHP version? Should it be beloe 7.2?  
My host provider give some choose below 7.3 =\> 7.2 and 5.8

---

<div class="post-metadata">

**Author:** ![KevinPfeifer](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/kevinpfeifer/32/3365_2.png) [@KevinPfeifer](https://discourse.cakephp.org/u/KevinPfeifer)\
**Post date:** [July 29, 2021, 10:21pm UTC](https://discourse.cakephp.org/t/cannot-use-object-as-class-name-as-it-is-reserved/9564/3 "2021-07-29T22:21:12Z")

</div>

This is because you are using a very old cakephp 2 version with php 7.2
