Comments (8)
I had the same error, even when forcing Noko 1.6.x and AlgS 0.8.0. I found that this snippet is causing the error:
---
title: Services
heading: "Reliable and Fast Web Services"
subtitle: We build websites, campaigns and sales workflows for high achievers.
description: We build websites, campaigns and sales workflows for high achievers.
image: /images/benevolent_tech_dc_seo.png
---
<style>
/* Hide the newsletter signup */
.diagonal-newsletter {
display: none;
}
</style>
Log:
[13:52:09] Using gulpfile ~/Work/Clients/Benevolent_Tech/Projects/Website V4/bt-jekyll-website/gulpfile.js
[13:52:09] Starting 'css'...
[13:52:09] Starting 'js-libs'...
[13:52:09] Starting 'js-custom'...
[13:52:09] Finished 'css' after 32 ms
[13:52:10] Finished 'js-custom' after 400 ms
[13:52:10] Finished 'js-libs' after 406 ms
[13:52:10] Starting 'js-production'...
[13:52:10] Finished 'js-production' after 100 ms
[13:52:10] Starting 'jekyll-build'...
Configuration file: /Users/briandombrowski/Work/Clients/Benevolent_Tech/Projects/Website V4/bt-jekyll-website/_config.yml
Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
Source: /Users/briandombrowski/Work/Clients/Benevolent_Tech/Projects/Website V4/bt-jekyll-website
Destination: /Users/briandombrowski/Work/Clients/Benevolent_Tech/Projects/Website V4/bt-jekyll-website/_site
Incremental build: disabled. Enable with --incremental
Generating...
AutoPages: Disabled/Not configured in site.config.
Pagination: Is enabled, but I couldn't find any pagination page. Skipping pagination. Pages must have 'pagination: enabled: true' in their front-matter for pagination to work.
Pagination: Complete, processed pagination page(s)
/Users/briandombrowski/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/nokogiri-1.6.7.2/lib/nokogiri/html/document.rb:164: warning: constant ::Fixnum is deprecated
/Users/briandombrowski/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/nokogiri-1.6.7.2/lib/nokogiri/html/document.rb:164: warning: constant ::Fixnum is deprecated
/Users/briandombrowski/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/nokogiri-1.6.7.2/lib/nokogiri/xml/node.rb:389: warning: constant ::Fixnum is deprecated
done in 1.32 seconds.
Auto-regeneration: disabled. Use --watch to enable.
[13:52:12] Finished 'jekyll-build' after 2.07 s
[13:52:12] Starting 'build-all'...
[13:52:12] Finished 'build-all' after 72 μs
[13:52:12] Starting 'algolia-push'...
Configuration file: /Users/briandombrowski/Work/Clients/Benevolent_Tech/Projects/Website V4/bt-jekyll-website/_config.yml
Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
AutoPages: Disabled/Not configured in site.config.
Pagination: Is enabled, but I couldn't find any pagination page. Skipping pagination. Pages must have 'pagination: enabled: true' in their front-matter for pagination to work.
Pagination: Complete, processed pagination page(s)
/Users/briandombrowski/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/nokogiri-1.6.7.2/lib/nokogiri/html/document.rb:164: warning: constant ::Fixnum is deprecated
/Users/briandombrowski/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/nokogiri-1.6.7.2/lib/nokogiri/html/document.rb:164: warning: constant ::Fixnum is deprecated
/Users/briandombrowski/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/nokogiri-1.6.7.2/lib/nokogiri/xml/node.rb:389: warning: constant ::Fixnum is deprecated
/Users/briandombrowski/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/nokogiri-1.6.7.2/lib/nokogiri/html/document.rb:164: warning: constant ::Fixnum is deprecated
jekyll 3.5.2 | Error: undefined method `parent' for #<Nokogiri::HTML::Document:0x007ffbade1c250>
Did you mean? parent=
[13:52:14] 'algolia-push' errored after 1.81 s
[13:52:14] Error: 1
at formatError (/usr/local/lib/node_modules/gulp/bin/gulp.js:169:10)
at Gulp.<anonymous> (/usr/local/lib/node_modules/gulp/bin/gulp.js:195:15)
at emitOne (events.js:115:13)
at Gulp.emit (events.js:210:7)
at Gulp.Orchestrator._emitTaskDone (/Users/briandombrowski/Work/Clients/Benevolent_Tech/Projects/Website V4/bt-jekyll-website/node_modules/orchestrator/index.js:264:8)
at /Users/briandombrowski/Work/Clients/Benevolent_Tech/Projects/Website V4/bt-jekyll-website/node_modules/orchestrator/index.js:275:23
at finish (/Users/briandombrowski/Work/Clients/Benevolent_Tech/Projects/Website V4/bt-jekyll-website/node_modules/orchestrator/lib/runTask.js:21:8)
at ChildProcess.cb (/Users/briandombrowski/Work/Clients/Benevolent_Tech/Projects/Website V4/bt-jekyll-website/node_modules/orchestrator/lib/runTask.js:29:3)
at emitTwo (events.js:125:13)
at ChildProcess.emit (events.js:213:7)
from algoliasearch-jekyll.
I think this error is coming from the fact that we are trying to extract all <p>
(by default) from the generated page. In the example you're providing, there are no <p>
to find, so the actual match is failing.
I think this is fixed in the v1
branch, but I'm keeping this bug open until I can confirm it. Thanks a lot for the reproducible test case!
from algoliasearch-jekyll.
Arg, this might be related to the recent upgrade we did. Could you try downgrading to Nokogiri 1.6.x
and algoliasearch-jekyll 0.8.0
?
from algoliasearch-jekyll.
@gavenheim could you provide us the backtrace?
from algoliasearch-jekyll.
Hey, thanks for your response. I seemed to have figured it out. It looks like some inline styles were causing the error. Thanks for your time.
from algoliasearch-jekyll.
Hey, thanks for your response. I seemed to have figured it out. It looks like some inline styles were causing the error. Thanks for your time.
Would love to still handle that on our side; do you still have a backtrace so we can rescue
it from here?
from algoliasearch-jekyll.
My pleasure!
from algoliasearch-jekyll.
I've just soft released jekyll-algolia as a successor to this plugin. I've tested your markup with this new version and everything seems to be working smoothly.
I'm closing this issue for now, but let me know if you still have errors by posting on the other repo issue tracker: https://github.com/algolia/jekyll-algolia/issues
Thanks for the report in the first place!
from algoliasearch-jekyll.
Related Issues (20)
- Enhancement: Using the new facetingAfterDistinct=true for correct facet count HOT 3
- Timeout at indexing time HOT 6
- Content not rendered with Liquid before indexing? HOT 6
- Error: API key cannot write to {index_name}_tmp index HOT 2
- Ruby 2.4 compatibility HOT 2
- Status of V1 HOT 7
- Typo in README
- algolia selector returning undefined HOT 6
- Plugin not pushing all pages to index HOT 3
- Catch errors when zero element indexed HOT 1
- Unable to exclude files from indexing based on directories HOT 2
- Update json dependency to v2.0
- Update nokogiri dependency to version 1.7.2 or higher HOT 3
- Better explain the difference between record_css_selector and attributesToIndex settings HOT 2
- Algolia push error: "no implicit conversion of nil into Hash" HOT 5
- Cannot install algoliasearch-jekyll HOT 6
- Asciidoc files don't get indexed HOT 1
- Synonyms deleted on index HOT 6
- Using "removeWordsIfNOResults" setting parameter does not seem to work HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from algoliasearch-jekyll.