Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wordpress import error: wrong number of arguments #387

Closed
khusmann opened this issue Dec 22, 2018 · 3 comments · Fixed by #389
Closed

wordpress import error: wrong number of arguments #387

khusmann opened this issue Dec 22, 2018 · 3 comments · Fixed by #389

Comments

@khusmann
Copy link

Hi! Trying to import wordpress xml with:

ruby -r rubygems -e 'require "jekyll-import";
JekyllImport::Importers::WordpressDotCom.run({
"source" => "wordpress.xml",
"no_fetch_images" => false,
"assets_folder" => "assets"
})'

get error:
Error: wrong number of arguments (given 2, expected 1)
/usr/lib/ruby/2.5.0/uri/common.rb:236:in parse' /home/<user>/.gems/gems/jekyll-import-0.17.0/lib/jekyll-import/importers/wordpressdotcom.rb:41:in block in download_images'

when I remove the "allow_redirections" argument from line 41 in wordpressdotcom.rb, everything appears to work.

@ashmaroli

This comment has been minimized.

@DirtyF
Copy link
Member

DirtyF commented Dec 23, 2018

@khusmann the patch has been released in v0.17.1

@khusmann
Copy link
Author

Thanks everyone! :)

@jekyll jekyll locked and limited conversation to collaborators Dec 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants