Closed nfrankel closed 5 years ago
Having the same issue here.
Downgrading jekyll-archives to version 2.1.1 fixes this problem. Maybe it is not an issue with the algolia plugin itself.
Same issue here. It looks like the error comes from https://github.com/algolia/jekyll-algolia/blob/develop/lib/jekyll/algolia/configurator.rb#L258. If "nil" is replaced by "{}", this error disappears. Unfortunately, in my case, another takes its place.
If anyone here is interested in submitting a patch, IMO, the best-practice solution is to delete
the key rather than resetting..
--- a/lib/jekyll/algolia/configurator.rb
+++ b/lib/jekyll/algolia/configurator.rb
@@ -256,10 +256,10 @@ module Jekyll
def self.disable_other_plugins(config)
# Disable archive pages from jekyll-archives
- config['jekyll-archives'] = nil
+ config.delete('jekyll-archives')
# Disable pagination from jekyll-paginate
- config['paginate'] = nil
+ config.delete('paginate')
# Disable pagination for jekyll-paginate-v2
config['pagination'] = {} unless config['pagination'].is_a?(Hash)
@@ -269,8 +269,8 @@ module Jekyll
config['autopages']['enabled'] = false
# Disable tags from jekyll-tagging
- config['tag_page_dir'] = nil
- config['tag_page_layout'] = nil
+ config.delete('tag_page_dir')
+ config.delete('tag_page_layout')
config
end
Any news on this?
I can't index my site anymore either… 😥
@pixelastic any chance you want to help?
I must say @pixelastic has always been really helpful! 😅
Is there anything I can do (more detailed execution traces maybe) to help dig into this issue?
Guys, you can always point your Gemfile to a working branch. For example, to point to the PR that hopefully resolves this issue:
gem 'jekyll-algolia', github: 'algolia/jekyll-algolia', ref: 'refs/pull/126/head'
@ashmaroli OMG, it works indeed, sorry I didn't check before! 👍
I want to report a bug:
I've recently updated my Jekyll site Gemfile with the latest versions, and I've stumbled upon an issue with the plugin.
What is the current behavior?
bundle exec jekyll algolia --trace
What is your expected behavior?
Algolia runs fine, as before.
Git repository to reproduce the issue:
git@gitlab.com:nfrankel/nfrankel.gitlab.io.git
You should already have access to it
Ruby version used:
2.5.1
Jekyll version used:
jekyll 3.8.5