-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
Problem
Running rake generate I get the error:
## Generating Site with Jekyll
write source/stylesheets/screen.css
Configuration file: /home/userX/projectY/octopress/_config.yml
Source: source
Destination: public
Generating...
jekyll 2.5.3 | Error: undefined method `[]' for true:TrueClass
A more detailed log is:
.../octopress(git:source!?)$ jekyll build --trace
Configuration file: /home/userX/projectY/octopress/_config.yml
Source: source
Destination: public
Generating...
/home/userX/.rvm/gems/ruby-2.2.1/gems/octopress-paginate-1.1.2/lib/octopress-paginate.rb:132:in `collection': undefined method `[]' for true:TrueClass (NoMethodError)
from /home/userX/.rvm/gems/ruby-2.2.1/gems/octopress-paginate-1.1.2/lib/octopress-paginate.rb:155:in `page_payload'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/octopress-paginate-1.1.2/lib/octopress-paginate/hooks.rb:16:in `merge_payload'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:380:in `block in merge_payload'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:379:in `each'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:379:in `merge_payload'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:350:in `do_layout'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/octopress-tag-helpers-1.0.8/lib/octopress-tag-helpers/hooks.rb:9:in `do_layout'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/page.rb:122:in `render'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/site.rb:298:in `block in render'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/site.rb:297:in `each'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/site.rb:297:in `render'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:197:in `render'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/site.rb:51:in `process'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/command.rb:28:in `process_site'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:56:in `build'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:34:in `process'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
from /home/userX/.rvm/gems/ruby-2.2.1/gems/jekyll-2.5.3/bin/jekyll:20:in `<top (required)>'
from /home/userX/.rvm/gems/ruby-2.2.1/bin/jekyll:23:in `load'
from /home/userX/.rvm/gems/ruby-2.2.1/bin/jekyll:23:in `<main>'
from /home/userX/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
from /home/userX/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Cause
The problem arises when in source/_post the number of posts exceeds 10.
In order to determine if there were something wrong in a post I've tried combinations of different posts, but there's no problem if the number of posts is less then or equals to 10; as soon as I add the 11st post, no matter which one, the error appears.
My installation details
My rubies installations:
.../octopress(git:source!?)$ rvm list
rvm rubies
=* ruby-2.2.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
My current ruby installations is 2.2.1p85:
.../octopress(git:source!?)$ ruby --version
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
My gems are:
.../octopress(git:source!?)$ bundle list
Gems included by the bundle:
* RedCloth (4.2.9)
* autoprefixer-rails (2.2.0.20140804)
* blankslate (2.1.2.4)
* bundler (1.10.6)
* celluloid (0.16.0)
* chunky_png (1.3.4)
* classifier-reborn (2.0.3)
* coffee-script (2.4.1)
* coffee-script-source (1.9.1.1)
* colorator (0.1)
* compass (1.0.3)
* compass-core (1.0.3)
* compass-import-once (1.0.5)
* execjs (2.5.2)
* fast-stemmer (1.0.2)
* ffi (1.9.10)
* haml (4.0.6)
* hitimes (1.2.2)
* jekyll (2.5.3)
* jekyll-coffeescript (1.0.1)
* jekyll-gist (1.2.1)
* jekyll-paginate (1.1.0)
* jekyll-sass-converter (1.3.0)
* jekyll-sitemap (0.8.1)
* jekyll-watch (1.2.1)
* json (1.8.3)
* kramdown (1.8.0)
* liquid (2.6.3)
* listen (2.10.1)
* mercenary (0.3.5)
* multi_json (1.11.2)
* octopress (3.0.11)
* octopress-autoprefixer (1.0.1)
* octopress-date-format (2.0.2)
* octopress-deploy (1.3.0)
* octopress-escape-code (2.0.6)
* octopress-feeds (2.0.4)
* octopress-filters (1.3.3)
* octopress-hooks (2.6.1)
* octopress-include-tag (1.1.3)
* octopress-ink (1.2.0)
* octopress-multilingual (1.2.0)
* octopress-paginate (1.1.2)
* octopress-return-tag (1.0.1)
* octopress-tag-helpers (1.0.8)
* parslet (1.5.0)
* posix-spawn (0.3.11)
* pygments.rb (0.6.3)
* rack (1.6.4)
* rack-protection (1.5.3)
* rake (10.4.2)
* rb-fsevent (0.9.5)
* rb-inotify (0.9.5)
* rdiscount (2.1.8)
* redcarpet (3.3.2)
* rubypants-unicode (0.2.5)
* safe_yaml (1.0.4)
* sass (3.4.16)
* sass-globbing (1.0.0)
* sinatra (1.4.6)
* stringex (1.4.0)
* tilt (2.0.1)
* timers (4.0.1)
* titlecase (0.1.1)
* toml (0.1.2)
* uglifier (2.7.1)
* yajl-ruby (1.2.1)
My sources (with less then 11 posts) are on source branch, you can get them by running:
$ git clone https://github.com/taringamberini/taringamberini.github.io.git
$ cd taringamberini.github.io/
$ git checkout source
Thanks,
Tarin
Metadata
Metadata
Assignees
Labels
No labels