Closed Janegao011919 closed 6 years ago
try to this folder: hexo\source\uploads
and hexo\source\images
?
V6 is available. You can also try to upgrade it.
@sli1989 Thank you ~ I will try that.
This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.
I agree and want to create new issue
Expected behavior
I was activating functions by editing the _config.yml under folder theme NexT. Somewhere around uploading photos for "donate" functions, I got confused and somehow change the path/to as "/themes/next/source/images". Something may have generated because of the mistake and now my whole blog just went blank.
Actual behavior
Now my blog looks like this:https://janegao011919.github.io/Jtalks.github.io/2018/05/17/hello-world/
Something may have generated because of the mistake and now my whole blog just went blank. Figured that might be the problem from information after $ hexo s --debug
``svg 10:50:30.538 DEBUG Generator: page 10:50:30.538 DEBUG Generator: post 10:50:30.538 DEBUG Generator: category 10:50:30.538 DEBUG Generator: archive 10:50:30.538 DEBUG Generator: index 10:50:30.538 DEBUG Generator: feed 10:50:30.538 DEBUG Generator: tag 10:50:30.540 DEBUG Generator: asset 10:50:30.547 WARN ============================================================= == 10:50:30.547 WARN ========================= ATTENTION! ======================== == 10:50:30.547 WARN ============================================================= == 10:50:30.547 WARN NexT repository is moving here: https://github.com/theme-nex t 10:50:30.548 WARN ============================================================= == 10:50:30.548 WARN It's rebase to v6.0.0 and future maintenance will resume the re 10:50:30.548 WARN ============================================================= == 10:50:30.550 INFO Hexo is running at http://localhost:4000/Jtalks.github.io/. P ress Ctrl+C to stop. 10:50:30.564 DEBUG Database saved 10:50:36.668 DEBUG Rendering archive: archives/index.html Unhandled rejection Error: ENOENT: no such file or directory, open 'D:\软件\My R epository{Jtalks}\themes\next\layout_scripts\schemes.swig' at Object.fs.openSync (fs.js:646:18) at Object.fs.readFileSync (fs.js:551:33) at Object.ret.load (D:\软件\My Repository{Jtalks}\node_modules\swig-templat es\lib\loaders\filesystem.js:55:15) at exports.Swig.compileFile (D:\软件\My Repository{Jtalks}\node_modules\swi g-templates\lib\swig.js:694:31) at Object.eval [as tpl] (eval at precompile (D:\软件\My Repository{Jtalks}\ node_modules\swig-templates\lib\swig.js:497:13),:476:18)
at compiled (D:\软件\My Repository{Jtalks}\node_modules\swig-templates\lib\ swig.js:618:18)
at Theme._View.View._compiled.locals [as _compiled] (D:\软件\My Repository{ Jtalks}\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\软件\My Repository{Jtalks}\node_modules \hexo\lib\theme\view.js:29:15)
at route.set (D:\软件\My Repository{Jtalks}\node_modules\hexo\lib\hexo\inde x.js:386:29)
at tryCatcher (D:\软件\My Repository{Jtalks}\node_modules\bluebird\js\relea se\util.js:16:23)
at D:\软件\My Repository{Jtalks}\node_modules\bluebird\js\release\method.js :15:34
at RouteStream._read (D:\软件\My Repository{Jtalks}\node_modules\hexo\lib\h exo\router.js:134:3)
at RouteStream.Readable.read (_streamreadable.js:442:10)
at resume (_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
GET /Jtalks.github.io/archives/ - - ms - -
10:52:36.675 DEBUG Rendering archive: archives/index.html
Unhandled rejection Error: ENOENT: no such file or directory, open 'D:\软件\My Repository{Jtalks}\themes\next\layout_scripts\schemes.swig'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.ret.load (D:\软件\My Repository{Jtalks}\node_modules\swig-templates\lib\loaders\filesystem.js:55:15)
at exports.Swig.compileFile (D:\软件\My Repository{Jtalks}\node_modules\swig-templates\lib\swig.js:694:31)
at Object.eval [as tpl] (eval at precompile (D:\软件\My Repository{Jtalks}\node_modules\swig-templates\lib\swig.js:497:13), :476:18)
at compiled (D:\软件\My Repository{Jtalks}\node_modules\swig-templates\lib\swig.js:618:18)
at Theme._View.View._compiled.locals [as _compiled] (D:\软件\My Repository{Jtalks}\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\软件\My Repository{Jtalks}\node_modules\hexo\lib\theme\view.js:29:15)
at route.set (D:\软件\My Repository{Jtalks}\node_modules\hexo\lib\hexo\index.js:386:29)
at tryCatcher (D:\软件\My Repository{Jtalks}\node_modules\bluebird\js\release\util.js:16:23)
at D:\软件\My Repository{Jtalks}\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (D:\软件\My Repository{Jtalks}\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_streamreadable.js:442:10)
at resume (_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
GET /Jtalks.github.io/archives/ - - ms - -
10:54:36.676 DEBUG Rendering archive: archives/index.html
Unhandled rejection Error: ENOENT: no such file or directory, open 'D:\软件\My Repository{Jtalks}\themes\next\layout_scripts\schemes.swig'
at Object.fs.openSync (fs.js:646:18)
at Object.fs.readFileSync (fs.js:551:33)
at Object.ret.load (D:\软件\My Repository{Jtalks}\node_modules\swig-templates\lib\loaders\filesystem.js:55:15)
at exports.Swig.compileFile (D:\软件\My Repository{Jtalks}\node_modules\swig-templates\lib\swig.js:694:31)
at Object.eval [as tpl] (eval at precompile (D:\软件\My Repository{Jtalks}\node_modules\swig-templates\lib\swig.js:497:13), :476:18)
at compiled (D:\软件\My Repository{Jtalks}\node_modules\swig-templates\lib\swig.js:618:18)
at Theme._View.View._compiled.locals [as _compiled] (D:\软件\My Repository{Jtalks}\node_modules\hexo\lib\theme\view.js:124:48)
at Theme._View.View.View.render (D:\软件\My Repository{Jtalks}\node_modules\hexo\lib\theme\view.js:29:15)
at route.set (D:\软件\My Repository{Jtalks}\node_modules\hexo\lib\hexo\index.js:386:29)
at tryCatcher (D:\软件\My Repository{Jtalks}\node_modules\bluebird\js\release\util.js:16:23)
at D:\软件\My Repository{Jtalks}\node_modules\bluebird\js\release\method.js:15:34
at RouteStream._read (D:\软件\My Repository{Jtalks}\node_modules\hexo\lib\hexo\router.js:134:3)
at RouteStream.Readable.read (_streamreadable.js:442:10)
at resume (_stream_readable.js:822:12)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
10:55:51.852 INFO See you again
10:55:51.911 DEBUG Database saved
Steps to reproduce the behavior
Reward
reward_comment: wechatpay: /images/wechatpay.jpg alipay: /images/alipay.jpg `
Then I tried to add the wechat subscriber function. Added folder uploads to source folder under blog: D:\软件\My Repository{Jtalks}\source\uploads.
#Reward reward_comment: wechatpay: /themes/next/source/images/wechatpay.jpg alipay: /themes/next/source/images/alipay.jpg
None of the pictures was shown on my blog. So I got "creative" and tried changing the "path/to" as "/themes/next/source/images" ` Reward reward_comment: wechatpay: //themes/next/source/images/wechatpay.jpg alipay: //themes/next/source/images/alipay.jpg
bitcoin: /images/bitcoin.png`
`
After that didn't work. And my blog went blank. Tried $ hexo s --debug:
svg 10:50:30.538 DEBUG Generator: page 10:50:30.538 DEBUG Generator: post 10:50:30.538 DEBUG Generator: category 10:50:30.538 DEBUG Generator: archive 10:50:30.538 DEBUG Generator: index 10:50:30.538 DEBUG Generator: feed 10:50:30.538 DEBUG Generator: tag 10:50:30.540 DEBUG Generator: asset 10:50:30.547 WARN ============================================================= == 10:50:30.547 WARN ========================= ATTENTION! ======================== == 10:50:30.547 WARN ============================================================= == 10:50:30.547 WARN NexT repository is moving here: https://github.com/theme-nex t 10:50:30.548 WARN ============================================================= == 10:50:30.548 WARN It's rebase to v6.0.0 and future maintenance will resume the re 10:50:30.548 WARN ============================================================= == 10:50:30.550 INFO Hexo is running at http://localhost:4000/Jtalks.github.io/. P ress Ctrl+C to stop. 10:50:30.564 DEBUG Database saved 10:50:36.668 DEBUG Rendering archive: archives/index.html Unhandled rejection Error: ENOENT: no such file or directory, open 'D:\软件\My R epository\{Jtalks}\themes\next\layout\_scripts\schemes\.swig' at Object.fs.openSync (fs.js:646:18) at Object.fs.readFileSync (fs.js:551:33) at Object.ret.load (D:\软件\My Repository\{Jtalks}\node_modules\swig-templat es\lib\loaders\filesystem.js:55:15) at exports.Swig.compileFile (D:\软件\My Repository\{Jtalks}\node_modules\swi g-templates\lib\swig.js:694:31) at Object.eval [as tpl] (eval at precompile (D:\软件\My Repository\{Jtalks}\ node_modules\swig-templates\lib\swig.js:497:13), <anonymous>:476:18) at compiled (D:\软件\My Repository\{Jtalks}\node_modules\swig-templates\lib\ swig.js:618:18) at Theme._View.View._compiled.locals [as _compiled] (D:\软件\My Repository\{ Jtalks}\node_modules\hexo\lib\theme\view.js:124:48) at Theme._View.View.View.render (D:\软件\My Repository\{Jtalks}\node_modules \hexo\lib\theme\view.js:29:15) at route.set (D:\软件\My Repository\{Jtalks}\node_modules\hexo\lib\hexo\inde x.js:386:29) at tryCatcher (D:\软件\My Repository\{Jtalks}\node_modules\bluebird\js\relea se\util.js:16:23) at D:\软件\My Repository\{Jtalks}\node_modules\bluebird\js\release\method.js :15:34 at RouteStream._read (D:\软件\My Repository\{Jtalks}\node_modules\hexo\lib\h exo\router.js:134:3) at RouteStream.Readable.read (_stream_readable.js:442:10) at resume_ (_stream_readable.js:822:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) GET /Jtalks.github.io/archives/ - - ms - - 10:52:36.675 DEBUG Rendering archive: archives/index.html Unhandled rejection Error: ENOENT: no such file or directory, open 'D:\软件\My Repository\{Jtalks}\themes\next\layout\_scripts\schemes\.swig' at Object.fs.openSync (fs.js:646:18) at Object.fs.readFileSync (fs.js:551:33) at Object.ret.load (D:\软件\My Repository\{Jtalks}\node_modules\swig-templates\lib\loaders\filesystem.js:55:15) at exports.Swig.compileFile (D:\软件\My Repository\{Jtalks}\node_modules\swig-templates\lib\swig.js:694:31) at Object.eval [as tpl] (eval at precompile (D:\软件\My Repository\{Jtalks}\node_modules\swig-templates\lib\swig.js:497:13), <anonymous>:476:18) at compiled (D:\软件\My Repository\{Jtalks}\node_modules\swig-templates\lib\swig.js:618:18) at Theme._View.View._compiled.locals [as _compiled] (D:\软件\My Repository\{Jtalks}\node_modules\hexo\lib\theme\view.js:124:48) at Theme._View.View.View.render (D:\软件\My Repository\{Jtalks}\node_modules\hexo\lib\theme\view.js:29:15) at route.set (D:\软件\My Repository\{Jtalks}\node_modules\hexo\lib\hexo\index.js:386:29) at tryCatcher (D:\软件\My Repository\{Jtalks}\node_modules\bluebird\js\release\util.js:16:23) at D:\软件\My Repository\{Jtalks}\node_modules\bluebird\js\release\method.js:15:34 at RouteStream._read (D:\软件\My Repository\{Jtalks}\node_modules\hexo\lib\hexo\router.js:134:3) at RouteStream.Readable.read (_stream_readable.js:442:10) at resume_ (_stream_readable.js:822:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) GET /Jtalks.github.io/archives/ - - ms - - 10:54:36.676 DEBUG Rendering archive: archives/index.html Unhandled rejection Error: ENOENT: no such file or directory, open 'D:\软件\My Repository\{Jtalks}\themes\next\layout\_scripts\schemes\.swig' at Object.fs.openSync (fs.js:646:18) at Object.fs.readFileSync (fs.js:551:33) at Object.ret.load (D:\软件\My Repository\{Jtalks}\node_modules\swig-templates\lib\loaders\filesystem.js:55:15) at exports.Swig.compileFile (D:\软件\My Repository\{Jtalks}\node_modules\swig-templates\lib\swig.js:694:31) at Object.eval [as tpl] (eval at precompile (D:\软件\My Repository\{Jtalks}\node_modules\swig-templates\lib\swig.js:497:13), <anonymous>:476:18) at compiled (D:\软件\My Repository\{Jtalks}\node_modules\swig-templates\lib\swig.js:618:18) at Theme._View.View._compiled.locals [as _compiled] (D:\软件\My Repository\{Jtalks}\node_modules\hexo\lib\theme\view.js:124:48) at Theme._View.View.View.render (D:\软件\My Repository\{Jtalks}\node_modules\hexo\lib\theme\view.js:29:15) at route.set (D:\软件\My Repository\{Jtalks}\node_modules\hexo\lib\hexo\index.js:386:29) at tryCatcher (D:\软件\My Repository\{Jtalks}\node_modules\bluebird\js\release\util.js:16:23) at D:\软件\My Repository\{Jtalks}\node_modules\bluebird\js\release\method.js:15:34 at RouteStream._read (D:\软件\My Repository\{Jtalks}\node_modules\hexo\lib\hexo\router.js:134:3) at RouteStream.Readable.read (_stream_readable.js:442:10) at resume_ (_stream_readable.js:822:12) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) 10:55:51.852 INFO See you again 10:55:51.911 DEBUG Database saved
Some clues I found according to the results above:
Unhandled rejection Error: ENOENT: no such file or directory, open 'D:\软件\My R epository\{Jtalks}\themes\next\layout\_scripts\schemes\.swig'
I know my workflow is a mess. Really appreciate if you could give me some advice. I read the 《Pro Git》file several times. But since the Hexo and the theme file NexT are all frameworks with their own commands. It's hard to figure which file to"$ git add" exactly. So I just
$ hexo clean $ hexo g $ hexo s --debug $ hexo d
every time. Sometimes after $ hexo s, the page doesn't work on localhost, but $ hexo d works. So I just got careless and my blog is down.Link to demo site with this issue:
http://theme-next.iissnan.com/theme-settings.html
Link(s) to source code or any usefull link(s): N/A
Node.js and NPM Information
$ npm -v 5.6.0
Package dependencies Information
Hexo Information
Hexo version
Hexo Configuration
NexT Information
NexT Version:
NexT Scheme:
NexT Configuration:
Other Information