dhulihan / hooligan

A low-lit fully responsive theme for Jekyll-Bootstrap.
http://themes.jekyllbootstrap.com/preview/hooligan/
138 stars 43 forks source link

Liquid Exception: uninitialized constant #17

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi, I was working on my blog, and suddenly, this error came out (from nowhere, or almost). I don't know what to do to fix it :x

Configuration file: /home/edelwin/code/websites/blog/_config.yml
            Source: /home/edelwin/code/websites/blog
       Destination: /home/edelwin/code/websites/blog/_site
      Generating... 
  Liquid Exception: uninitialized constant Jekyll::Filters::Number in _includes/themes/hooligan/post.html, included in _layouts/post.html
jekyll 2.0.3 | Error:  uninitialized constant Jekyll::Filters::Number
dhulihan commented 10 years ago

Hmm, I'm unable to reproduce this error. I built a site using jekyll 2.0.3, and it worked without a problem:

$ jekyll --version
jekyll 2.0.3

$ jekyll build
Configuration file: /home/vagrant/software_projects/jekyll-bootsrap-sandbox/_config.yml
            Source: /home/vagrant/software_projects/jekyll-bootsrap-sandbox
       Destination: /home/vagrant/software_projects/jekyll-bootsrap-sandbox/_site
      Generating...
unchanged assets/themes/hooligan/_sass/style.scss
                    done.

The error you're getting is happening during the rendering of the (liquid) template. You could try looking through /home/edelwin/code/websites/blog/_includes/themes/hooligan/post.html for any mention of Number. Some file somewhere is calling Number, which isn't defined as anything.

ghost commented 10 years ago

Well, aparently when I create a new repo with the Jekyll Boostrap and the Hooligan theme, I'm not getting this error anymore. This is totally weird :')

dhulihan commented 10 years ago

Weird indeed. Isn't web development fun?