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-leancloud-counter-security – Errors [solved] #163

Closed
5 of 11 tasks
aixiu opened this issue Mar 7, 2018 · 5 comments
Closed
5 of 11 tasks

hexo-leancloud-counter-security – Errors [solved] #163

aixiu opened this issue Mar 7, 2018 · 5 comments
Labels

Comments

@aixiu
Copy link

aixiu commented Mar 7, 2018

I agree and want to create new issue


Expected behavior

Actual behavior

Steps to reproduce the behavior

  1. N/A
  2. N/A
  3. N/A
  • Link to demo site with this issue: N/A
  • Link(s) to source code or any usefull link(s): N/A

Node.js and NPM Information

node -v
v8.9.4

npm -v
5.7.1

Package dependencies Information

 cat package.json
{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.6.0"
  },
  "dependencies": {
    "hexo": "^3.2.0",
    "hexo-generator-archive": "^0.1.4",
    "hexo-generator-baidu-sitemap": "^0.1.2",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-feed": "^1.2.2",
    "hexo-generator-index": "^0.2.0",
    "hexo-generator-searchdb": "^1.0.8",
    "hexo-generator-sitemap": "^1.2.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-leancloud-counter-security": "^1.2.0",
    "hexo-neat": "^1.0.4",
    "hexo-related-popular-posts": "^3.0.1",
    "hexo-renderer-ejs": "^0.3.0",
    "hexo-renderer-marked": "^0.3.0",
    "hexo-renderer-stylus": "^0.3.1",
    "hexo-server": "^0.2.0",
    "hexo-symbols-count-time": "^0.3.2"
  }
}


Hexo Information

Hexo version

hexo -v
hexo: 3.6.0
hexo-cli: 1.1.0
os: Windows_NT 6.1.7601 win32 x64
http_parser: 2.7.0
node: 8.9.4
v8: 6.1.534.50
uv: 1.15.0
zlib: 1.2.11
ares: 1.10.1-DEV
modules: 57
nghttp2: 1.25.0
openssl: 1.0.2n
icu: 59.1
unicode: 9.0
cldr: 31.0.1
tz: 2017b

Hexo Configuration

# Show number of visitors to each article.
# You can visit https://leancloud.cn get AppID and AppKey.
leancloud_visitors:
  enable: true
  app_id: ************DX9VUB-gzGzoHsz
  app_key: YzW4************AdcGdYueo
  # Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security
  security: true
  betterPerformance: true

NexT Information

NexT Version:

  • Latest Master branch
  • Latest Release version
  • Old version

NexT Scheme:

  • All schemes
  • Muse
  • Mist
  • Pisces
  • Gemini

NexT Configuration:

Other Information

TypeError: Cannot read property 'enable_sync' of undefined
    at Hexo.generate_post_list (E:\myblog-hexo\node_modules\hexo-leancloud-count                                                                                                                                                                                               er-security\index.js:10:43)
    at Hexo.tryCatcher (E:\myblog-hexo\node_modules\bluebird\js\release\util.js:                                                                                                                                                                                               16:23)
    at Hexo.<anonymous> (E:\myblog-hexo\node_modules\bluebird\js\release\method.                                                                                                                                                                                               js:15:34)
    at Promise.map.key (E:\myblog-hexo\node_modules\hexo\lib\hexo\index.js:336:2                                                                                                                                                                                               6)
    at tryCatcher (E:\myblog-hexo\node_modules\bluebird\js\release\util.js:16:23                                                                                                                                                                                               )
    at MappingPromiseArray._promiseFulfilled (E:\myblog-hexo\node_modules\bluebi                                                                                                                                                                                               rd\js\release\map.js:61:38)
    at MappingPromiseArray.PromiseArray._iterate (E:\myblog-hexo\node_modules\bl                                                                                                                                                                                               uebird\js\release\promise_array.js:114:31)
    at MappingPromiseArray.init (E:\myblog-hexo\node_modules\bluebird\js\release                                                                                                                                                                                               \promise_array.js:78:10)
    at MappingPromiseArray._asyncInit (E:\myblog-hexo\node_modules\bluebird\js\r                                                                                                                                                                                               elease\map.js:30:10)
    at Async._drainQueue (E:\myblog-hexo\node_modules\bluebird\js\release\async.                                                                                                                                                                                               js:138:12)
    at Async._drainQueues (E:\myblog-hexo\node_modules\bluebird\js\release\async                                                                                                                                                                                               .js:143:10)
    at Immediate.Async.drainQueues (E:\myblog-hexo\node_modules\bluebird\js\rele                                                                                                                                                                                               ase\async.js:17:14)
    at runCallback (timers.js:789:20)
    at tryOnImmediate (timers.js:751:5)
    at processImmediate [as _immediateCallback] (timers.js:722:5)
@LEAFERx
Copy link
Contributor

LEAFERx commented Mar 7, 2018

Have u make config in site _config.yml?

@aixiu
Copy link
Author

aixiu commented Mar 7, 2018

@LEAFERx Thank you for solving my problem.

@aixiu aixiu closed this as completed Mar 7, 2018
@LEAFERx
Copy link
Contributor

LEAFERx commented Mar 7, 2018

No problem. Next time please issue on hexo-leancloud-counter-security repo

@aixiu
Copy link
Author

aixiu commented Mar 7, 2018

ok.

@ivan-nginx ivan-nginx changed the title hexo-leancloud-counter-security--Errors hexo-leancloud-counter-security--Errors [see plugin configuration] Mar 17, 2018
@Devopswalker
Copy link

How can I solve this problem? I did not configure leancloud_visitors.

@ivan-nginx ivan-nginx changed the title hexo-leancloud-counter-security--Errors [see plugin configuration] hexo-leancloud-counter-security--Errors [solved] Mar 4, 2019
@ivan-nginx ivan-nginx changed the title hexo-leancloud-counter-security--Errors [solved] hexo-leancloud-counter-security – Errors [solved] Apr 1, 2019
@theme-next theme-next locked as resolved and limited conversation to collaborators Apr 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants