Cannot read property 'ClientID' of undefined
Fengtianhe opened this issue · 0 comments
Fengtianhe commented
Unhandled rejection TypeError: /Users/cainiaoshicai/Code/Hexo/themes/jsimple/layout/layout.ejs:4
2| <html class="no-js" lang="zh-CN">
3| <head>
>> 4| <%- partial('_partial/head') %>
5| <%- partial('_widget/ads/adSense-auto', null, {cache: !config.relative_link}) %>
6| <%- partial('_widget/analytics', null, {cache: !config.relative_link}) %>
7| </head>
/Users/cainiaoshicai/Code/Hexo/themes/jsimple/layout/_partial/head.ejs:16
14| <link rel="prefetch" href="//<%= theme.comments.disqus_shortname %>.disqus.com">
15| <% } %>
>> 16| <% if (theme.comments.gitment.ClientID && theme.comments.gitment.ClientSecret) { %>
17| <link rel="dns-prefetch" href="//imsun.github.io">
18| <link rel="prefetch" href="//imsun.github.io">
19| <% } %>
Cannot read property 'ClientID' of undefined
at eval (eval at compile (/Users/cainiaoshicai/Code/Hexo/node_modules/ejs/lib/ejs.js:549:12), <anonymous>:32:35)
at returnedFn (/Users/cainiaoshicai/Code/Hexo/node_modules/ejs/lib/ejs.js:580:17)
at Theme._View.View._compiledSync (/Users/cainiaoshicai/Code/Hexo/node_modules/hexo/lib/theme/view.js:122:20)
at Theme._View.View.View.renderSync (/Users/cainiaoshicai/Code/Hexo/node_modules/hexo/lib/theme/view.js:50:21)
at Object.partial (/Users/cainiaoshicai/Code/Hexo/node_modules/hexo/lib/plugins/helper/partial.js:42:17)
at Object.wrapper [as partial] (/Users/cainiaoshicai/Code/Hexo/node_modules/lodash/lodash.js:4941:19)
at eval (eval at compile (/Users/cainiaoshicai/Code/Hexo/node_modules/ejs/lib/ejs.js:549:12), <anonymous>:11:17)
at returnedFn (/Users/cainiaoshicai/Code/Hexo/node_modules/ejs/lib/ejs.js:580:17)
at Theme._View.View._compiled (/Users/cainiaoshicai/Code/Hexo/node_modules/hexo/lib/theme/view.js:127:30)
at Theme._View.View.View.render (/Users/cainiaoshicai/Code/Hexo/node_modules/hexo/lib/theme/view.js:29:15)
at /Users/cainiaoshicai/Code/Hexo/node_modules/hexo/lib/theme/view.js:40:23
at tryCatcher (/Users/cainiaoshicai/Code/Hexo/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/cainiaoshicai/Code/Hexo/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/cainiaoshicai/Code/Hexo/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/cainiaoshicai/Code/Hexo/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/cainiaoshicai/Code/Hexo/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/Users/cainiaoshicai/Code/Hexo/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/Users/cainiaoshicai/Code/Hexo/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/Users/cainiaoshicai/Code/Hexo/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:794:20)
at tryOnImmediate (timers.js:752:5)
at processImmediate [as _immediateCallback] (timers.js:729:5)