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

“no implicit conversion of Integer into String” error with Jekyll posts that have numbered titles #6319

Closed
kerim opened this issue Aug 18, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@kerim
Copy link

commented Aug 18, 2017

  • I updated to the latest Jekyll (or) if on GitHub Pages to the latest github-pages

  • I am on (or have tested on) macOS 10+

  • I had an error on GitHub Pages, and I have reproduced it locally.
  • I was trying to build.

My Reproduction Steps

I have a Jekyll blog hosted on GitHub Pages that I recently updated to HTTPS. In doing so, I discovered that recent updates to Jekyll were causing my blog to no longer build properly. Running a local install I kept encountering the following error:

Liquid Exception: no implicit conversion of Integer into String in /_layouts/default.html

After some trial and error I was able to identify the following posts as causing the problem:

2003-09-21-100.md
2004-02-10-10000.md
2004-02-28-228.md
2004-09-10-1.md
2004-10-10-1969.md
2004-11-06-1896.md
2005-05-14-616.md

These are all old Wordpress posts that I imported into Jekyll, and as you can see, they all have numbers as titles. It didn't cause build problems on earlier versions of Jekyll however. While I could rename all of these old posts, it would be a bit of a pain since I would have to update any Disqus comments URLs, and any existing links on the web to those posts would be broken. Does anyone know if there is an easier way to fix this problem? Thanks!

@ashmaroli

This comment has been minimized.

Copy link
Member

commented Aug 18, 2017

Wonder why its raising a Liquid Exception if the bug is with Jekyll handling post titles..

@kerim

This comment has been minimized.

Copy link
Author

commented Aug 19, 2017

Problem and solution discussed in this Stack Overflow discussion.

@kerim kerim closed this Aug 19, 2017

yatil added a commit to w3c/wai-policies-prototype that referenced this issue Aug 27, 2017

IskanderNovena added a commit to IskanderNovena/Gravity that referenced this issue Apr 29, 2018

Fix a Liquid-error
Fix for error 'no implicit conversion of Integer into String'.
Also see: jekyll/jekyll#6319

hemangsk added a commit to hemangsk/Gravity that referenced this issue Jul 7, 2018

Fix a Liquid-error
Fix for error 'no implicit conversion of Integer into String'.
Also see: jekyll/jekyll#6319
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.