theme-next / hexo-leancloud-counter-security

A plugin to fix a serious security bug in leancloud visitor counter for NexT.
GNU Lesser General Public License v3.0
34 stars 11 forks source link

Error in log output #26

Closed ljcbaby closed 2 weeks ago

ljcbaby commented 3 years ago
hexo_root/node_modules/hexo-leancloud-counter-security/index.js:73
    this.log.info('leancloud.memo successfully updated.');
         ^

TypeError: Cannot read property 'log' of undefined
    at postOperation (hexo_root/node_modules/hexo-leancloud-counter-security/index.js:73:10)
    at /www/page/hexo/node_modules/hexo-leancloud-counter-security/index.js:160:17
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
➜  hexo git:(master) ✗ node -v
v15.8.0
➜  hexo git:(master) ✗ npm -v
7.6.0
➜  hexo git:(master) ✗ npm list --depth 0
hexo-site@0.0.0 /www/page/hexo
├── hexo-deployer-cos-cdn@1.7.1
├── hexo-deployer-git@3.0.0
├── hexo-filter-mathjax@0.6.3
├── hexo-generator-archive@1.0.0
├── hexo-generator-baidu-sitemap@0.1.9
├── hexo-generator-category@1.0.0
├── hexo-generator-feed@3.0.0
├── hexo-generator-index@2.0.0
├── hexo-generator-search@2.4.1
├── hexo-generator-sitemap@2.1.0
├── hexo-generator-tag@1.0.0
├── hexo-lazyload-image@1.0.10
├── hexo-leancloud-counter-security@1.5.0
├── hexo-neat@1.0.9
├── hexo-pangu@0.2.0
├── hexo-renderer-ejs@1.0.0
├── hexo-renderer-marked@4.0.0
├── hexo-renderer-mathjax@0.6.0
├── hexo-renderer-stylus@2.0.1
├── hexo@5.4.0
├── minimatch@3.0.4
└── prism-themes@1.5.0
JanWarlen commented 2 years ago
hexo_root/node_modules/hexo-leancloud-counter-security/index.js:73
    this.log.info('leancloud.memo successfully updated.');
         ^

TypeError: Cannot read property 'log' of undefined
    at postOperation (hexo_root/node_modules/hexo-leancloud-counter-security/index.js:73:10)
    at /www/page/hexo/node_modules/hexo-leancloud-counter-security/index.js:160:17
    at processTicksAndRejections (node:internal/process/task_queues:94:5)
➜  hexo git:(master) ✗ node -v
v15.8.0
➜  hexo git:(master) ✗ npm -v
7.6.0
➜  hexo git:(master) ✗ npm list --depth 0
hexo-site@0.0.0 /www/page/hexo
├── hexo-deployer-cos-cdn@1.7.1
├── hexo-deployer-git@3.0.0
├── hexo-filter-mathjax@0.6.3
├── hexo-generator-archive@1.0.0
├── hexo-generator-baidu-sitemap@0.1.9
├── hexo-generator-category@1.0.0
├── hexo-generator-feed@3.0.0
├── hexo-generator-index@2.0.0
├── hexo-generator-search@2.4.1
├── hexo-generator-sitemap@2.1.0
├── hexo-generator-tag@1.0.0
├── hexo-lazyload-image@1.0.10
├── hexo-leancloud-counter-security@1.5.0
├── hexo-neat@1.0.9
├── hexo-pangu@0.2.0
├── hexo-renderer-ejs@1.0.0
├── hexo-renderer-marked@4.0.0
├── hexo-renderer-mathjax@0.6.0
├── hexo-renderer-stylus@2.0.1
├── hexo@5.4.0
├── minimatch@3.0.4
└── prism-themes@1.5.0

did you configured git? when i configured git, it was fixed.