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

Typed link field migration - Unable to find owner Matrix field for ID #226

Open
AnnieMODN opened this issue Jan 24, 2025 · 1 comment
Open

Comments

@AnnieMODN
Copy link

Describe the bug

Hi,

I'm trying to run the migration on a Craft 4 site running craft 4.14.1, using Hyper version 1.3.5, the php craft hyper/migrate/typed-link-field command is giving me the following warning:

Preparing to migrate field “linkTo” (bfa89be4-0822-403c-b831-7f427692f644).
    > Unable to find owner Matrix field for ID “182”.

    > Field “linkTo” migrated.

When I migrate the content everything seems to work, but I wanted to check to make sure if there were any issues with our database that we should be resolving before moving forwards.

The error comes from the codebase here:

$this->stdout(" > Unable to find owner Matrix field for ID “{$matrixFieldId}”." . PHP_EOL, Console::FG_RED);

Steps to reproduce

  1. php craft hyper/typed-link-legacy
  2. php craft hyper/migrate/typed-link-field
  3. php craft hyper/migrate/typed-link-content

Craft CMS version

4.14.1

Plugin version

1.3.5

Multi-site?

No

Additional context

No response

@engram-design
Copy link
Member

Tricky to say! It could be that this field is legitimately no longer in use on your site, and hence any error related to it doesn't matter, but it's worth double checking.

Can you look up your linkTo Typed Link field, or use it's ID of 182 and check to see if the owner Matrix field still exists? You can do this is a long-winded way by checking the context column in the fields database table. That'll reference a Matrix block type, which references a Matrix field. If the relations that hook all those things together has broken down (there's no Matrix field, or Matrix block type), then you're probably safe to disregard this, as the field is seemingly orphaned anyway.

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