Closed chhh closed 6 years ago
It would help to know which version you were updating from and a link to your repository?
talk.html
was not changed in v2.2.0, but was in v2.1.0, so my guess is you were updating from a version prior to v2.1.0 as v2.1.0 introduced new config options and the time_start
parameter into the metadata of talks in content/talk/*.md
. If you are not using talks then deleting content/talk/
might also help. See https://sourcethemes.com/academic/updates/v2.1.0/ and https://raw.githubusercontent.com/gcushen/hugo-academic/master/exampleSite/content/talk/example-talk.md.
Note that updates must be applied consecutively - leaping from v2.0.0 to v2.2.0 without applying update v2.1.0 will likely cause problems, for example.
Sorry for not providing enough info, I was thinking it should have been something like that.
https://github.com/chhh/chhh.github.io
I was updating from some intermediate state, I guess, just cloned and added your theme as a submodule. This was the exact point in history: https://github.com/gcushen/hugo-academic/tree/a42037eadd35708c4de31c4854c6c927747b5908
I tried using the talks from the example site, which I assumed was updated, but that didn't work, so I gave up immediately, deleted the whole talks folder and filed this report :)
@gcushen I'm encountering similar errors. My folder isn't yet public but I'm happy to provide any/all details. I am using Hugo/Blogdown with Hugo-academic (0.40.2). I'm running local tests using blogdown::serve_site()
The website doesn't update with the changes I've made to various .md in the content/
folder. I read on one of the issue pages that running hugo on the terminal would reveal the errors and I fixed all but one:
Building sites … ERROR 2018/05/07 17:40:41 Failed to render "theme/publication/single.html": runtime error: invalid memory address or nil pointer dereference
However, when I run a hugo server
, I receive a whole slew of errors:
Building sites … ERROR 2018/05/07 17:41:18 Failed to render "theme/publication/single.html": runtime error: invalid memory address or nil pointer dereference ERROR 2018/05/07 17:41:18 Failed to render "theme/talk/single.html": runtime error: invalid memory address or nil pointer dereference ERROR 2018/05/07 17:41:18 Failed to render "theme/section/talk.html": runtime error: invalid memory address or nil pointer dereference ERROR 2018/05/07 17:41:18 Failed to render "theme/index.html": runtime error: invalidmemory address or nil pointer dereference ERROR 2018/05/07 17:41:18 Failed to render "theme/section/publication.html": runtime error: invalid memory address or nil pointer dereference | EN +------------------+----+ Pages | 72 Paginator pages | 1 Non-page files | 1 Static files | 23 Processed images | 0 Aliases | 26 Sitemaps | 1 Cleaned | 0 Total in 380 ms Watching for changes in /Users/janani/Google_Drive/Personal/AJ/jananiravi/{content,data,layouts,static,themes} Watching for config changes in /Users/janani/Google_Drive/Personal/AJ/jananiravi/config.toml Serving pages from memory Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender Web Server is available at //localhost:1313/ (bind address 127.0.0.1) Press Ctrl+C to stop
Clearly, those html files don't exist and that's the error, but I am not able to find 'template' files to address this error. Also, I am not able to remove the hero widget on top even after I set active=false. Maybe the overall update error is tied to these missing htmls, but please advise.
@gcushen Please see these two threads for some more details and follow-ups on these errors: https://github.com/rstudio/rstudio/issues/2248#issuecomment-387456782 https://discourse.gohugo.io/t/serve-site-error-while-using-hugo-academic-and-blogdown-on-rstudio-for-mac/11881
Thank you!
Please see the temporary fix as discussed in https://github.com/gcushen/hugo-academic/issues/534
The error:
Failed to render "theme/section/talk.html": runtime error: invalid memory address or nil pointer dereference
I wasn't even using that section and didn't have it configured to show up. Tried copying the whole talks section from the updated example site from the latest checkout of the repo, still the same thing.
Removing the whole "talks" directory helps.