ppoffice / hexo-theme-hueman

A redesign of Alx's wordpress theme Hueman, ported to Hexo.
http://ppoffice.github.io/hexo-theme-hueman/
GNU General Public License v2.0
1.17k stars 335 forks source link

install failed Cannot read property 'thumbnail' of undefined #266

Closed gitAda16 closed 4 years ago

gitAda16 commented 4 years ago

After i ran command "hexo g" , i got the error message like these: C:\mysource\hexoblog\myblog\themes\hueman\layout\common\summary.ejs:3 1|

2|

3| <% if (theme.customize.thumbnail === true) { %> 4| <%- partial('common/thumbnail', { counter: true }) %> 5| <% } %> 6|

Cannot read property 'thumbnail' of undefined at eval (eval at compile (C:\mysource\hexoblog\myblog\node_modules\ejs\lib\ejs.js:633:12), :13:28) at returnedFn (C:\mysource\hexoblog\myblog\node_modules\ejs\lib\ejs.js:668:17) at Theme._View.View._compiledSync (C:\mysource\hexoblog\myblog\node_modules\hexo\lib\theme\view.js:119:22) at Theme._View.View.View.renderSync (C:\mysource\hexoblog\myblog\node_modules\hexo\lib\theme\view.js:48:23) at Object.partial (C:\mysource\hexoblog\myblog\node_modules\hexo\lib\plugins\helper\partial.js:34:15) at eval (eval at compile (C:\mysource\hexoblog\myblog\node_modules\ejs\lib\ejs.js:633:12), :47:17) at _Query.forEach (C:\mysource\hexoblog\myblog\node_modules\warehouse\lib\query.js:36:7) at eval (eval at compile (C:\mysource\hexoblog\myblog\node_modules\ejs\lib\ejs.js:633:12), :12:19) at returnedFn (C:\mysource\hexoblog\myblog\node_modules\ejs\lib\ejs.js:668:17) at Theme._View.View._compiledSync (C:\mysource\hexoblog\myblog\node_modules\hexo\lib\theme\view.js:119:22) at Theme._View.View.View.renderSync (C:\mysource\hexoblog\myblog\node_modules\hexo\lib\theme\view.js:48:23) at Object.partial (C:\mysource\hexoblog\myblog\node_modules\hexo\lib\plugins\helper\partial.js:34:15) at eval (eval at compile (C:\mysource\hexoblog\myblog\node_modules\ejs\lib\ejs.js:633:12), :9:17) at returnedFn (C:\mysource\hexoblog\myblog\node_modules\ejs\lib\ejs.js:668:17) at Theme._View.View._compiled (C:\mysource\hexoblog\myblog\node_modules\hexo\lib\theme\view.js:123:48) at Theme._View.View.View.render (C:\mysource\hexoblog\myblog\node_modules\hexo\lib\theme\view.js:29:15) at C:\mysource\hexoblog\myblog\node_modules\hexo\lib\hexo\index.js:365:21 at tryCatcher (C:\mysource\hexoblog\myblog\node_modules\bluebird\js\release\util.js:16:23) at C:\mysource\hexoblog\myblog\node_modules\bluebird\js\release\method.js:15:34 at RouteStream._read (C:\mysource\hexoblog\myblog\node_modules\hexo\lib\hexo\router.js:123:3) at RouteStream.Readable.read (_streamreadable.js:490:10) at resume (_stream_readable.js:975:12)

What's wrong with it?

ppoffice commented 4 years ago

@gitAda16 Did you copy _config.yml.example to _config.yml?

gitAda16 commented 4 years ago

@ppoffice Thank you! I made a mistake. I copied _config.yml.example to _config.xml.