verbb / field-manager

Field Manager is a Craft CMS plugin to make it easy to manage your fields and field groups.
MIT License
199 stars 16 forks source link

Export failing with NEO field #79

Closed zroberts closed 1 year ago

zroberts commented 3 years ago

Description Exporting a NEO field currently crashing.

Getting an "Array to String" conversion error on line 146 of the src/services/Export.php file,

'childBlocks' => Json::decodeIfJson((string)$blockType->childBlocks)

Additional info

Appreciate any assistance!

engram-design commented 3 years ago

Fixed in 2.2.4

reilnuud commented 3 years ago

Sad to say this one has returned–not sure if the issue is in this repo, neo's, or both.

Additional info

engram-design commented 3 years ago

@reilnuud Should be fixed for the next release. To get the fix early, change your verbb/field-manager requirement in composer.json to:

"require": {
  "verbb/field-manager": "dev-craft-3 as 2.2.4",
  "...": "..."
}

Then run composer update.

However, do note that we're also waiting on https://github.com/spicywebau/craft-neo/pull/489 to have the export updated and importing fields fixed.

tekstrand commented 2 years ago

@engram-design any chance we can get this released so we don't have to continue using the dev branch?

engram-design commented 2 years ago

@tekstrand Yep, would be good to see if https://github.com/verbb/field-manager/issues/82 needs a fix.

bzin commented 1 year ago

Having the same issue but with an SuperTable field with Matrix layout. Other SuperTable fields do export correctly.

Unknown Property – [yii\base\UnknownPropertyException](http://www.yiiframework.com/doc-2.0/yii-base-unknownpropertyexception.html)
Getting unknown property: verbb\supertable\models\SuperTableBlockType::fields

CleanShot 2022-10-12 at 13 54 55

engram-design commented 1 year ago

Fixed in 3.0.4