field-manager icon indicating copy to clipboard operation
field-manager copied to clipboard

Export failing with NEO field

Open zroberts opened this issue 3 years ago • 5 comments

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

  • Plugin version: 2.2.3
  • Craft version: 3.6.17
  • Multi-site: No

Appreciate any assistance!

zroberts avatar Jun 27 '21 23:06 zroberts

Fixed in 2.2.4

engram-design avatar Jun 30 '21 07:06 engram-design

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

Additional info

  • Plugin version: 2.2.4
  • Neo Version: 2.11.4
  • Craft version: 3.7.7
  • Multi-site: No

reilnuud avatar Aug 03 '21 23:08 reilnuud

@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.

engram-design avatar Aug 04 '21 01:08 engram-design

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

tekstrand avatar Jan 28 '22 15:01 tekstrand

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

engram-design avatar Jan 28 '22 21:01 engram-design

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

  • Craft edition & version | Craft Pro 4.2.5.2
  • Super Table | 3.0.1
  • Multi site Yes

bzin avatar Oct 12 '22 11:10 bzin

Fixed in 3.0.4

engram-design avatar Oct 12 '22 23:10 engram-design