octopress / linkblog

Adds link blogging features, along with some other niceties, to any Jekyll site.
MIT License
20 stars 12 forks source link

Getting a liquid exception after bundle installing octopress-linkblog #6

Open adamstac opened 8 years ago

adamstac commented 8 years ago

Hey bro, I'm getting this error Liquid Exception: no implicit conversion of nil into String after adding this gem.

I added the gem, added the config details and tried to run Jekyll and get that error on the first post when Jekyll spins up.

Any thoughts on what this might be?

imathis commented 8 years ago

I'm not sure. I'll try to look into it tomorrow. Thanks for the heads up.

adamstac commented 8 years ago

Cool. I can help by troubleshooting more on my side too if need be. Let me know, and I'll be glad to help out.

iphoting commented 8 years ago

Would this error be related to the switch from Jekyll v2 to v3? I got the same error once I bumped Jekyll to v3:

 Incremental build: disabled. Enable with --incremental
      Generating... 
       Deprecation: Collection#empty? should be called on the #docs array directly.
                    Called by /usr/local/rvm/gems/ruby-2.2.2@octopress3/gems/octopress-ink-1.2.1/lib/octopress-ink/plugin/bootstrap.rb:163:in `posts?'.
       Deprecation: Collection#select should be called on the #docs array directly.
                    Called by /usr/local/rvm/gems/ruby-2.2.2@octopress3/gems/octopress-ink-1.2.1/lib/octopress-ink/plugin/bootstrap.rb:171:in `linkposts?'.
       Deprecation: Collection#empty? should be called on the #docs array directly.
                    Called by /usr/local/rvm/gems/ruby-2.2.2@octopress3/gems/octopress-ink-1.2.1/lib/octopress-ink/plugin/bootstrap.rb:163:in `posts?'.
       Deprecation: Collection#select should be called on the #docs array directly.
                    Called by /usr/local/rvm/gems/ruby-2.2.2@octopress3/gems/octopress-ink-1.2.1/lib/octopress-ink/plugin/bootstrap.rb:171:in `linkposts?'.
       Deprecation: Collection#empty? should be called on the #docs array directly.
                    Called by /usr/local/rvm/gems/ruby-2.2.2@octopress3/gems/octopress-ink-1.2.1/lib/octopress-ink/plugin/bootstrap.rb:163:in `posts?'.
       Deprecation: Collection#select should be called on the #docs array directly.
                    Called by /usr/local/rvm/gems/ruby-2.2.2@octopress3/gems/octopress-ink-1.2.1/lib/octopress-ink/plugin/bootstrap.rb:171:in `linkposts?'.
       Deprecation: Collection#select should be called on the #docs array directly.
                    Called by /usr/local/rvm/gems/ruby-2.2.2@octopress3/gems/octopress-linkblog-2.0.2/lib/octopress-linkblog.rb:18:in `merge_payload'.
       Deprecation: Collection#reject should be called on the #docs array directly.
                    Called by /usr/local/rvm/gems/ruby-2.2.2@octopress3/gems/octopress-linkblog-2.0.2/lib/octopress-linkblog.rb:19:in `merge_payload'.
       Deprecation: Collection#select should be called on the #docs array directly.
                    Called by /usr/local/rvm/gems/ruby-2.2.2@octopress3/gems/octopress-linkblog-2.0.2/lib/octopress-linkblog.rb:18:in `merge_payload'.
       Deprecation: Collection#reject should be called on the #docs array directly.
                    Called by /usr/local/rvm/gems/ruby-2.2.2@octopress3/gems/octopress-linkblog-2.0.2/lib/octopress-linkblog.rb:19:in `merge_payload'.
  Liquid Exception: no implicit conversion of nil into String in _posts/2007-09-07-Going-On.markdown
jekyll 3.0.1 | Error:  no implicit conversion of nil into String

Hope this helps!

chrisfinazzo commented 8 years ago

Yeah, just ran into this. Tracing the output gives the following information:

screen shot 2015-12-17 at 12 10 44 pm

See also: Jekyll #4199 for the fix related to the deprecation warning.

mattrubin commented 8 years ago

I believe this is the issue fixed by https://github.com/octopress/hooks/pull/14.