Closed LeoWie93 closed 2 weeks ago
So there's an error saving the Matrix field, but there are no listed Matrix Block Type errors. Can you send through the export of your Matrix field (using Field Manager, and you're welcome to send to support@verbb.io
) so I can replicate your field on my end. This would be before starting anything to do with Hyper migrations.
So there's an error saving the Matrix field, but there are no listed Matrix Block Type errors. Can you send through the export of your Matrix field (using Field Manager, and you're welcome to send to
support@verbb.io
) so I can replicate your field on my end. This would be before starting anything to do with Hyper migrations.
Thank you for the prompt reply. We send you an export the to support mail :+1:
Thanks for sending that through. I can see that Matrix doesn't actually add any field errors to their blocktype, which would explain the lack of error message here. Fixed for the next release. To get this early, run composer require verbb/hyper:"dev-craft-4 as 1.2.1"
.
But the error message is as follows:
{"siteNavigationBlock_siteNavigationBlockCallToAction":{"handle":["Handle should contain at most 28 characters."]}}
What's strange is that I can change the Typed Link field in the Matrix field manually, and that works. I can see how the field handle is too long, as in the database table for a Matrix field and Block Type, it's actually going to be something like field_siteNavigationBlock_siteNavigationBlockCallToAction_ndaunrgv
which is too long of a column name for MySQL.
The reason this isn't an issue with Typed Link is because its content is stored in a different table, while Hyper is going to store content "normally" alongside other content.
So I believe shortening your field handle should do the trick.
@engram-design changing the fieldhandle inside the matrix block to something shorter did the trick. Thank you for the support!
Describe the bug
Hey
We are testing this plugins migration tool and stumble over the following error.
The field 'siteNavigationBlockCallToAction` is inside a normal matrix. (not supertable, but the plugin is installed and used in other areas)
Steps to reproduce
./craft hyper/migrate/typed-link-field
Craft CMS version
4.11.3
Plugin version
1.2.1
Multi-site?
No
Additional context
It looks really similiar to this issue: https://github.com/verbb/hyper/issues/102
But our fields do have really specific field handles.