Skip to content

Error: undefined method tainted? when using Ruby v3.2.0 #859

@nshki

Description

@nshki

Before submitting an issue, please be sure to

This issue affects

  • The site generated by GitHub Pages
  • Building sites locally

The GitHub Pages Gem is intended to help users replicate the GitHub Pages build environment locally. If your issue affects both the hosted version and the version previewed locally, you may be better suited reporting seeking support in other forums.

What did you do (e.g., steps to reproduce)

  1. Install Ruby v3.2.0 via rbenv with rbenv install 3.2.0.
  2. Set global Ruby version to v3.2.0 with rbenv global 3.2.0.
  3. bundle install in the Jekyll repo.
  4. Try starting a dev server with bundle exec jekyll serve.

What did you expect to happen?

The Jekyll project to run on localhost:4000.

What happened instead?

The following error was thrown in the terminal:

  Liquid Exception: undefined method `tainted?' for "2013-12-27T00:00:00-08:00":String in /_layouts/post.html                                                                          
jekyll 3.9.2 | Error:  undefined method `tainted?' for "2013-12-27T00:00:00-08:00":String                                                                                              
/Users/nshki/.rbenv/versions/3.2.0/lib/ruby/gems/3.2.0/gems/liquid-4.0.3/lib/liquid/variable.rb:124:in `taint_check': undefined method `tainted?' for "2013-12-27T00:00:00-08:00":String (NoMethodError)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions