gjtorikian / jekyll-conrefifier

Allows you to use Liquid variables in various places in Jekyll
MIT License
14 stars 4 forks source link

Error: undefined method `read_collections' for class `Jekyll::Site' #11

Open wkhayrattee opened 7 years ago

wkhayrattee commented 7 years ago

Hi, I'm getting the below error when using Jekyll 3.4.3:

jekyll 3.4.3 | Error: undefined methodread_collections' for class Jekyll::Site'

How to solve this quickly as need your plugin's functionality.

parkr commented 7 years ago

We are now using classes to do the reading, so this should be replaced with CollectionReader.new(site).read in the code.

wkhayrattee commented 7 years ago

hey @parkr thanks a lot, that fixed that first error. Now I get the following error:

undefined method `merged_file_read_opts' for # Did you mean? merge_defaults

these occurs in the following files:

jekyll-3.4.3/lib/jekyll/convertible.rb
44:                                 Utils.merged_file_read_opts(site, opts))

jekyll-3.4.3/lib/jekyll/document.rb
409:      self.content = File.read(path, Utils.merged_file_read_opts(site, opts))

jekyll-3.4.3/lib/jekyll/utils.rb
296:    def merged_file_read_opts(site, opts)

jekyll-conrefifier-0.5.1/lib/jekyll-conrefifier.rb
43:          @content = File.read(path, merged_file_read_opts(opts))

Can you also guide me here? Sorry it's first time I'm getting my hands in Ruby coding. Being fun using Jekyll.

UPDATED:

OMG!! You Sir, @parkr , are the creator of Jekyllrb?? w00t!! Honored to know you :) Jekyll is really really awesome, I'm currently in the process of revamping my wordpress blog 7php.com, using Jekyll 100% and everything on GIT. So THANK YOU for making this incredible piece of software!

I'm actually from a PHP background & I do frequent interviews on my blog. I'll probably get in touch with you for an interview :)