eloyesp / jekyll_ghost_importer

Post importer from Ghost backup files.
GNU General Public License v3.0
67 stars 11 forks source link

`markdown': undefined method `last' for nil:NilClass (NoMethodError) #11

Closed LimeBlast closed 5 years ago

LimeBlast commented 5 years ago

Trying to import content from a version 2.6.0 ghost blog, and am getting the following error:

Importing _posts/2016-05-31-the-makers-guide-to-the-zombie-apocalypse.markdown
Traceback (most recent call last):
    7: from /Users/Daniel/.gem/ruby/2.5.3/bin/jekyll_ghost_importer:23:in `<main>'
    6: from /Users/Daniel/.gem/ruby/2.5.3/bin/jekyll_ghost_importer:23:in `load'
    5: from /Users/Daniel/.gem/ruby/2.5.3/gems/jekyll_ghost_importer-1.0.0/bin/jekyll_ghost_importer:138:in `<top (required)>'
    4: from /Users/Daniel/.gem/ruby/2.5.3/gems/jekyll_ghost_importer-1.0.0/bin/jekyll_ghost_importer:138:in `each'
    3: from /Users/Daniel/.gem/ruby/2.5.3/gems/jekyll_ghost_importer-1.0.0/bin/jekyll_ghost_importer:140:in `block in <top (required)>'
    2: from /Users/Daniel/.gem/ruby/2.5.3/gems/jekyll_ghost_importer-1.0.0/bin/jekyll_ghost_importer:54:in `import'
    1: from /Users/Daniel/.gem/ruby/2.5.3/gems/jekyll_ghost_importer-1.0.0/bin/jekyll_ghost_importer:114:in `full_body'
/Users/Daniel/.gem/ruby/2.5.3/gems/jekyll_ghost_importer-1.0.0/bin/jekyll_ghost_importer:123:in `markdown': undefined method `last' for nil:NilClass (NoMethodError)
eloyesp commented 5 years ago

Thanks for the report, can you attach a minimal sample that reproduce the issue so we can use that sample to fix it?

LimeBlast commented 5 years ago

I'm not sure how I'd supply a minimal sample, but I can provide the export that I'm trying to work from:

REDACTED

Let me know when you have it so I can delete it :)

eloyesp commented 5 years ago

I've got it, you can remove it now.

Just for the record, your blog title is awesome!

LimeBlast commented 5 years ago

That's kind of you to say.

And thank you for looking at this, I can't wait to get off ghost - it's causing more trouble then it's worth.

eloyesp commented 5 years ago

@LimeBlast can you try with the version on the pull request, just for double check before publishing?

LimeBlast commented 5 years ago

Looking good to me, thank you.

It doesn't seem to import the URL to the featured image, but I'm guessing that's over and above purpose of the gem, which otherwise seems to work perfectly now.

Thank you :)

eloyesp commented 5 years ago

@LimeBlast thanks for the reminder, it is published now.