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

jekyll 3.5.0 | Error: undefined method `registers' for nil:NilClass #6181

Closed
5 tasks done
jclwilson opened this issue Jun 26, 2017 · 3 comments
Closed
5 tasks done

jekyll 3.5.0 | Error: undefined method `registers' for nil:NilClass #6181

jclwilson opened this issue Jun 26, 2017 · 3 comments

Comments

@jclwilson
Copy link

jclwilson commented Jun 26, 2017

  • I believe this to be a bug, not a question about using Jekyll.
  • I updated to the latest Jekyll (or) if on GitHub Pages to the latest github-pages
  • I ran jekyll doctor to check my configuration
  • I am on (or have tested on) Debian/Ubuntu GNU/Linux
  • I was trying to build.

My Reproduction Steps

  1. I upgraded from 3.4.3 to 3.5.0.
  2. I changed gems in the config file to plugins. I have installed:
    • jekyll-seo-tag
    • jekyll-redirect-from
    • jekyll-feed
    • jekyll-sitemap
  3. When I ran jekyll build the build failed and gave the error:
    • jekyll 3.5.0 | Error: undefined method `registers' for nil:NilClass
  4. When I ran jekyll build -t the first line gave:
    • /var/lib/gems/2.3.0/gems/jekyll-3.5.0/lib/jekyll/filters/url_filters.rb:44:in `site': undefined method `registers' for nil:NilClass (NoMethodError)
    • There are more lines, but I've omitted them here.
@ashmaroli
Copy link
Member

@jclwilson Thanks for reporting this.
We may have resolved this already via #6163

Can you use the master branch of this repo and get back?
To use the master branch, make the following change to your Gemfile, then run bundle install

- gem "jekyll", "3.5.0"
+ gem "jekyll", :git => "https://github.com/jekyll/jekyll.git"

@DirtyF DirtyF added the bug label Jun 26, 2017
@DirtyF
Copy link
Member

DirtyF commented Jun 26, 2017

@jclwilson Thanks for reporting, sorry for the inconvenience. 😕

Like @ashmaroli said, using jekyll's current master branch will allow you to build without error.

You still can downgrade to 3.4.4 for now, until we release a patched version:

gem "jekyll", "3.4.4"

@jclwilson
Copy link
Author

Hi, thanks very much, at least it's been identified. I've installed Jekyll via Ruby Gems, so I just downgraded to 3.4.4.

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

No branches or pull requests

4 participants