Giter Club home page Giter Club logo

Comments (8)

bdombro avatar bdombro commented on August 28, 2024 1

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.

pixelastic avatar pixelastic commented on August 28, 2024 1

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.

redox avatar redox commented on August 28, 2024

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.

redox avatar redox commented on August 28, 2024

@gavenheim could you provide us the backtrace?

from algoliasearch-jekyll.

gaven avatar gaven commented on August 28, 2024

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.

redox avatar redox commented on August 28, 2024

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.

bdombro avatar bdombro commented on August 28, 2024

My pleasure!

from algoliasearch-jekyll.

pixelastic avatar pixelastic commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.