Hello,
I am trying to import JSON feeds in Drupal 8 to create content from Mongo DB and I’m having problems in the two approaches I tried:
1 ) Using Feeds extensible parsers
2 ) Using Single import with the Migration configuration type
With the Feeds extensible parsers and JSON JMESPath I have a couple of issues:
- Defining the context: ‘$’ and ‘.’ characters return an error. Those characters are used in the example from https://webtools.web.cern.ch/technologies/drupal/how-to/how-create-feeds
- If I put a context without those characters I get a different error:
- Warning : file_put_contents(/jmespath_df347a373b8f92aa0ae3dd920a5ec2f6.php): failed to open stream: Permission denied in JmesPath\CompilerRuntime->compile() (line 75 of /drupal/sites/jcop-drupal8.web.cern.ch/modules/feeds_ex/lib/mtdowling-jmespath.php/v2.4.0/src/CompilerRuntime.php ).
- Unable to write the compiled PHP code to: /jmespath_df347a373b8f92aa0ae3dd920a5ec2f6.php (NULL)
Did anyone succeeded in creating feeds with JSON JMESPath?
In the second approach, I created a yaml file to specify the migration using the json_source plugin and selecting the Migration configuration type from admin/config/development/configuration/single/import
When I click on the import button I get the following error:
The configuration cannot be imported because it failed validation for the following reasons:
- Configuration block.block.cern_comment_recent depends on the cern theme that will not be installed after import.
- Configuration block.block.cern_system_main depends on the cern theme that will not be installed after import.
We really need to import contents periodically in a couple of Drupal sites and I don’t see the way to do it…
Any help would be much appreciated.
Regards,
Ivan.