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
Can't convert Hash into String. in feed.xml #178
Comments
@rgaiacs do you have a |
This is my "full" configuration. The other configuration are in |
Same problem
|
Here is what worked for me, I had null values in the front matter on a post So I just removed the blank values like so: layout: post By removing these, it worked. I suspect it is just the null for "image" that caused the issue. Hope that helps. |
I'm having trouble recreating this. If anyone can push up a failing test, it'd be helpful to track down. I suspect we're passing a hash to the |
Running into the same issue |
@kmassada Can you provide a link to the source of your site? |
@pathawks https://github.com/kmassada/kmassada.github.io/tree/jekyll-3.5, I created a new jekyll site, imported _posts, assets, _drafts and data from an old site. I verified all posts even the ones in the drafts, no null or empty values left. my readme.md file has a quick way of running it. If you want to give it a stab. |
@pathawks I resolved my issue, I was using variables that did not exist. ie
|
@kmassada Could you provide any more detail, so that we can close this issue? Where were you using variables that didn't exist? What did you to to resolve the issue? |
my posts are configured as such: _posts/year/ or _posts/page/, so I removed all the years, first then started adding posts again year at a time, every time trying to serve. Until it failed. Then I edited the files trying what I thought was syntactically wrong, I finally started removing and adding variables one at a time until it refuses to compile. Here's an example of custom variables I was using that didn't exist. However I don't know if this is the same issue as the OP @rgaiacs. error isn't helpful, absolute_url had nothing to do with @kenmcguire's empty values and my invalid variables |
Is the issue broken YAML front-matter, and it just happens that If you remove |
I am having the exact same issue. You're welcome to pull down the code to my site and see the problem, if it helps diagnose the issue: https://github.com/Cyberlane/Cyber-Lane-Jekyll The full trace log
|
Nice @pathawks thanks for crosslinking. Via jekyll/jekyll#6280:
Workaround:
|
in my case the following code does not work but the next following code(only image is added )
the following code works
let me know how to put teaser image plz,... actually, the first code worked until today's morning but it doesn't now. is there any changes in github page server or something? |
I worked around it by adding a from pathlib import Path
import re
pat = r"image:\s*\n(\s+)teaser:\s*(.*)"
sub = r"\g<0>\n\1path: /images/\2"
p = Path("_posts/articles")
for file in p.iterdir():
with file.open() as f:
txt = f.read()
print(re.search(pat, txt).group(1))
newtxt = re.sub(pat, sub, txt)
with file.open('w') as f:
f.write(newtxt) |
I'm really sorry for bothering you, but can you explain a little easier?
I do not understand what you mean by the words "Add a path to the image hash".
The Python code you sent me does not seem to work on my Mac.
Is there a way to manually add a path key to the image instead of python code? I think I can understand a little in that way
And I'll attach a Python error message.
Heerak Lim
rocky92.lim@gmail.com
… On 10 Aug 2017, at 8:26 PM, Thomas Kluyver ***@***.***> wrote:
I worked around it by adding a path: key under image: in each post. Here's the code I used (Python) - it's very rough, but it might help people with the same issue:
from pathlib import Path
import re
pat = r"image:\s*\n(\s+)teaser:\s*(.*)"
sub = r"\g<0>\n\1path: /images/\2"
p = Path("_posts/articles")
for file in p.iterdir():
with file.open() as f:
txt = f.read()
print(re.search(pat, txt).group(1))
newtxt = re.sub(pat, sub, txt)
with file.open('w') as f:
f.write(newtxt)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#178 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AYo72yiso9Mpa1LICxT-8pfeKYd5JXwvks5sWujYgaJpZM4ONmaW>.
|
It's definitely possible to do it manually, the Python code is just to do it for a load of files quickly. In each post's header, we had something like this: image:
teaser: poc.png I needed to change it to look like this: image:
teaser: poc.png
path: /images/poc.png |
The details of the paths and things probably depend on your blog set up. |
Heerak Lim
rocky92.lim@gmail.com
omg it’s magic!!!
now i can make my own python code adding path of image
thanks a lot and I was really happy to talk and get great help!!
if you plan to visit to korea, send me an email plz. I will treat you some good meal or guide or something.
good day and cheers!!
… On 11 Aug 2017, at 12:49 AM, Thomas Kluyver ***@***.***> wrote:
The details of the paths and things probably depend on your blog set up.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#178 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AYo720T9LGpdVxrSkhoAoLKHmAnP4eSfks5sWyafgaJpZM4ONmaW>.
|
@takluyver Awesome...this work for me, I've been looking for a solution for couple of hours |
I'm still getting this issue. pages build error.
|
This issue has been automatically marked as stale because it has not been commented on for at least two months. The resources of the Jekyll team are limited, and so we are asking for your help. If this is a bug and you can still reproduce this error on the If this is a feature request, please consider whether it can be accomplished in another way. If it cannot, please elaborate on why it is core to this project and why you feel more than 80% of users would find this beneficial. This issue will automatically be closed in two months if no further activity occurs. Thank you for all your contributions. |
You shall not see this type error with Jekyll v3.5.2 and above even if you don't provide a valid path for |
I'm getting the following error
Let me know if I need to provide more information.
The text was updated successfully, but these errors were encountered: