Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: superclass mismatch for class GoogleTagManager #7

Closed
tofuwarrior opened this issue Oct 14, 2019 · 3 comments
Closed

TypeError: superclass mismatch for class GoogleTagManager #7

tofuwarrior opened this issue Oct 14, 2019 · 3 comments

Comments

@tofuwarrior
Copy link

tofuwarrior commented Oct 14, 2019

Hi

I'm running jekyll 3.8.5 and ruby 2.5 on windows.#
I installed 1.0.2 version of the plugin.

after installing and adding into gemfile as per rubygems website when I run jekyll serve locally i get the following error.

Traceback (most recent call last):
        14: from C:/Ruby25-x64/bin/jekyll:23:in `<main>'
        13: from C:/Ruby25-x64/bin/jekyll:23:in `load'
        12: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/exe/jekyll:11:in `<top (required)>'
        11: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-3.8.5/lib/jekyll/plugin_manager.rb:51:in `require_from_bundler'
        10: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler.rb:114:in `require'
         9: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/runtime.rb:65:in `require'
         8: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/runtime.rb:65:in `each'
         7: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/runtime.rb:76:in `block in require'
         6: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/runtime.rb:76:in `each'
         5: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
         4: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/runtime.rb:81:in `require'
         3: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-google-tag-manager-1.0.2/lib/jekyll-google-tag-manager.rb:4:in `<top (required)>'
         2: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-google-tag-manager-1.0.2/lib/jekyll-google-tag-manager.rb:4:in `require'
         1: from C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-google-tag-manager-1.0.2/lib/jekyll-google-tag-manager/version.rb:5:in `<top (required)>'
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/jekyll-google-tag-manager-1.0.2/lib/jekyll-google-tag-manager/version.rb:6:in `<module:Jekyll>': superclass mismatch for class GoogleTagManager (TypeError)

I'm a real novice at ruby and jekyll, could you advise, is this an issue with the plugin or something to do with my setup?

Gemfile and config pasted below.

Many Thanks,

Paul

GEMFILE:

source "https://rubygems.org"

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
#     bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 3.8"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
  gem "jekyll-feed", "~> 0.6"
  gem "jekyll-paginate", "~> 1.1"
  gem 'jekyll-google-tag-manager', '~> 1.0', '>= 1.0.2'
end



# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0" if Gem.win_platform?

CONFIG:

# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.

# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: Jekyll Netlify Boilerplate
email: email@example.com
description: >- # this means to ignore newlines until "baseurl:"
  Write an awesome description for your new site here. You can edit this
  line in _config.yml.
baseurl: "" # the subpath of your site if applicable, e.g. /blog
url: "https://jekyll-netlify-boilerplate.netlify.com" # the base hostname & protocol for your site, e.g. https://example.com

# Plugins
#plugins: ["jekyll-paginate, jekyll-google-tag-manager, jekyll-feed"]
plugins: ["jekyll-paginate"]

# Permalink format (/blog/ is ignored for pages)
permalink: /blog/:title

# Enable section IDs in frontmatter, useful for identifying current page
# (used as a hook for styling etc)
section: true

# set to 'true' to enable Netlify CMS (/admin) in production builds
netlifycms: true

# set to 'true' to enable Google Analytics tracking code in production builds
analytics: false

google:
  tag_manager:
    container_id: GTM-XXXXXX



# Compress HTML (in liquid via layouts/compress.html)
compress_html:
  clippings: all

# set some common post defaults
defaults:
  -
    scope:
      path: "" # an empty string here means all files in the project
      type: "posts" # previously `post` in Jekyll 2.2.
    values:
      layout: "post" # set the correct default template for a post
      section: "post" # set the root section name

# Build settings
markdown: kramdown
style: compressed
sass:
  sass_dir: assets/sass

# Kramdown options
kramdown:
  # Prevent IDs from being added to h1-h6 tags
  auto_ids: false

# Include in processing (e.g. Netlify directives)
# Uncomment before use

#include:
#  - _redirects
#  - _headers

# Exclude from processing.
# The following items will not be processed.
exclude:
  - README.md
  - LICENSE.txt
  - netlify.toml
  - feed.xml
  - Gemfile
  - Gemfile.lock
  - node_modules
  - vendor/bundle/
  - vendor/cache/
  - vendor/gems/
  - vendor/ruby/



collections:
    posts:
        output: true
    pages:
        output: true
    navtiles:
        output: false
    bannerslides:
        output: false
    posttiles:
        output: false
    features:
        output: false
    customtags:
        output: false
    testimonials:
        output: false
@t-richards
Copy link
Owner

Hi @tofuwarrior , This is definitely a bug in version 1.0.2; I don't believe anything specific about your setup caused this issue.

@tofuwarrior
Copy link
Author

tofuwarrior commented Oct 14, 2019 via email

@t-richards t-richards changed the title Issue with jekyll serve after installation TypeError: superclass mismatch for class GoogleTagManager Oct 15, 2019
@t-richards
Copy link
Owner

t-richards commented Oct 15, 2019

@tofuwarrior @dseeker This problem is fixed in v1.0.3. Please update your project's version of jekyll-google-tag-manager to resolve your issue!

$ bundle update jekyll-google-tag-manager

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants