Custom object classes

Hi,

I’m currently trying to migrate from v4 to v5. When I start pimcore I got a few errors: One of them is

URL: /admin/class/get-tree?createAllowed=true&_dc=1503502936621
Method: GET
Message: Call to a member function getId() on null

Another error is that pimcore cannot load my custom object class. Looks like the classes are not being generated. But I can’t save them because the tree is not showing them in “Object classes”

How do I properly do this when migrating? Do I have to copy the object class files somewhere in the new structure? Or is there a CLI command to generate all object class files?

Thx & BR,
Alex

I copied the contents from v4:website/var/classes* into v5:var/classes and now the errors are gone.

Is there a list which directories have to be migrated in var? Because the assets, versions, etc. needs to be copied too?

BR,
Alex

Did you have a look at https://www.pimcore.org/docs/5.0.0/Installation_and_Upgrade/Updating_Pimcore/Upgrade_from_4_to_5/index.html and all linked pages?

Found th3 pimcore CLI 1 hour ago :slight_smile:

Thx & BR
Alex

Hi ,

I’m facing the same issue on Pimcore V6 . This is new installation and after login to the admin panel I’m getting the below error

Timestamp: Mon Nov 25 2019 15:50:47 GMT+0530 (India Standard Time)
Status: 500 | Internal Server Error
URL: /admin/class/get-tree?createAllowed=true&_dc=1574677246239
Method: GET
Message: Call to a member function getId() on null

Do let me know on how to resolve the same

Regards
Aravindan R

Hi ,

Any update on this ?

Regards
Aravindan R