You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.
I'm using this after successfully exporting from the wordpress-exporter. The import-content-model command works perfectly and the import command works up until the entry part and then gives the same output:
$ contentful-importer --configuration=settings.yml import-entries
/usr/local/lib/ruby/gems/2.3.0/gems/contentful-importer-0.2.1/lib/contentful/importer/data_organizer.rb:28:in `/': divided by 0 (ZeroDivisionError) from /usr/local/lib/ruby/gems/2.3.0/gems/contentful-importer-0.2.1/lib/contentful/importer/data_organizer.rb:28:in `split_entries' from /usr/local/lib/ruby/gems/2.3.0/gems/contentful-importer-0.2.1/lib/contentful/importer/data_organizer.rb:19:in `execute' from /usr/local/lib/ruby/gems/2.3.0/gems/contentful-importer-0.2.1/lib/contentful/importer/parallel_importer.rb:31:in `import_data'
from /usr/local/lib/ruby/gems/2.3.0/gems/contentful-importer-0.2.1/lib/contentful/importer/import_entries.rb:14:in `import' from /usr/local/lib/ruby/gems/2.3.0/gems/contentful-importer-0.2.1/lib/contentful/importer/import_entries.rb:19:in `run' from /usr/local/lib/ruby/gems/2.3.0/gems/claide-0.8.2/lib/claide/command.rb:312:in `run' from /usr/local/lib/ruby/gems/2.3.0/gems/contentful-importer-0.2.1/bin/contentful-importer:12:in `<top (required)>'
from /usr/local/bin/contentful-importer:22:in `load' from /usr/local/bin/contentful-importer:22:in `<main>'
Here is my settings.yml:
#PATH to all datadata_dir: exported/news########## IMPORT DATA TO CONTENTFUL ############ EXPORTED XML FILE FROM WORDPRESSwordpress_xml_path: wordpress_settings/wp-news-2016-02-03.xml## CONVERT CONTENTFUL MODEL TO CONTENTFUL IMPORT STRUCTUREcontent_model_json: wordpress_settings/contentful_model.jsonconverted_model_dir: wordpress_settings/contentful_structure.jsoncontentful_structure_dir: wordpress_settings/default_contentful_structure.json# Contentful credentialsaccess_token: XXXorganization_id: XXXspace_id: XXXdefault_locale: en-US
The text was updated successfully, but these errors were encountered:
I believe this is the issue fixed by #24, but there hasn't been a new gem release since merging that. For the time being, you can either use master or explicitly pass a non-zero thread count on the commandline , e.g. --threads=1.
I'm using this after successfully exporting from the
wordpress-exporter
. Theimport-content-model
command works perfectly and theimport
command works up until the entry part and then gives the same output:Here is my
settings.yml
:The text was updated successfully, but these errors were encountered: