Pennebaker / craft-architect

A plugin for importing and exporting content models from Craft 3/4 using JSON.
MIT License
72 stars 6 forks source link

Craft 3.1 compatiblity issues? #36

Closed christianruhstaller closed 5 years ago

christianruhstaller commented 5 years ago

It seems that there are some compatibility issues with the new Craft version.

  1. Assets field export fails with an php notice: Trying to get property 'volumeId' of non-object It seems a id/uid issue
  2. Export an entries field and import it to another site and it will loose the associated entry types.

For now these are the only problems I've found.

spAnser commented 5 years ago

Looks like craft is storing the attached id using their new ID method.

volume:23b079b0-ab36-4728-aeac-6113f5904a8a

By asking for FolderById obviously doesn't work with this ID. Will need to find the alternative method for getting the right volumes. This might affect quite a few things actually.

spAnser commented 5 years ago

Looks like this is all documented here: https://craftcms.com/guides/updating-plugins-for-craft-3-1

I may end up rewriting how mapping these types of fields is handled. Which will need some fallback support as well.

I know what and how to fix this it will take some time I don't want to just slap some flex tape on the issue and call it a day.