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

重启云服务器后无法访问 #228

Closed
Da-Hao opened this issue Sep 28, 2021 · 0 comments
Closed

重启云服务器后无法访问 #228

Da-Hao opened this issue Sep 28, 2021 · 0 comments

Comments

@Da-Hao
Copy link

Da-Hao commented Sep 28, 2021

今天我重启了一下云服务器,通过hexo s可以正常启动,但是我通过浏览器访问出现了以下错误信息,求教该如何解决...
INFO Hexo is running at http://localhost:80 . Press Ctrl+C to stop.
(node:1817) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use node --trace-deprecation ... to show where the warning was created)
Unhandled rejection TypeError: /root/blog/themes/stun/layout/_layout.pug:1

1| -
2| var HEXO_URL = 'http://hexo.io/';
3| var STUN_URL = 'https://github.com/liuyib/hexo-theme-stun/';
4| var isNoHeader = !theme.header.enable || (is_post() && !theme.header.show_on.post);

Cannot read property 'enable' of undefined
at eval (eval at wrap (/root/blog/node_modules/pug-runtime/wrap.js:6:10), :337:32)
at template (eval at wrap (/root/blog/node_modules/pug-runtime/wrap.js:6:10), :6211:72)
at _View._compiled (/root/blog/node_modules/hexo/lib/theme/view.js:136:50)
at _View.render (/root/blog/node_modules/hexo/lib/theme/view.js:39:17)
at /root/blog/node_modules/hexo/lib/hexo/index.js:64:21
at tryCatcher (/root/blog/node_modules/bluebird/js/release/util.js:16:23)
at /root/blog/node_modules/bluebird/js/release/method.js:15:34
at RouteStream.read (/root/blog/node_modules/hexo/lib/hexo/router.js:47:5)
at RouteStream.Readable.read (internal/streams/readable.js:462:10)
at resume
(internal/streams/readable.js:958:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)

@Da-Hao Da-Hao closed this as completed Oct 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant