dgrigg / Craft-Migration-Manager

Deprecated - Migration Manager for Craft CMS
MIT License
39 stars 15 forks source link

Cant create Migration getVolumeById() must be of the type int #44

Closed TobiasDax closed 5 years ago

TobiasDax commented 5 years ago

If i try to create my first migration i get the floowing error: Argument 1 passed to craft\services\Volumes::getVolumeById() must be of the type int, string given, called in /sites/craft2/vendor/firstborn/migrationmanager/src/services/Fields.php on line 388

no migration is created. I only tried to create a migration for a singe matrix field

Craft Version: 3.1.3 Amazon S3 1.0.8 Asset Usage 2.0.0-beta.2 Field Manager 2.0.4 Migration Manager 3.0.15 Redactor 2.2.1 Section Field 1.1.0 Super Table 2.1.5.1 Table Maker 2.0.1 Video Embedder 1.1.1

damienbuckley commented 5 years ago

Following

dgrigg commented 5 years ago

Hi @TobiasDax, does the volume that is being used by the matrix field exist in the destination CMS and does it use the same handle? If not you would need to create a migration for the volume and run it first before the field migration.

damienbuckley commented 5 years ago

I’m getting the error when creating the migration to export the fields

harispepic commented 5 years ago

same problem here

dgrigg commented 5 years ago

@TobiasDax @damienbuckley @harispepic to confirm, you have a Matrix field with a block, the block contains an asset field. Is the asset field restricted to a single asset volume or open to all volumes?

harispepic commented 5 years ago

@dgrigg i just figured out the problem by me is coming from the category field.

dgrigg commented 5 years ago

@TobiasDax @damienbuckley any extra details you can provide on the matrix field setup? At this point I can't reproduce the issue you are seeing.

dgrigg commented 5 years ago

The issue is related to Craft 3.1 and uids. Working on a fix

damienbuckley commented 5 years ago

Happy to pay for this plugin if anything can be done quicker…

dgrigg commented 5 years ago

@damienbuckley @TobiasDax try the latest release 3.0.16