@litzinger Has anyone managed to import JSON / XML with datagrab into a new Store?
I have EE 7.5.17, Store 6.0.2, DataGrab 6.0.7 At the location datagrab/fieldtypes I see that there is a connector for the store ( datagrab_store.php ).
I tried to import both JSON and XML, pull the file, recognize the items from it, map the import fields and when I save I get the error.
Reproduction steps (100% repeatable): Create a new import (JSON or XML - doesn’t matter) Map Title → any field Map the Store field (e.g. shop_product) → price (or any other sub-field like SKU, modifiers, stock…) Click Save configuration → fatal error
TypeError Caught
BoldMinded\DataGrab\FieldTypes\AbstractFieldType::save_configuration(): Argument #3 ($customFieldSettings) must be of type array, string given, called in user/addons/datagrab/mcp.datagrab.php on line 1581
user/addons/datagrab/fieldtypes/AbstractFieldType.php:220
Stack Trace: Please include when reporting this error
#0 user/addons/datagrab/mcp.datagrab.php(1581): BoldMinded\DataGrab\FieldTypes\AbstractFieldType->save_configuration(Object(BoldMinded\DataGrab\Service\Importer), 'shop_product', 'price')
#1 user/addons/datagrab/mcp.datagrab.php(1210): Datagrab_mcp->getInput()
#2 [internal function]: Datagrab_mcp->save_configuration()
#3 ee/ExpressionEngine/Controller/Addons/Addons.php(1592): call_user_func_array(Array, Array)
#4 ee/ExpressionEngine/Controller/Addons/Addons.php(868): ExpressionEngine\Controller\Addons\Addons->getModuleSettings('datagrab', 'save_configurat...', Array)
#5 [internal function]: ExpressionEngine\Controller\Addons\Addons->settings('datagrab', 'save_configurat...')
#6 ee/ExpressionEngine/Core/Core.php(269): call_user_func_array(Array, Array)
#7 ee/ExpressionEngine/Core/Core.php(125): ExpressionEngine\Core\Core->runController(Array)
#8 ee/ExpressionEngine/Boot/boot.php(184): ExpressionEngine\Core\Core->run(Object(ExpressionEngine\Core\Request))
#9 index.php(143): require_once('...')
#9 index.php(143): require_once('...')Hi, Tomislav. I don’t handle support like this through Slack. Please create a ticket on boldminded.com then I’ll be able to look into it after Dec 1st due to the Thanksgiving holiday.
Also, this may be an issue with the fact that I have not gotten around to updating Store or Cartthrob imports to support the new versions (noted in the upgrade docs), and I don’t yet know when I’ll be able to get to this. The sheer complexity of those import types make it very time consuming to properly test.
Small update on this, I made some progress this afternoon and might have a working update soon. Create a ticket on boldminded.com so I can send you a new build when it’s ready.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.