Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when importing zip file #11

Open
glenwith1n opened this issue May 30, 2024 · 1 comment
Open

Error when importing zip file #11

glenwith1n opened this issue May 30, 2024 · 1 comment

Comments

@glenwith1n
Copy link

Describe the bug

I have an issue when importing getting this error - all the fields match, just seeing if I can get the latest content across.
craft\elements\Entry::setTypeId(): Argument #1 ($typeId) must be of type int, null given, called in /home/webdev/www/vhosts/gtc-c4/craft/vendor/yiisoft/yii2/base/Component.php on line 180
/home/webdev/www/vhosts/gtc-c4/craft/vendor/craftcms/cms/src/elements/Entry.php:1138
/home/webdev/www/vhosts/gtc-c4/craft/vendor/yiisoft/yii2/base/Component.php:180

Steps to reproduce

  1. Export from live site
  2. Import onto dev site

Craft CMS version

4.9.5

Plugin version

1.0.4

Multi-site?

Yes

Additional context

No response

@engram-design
Copy link
Member

Tricky to tell without seeing your setup, but sounds like the entryId for the entry can't be determined from the UID stored in the export. So your export should look something like:

{
    "verbb\\zen\\elements\\Entry":{
        "modified":[
            {
                "type":"craft\\elements\\Entry",
                "title":"My Entry",
                "uid":"3e685058-48c9-4565-a122-e699037cf3bb",
                "siteUid":"5cfc6bb4-bf05-46e6-bc5a-98e716fc3d71",
                "sectionUid":"432a4856-affa-4f6f-9bd3-0e9bc4b4d985",
                "typeUid":"4450dafe-0749-47a6-9e23-0270fc4faf83"
            },
            ...
        ]
    }
}

Can you verify if there's an entry type with the UID on the destination system? Zen is very strict about things being exactly the same with UID comparisons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants