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

更新至hexo 2.8.0之后报错 #722

Closed
Xuanwo opened this issue Jul 13, 2014 · 7 comments
Closed

更新至hexo 2.8.0之后报错 #722

Xuanwo opened this issue Jul 13, 2014 · 7 comments
Labels
question Needs help in usage

Comments

@Xuanwo
Copy link
Contributor

Xuanwo commented Jul 13, 2014

报错信息如下:

[error] { name: 'HexoError',
  reason: 'incomplete explicit mapping pair; a key node is missed',
  mark:
   { name: null,
     buffer: 'categories: Categories\nsearch: Search\ntags: Tags\ntagcloud: Tag Cloud\ntweets: Tweets\nprev: Prev\nnext:
 Next\ncomment: Comments\narchive_a: Archives\narchive_b: Archives: %s\npage: Page %d\nrecent_posts: Recent Posts\ndescr
iption: Description\nread_more: Read More\n\u0000',
     position: 163,
     line: 9,
     column: 19 },
  message: 'Process failed: languages/default.yml',
  domain:
   { domain: null,
     _events: { error: [Function] },
     _maxListeners: 10,
     members: [ [Object] ] },
  domainThrown: true,
  stack: undefined }
@tommy351
Copy link
Member

YAML parser was changed in Hexo 2.8. You have to wrap strings like this with quotation marks.

archive_b: Archives: %s => archive_b: "Archives: %s"

@Xuanwo
Copy link
Contributor Author

Xuanwo commented Jul 14, 2014

问题已经修复。
顺便,新的输出信息非常友好,点赞。

问题解决方案:http://xuanwo.org/2014/08/14/hexo-usual-problem/

@Xuanwo Xuanwo closed this as completed Jul 14, 2014
@Xuanwo
Copy link
Contributor Author

Xuanwo commented Jul 14, 2014

建议在官网上提醒各位theme制作者修改相关的内容,要不然接下来可能会面对大量重复的issue= =

@adanac
Copy link

adanac commented Jul 18, 2014

got it ,thank you.

@dukewan
Copy link

dukewan commented Jul 18, 2014

Edit all of the yml file in the language folders of thirdparty theme , add quotation marks when there is a space between the values.
qq20140718-2 2x

@fireking91
Copy link

Thank u

@imZack
Copy link

imZack commented Aug 3, 2014

This saved my day... 👍

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

No branches or pull requests

6 participants