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

error if directory static/files/citations not exists #329

Closed
seisman opened this Issue Oct 19, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@seisman
Contributor

seisman commented Oct 19, 2017

After upgrading to the latest version, I got errors below:

ERROR 2017/10/19 16:35:41 Error while rendering "page": template: theme/publication/single.html:82:13: executing "theme/publication/single.html" at <partial "publication...>: error calling partial: template: theme/partials/publication_links.html:17:14: executing "theme/partials/publication_links.html" at <readDir $directory>: error calling readDir: Failed to read Directory static/files/citations/ with error message open /Users/seisman/Gits/ustchome/static/files/citations: no such file or directory
ERROR 2017/10/19 16:35:41 Error while rendering "page": template: theme/project/single.html:33:9: executing "theme/project/single.html" at <partial "publication...>: error calling partial: template: theme/partials/publication_li_simple.html:9:8: executing "theme/partials/publication_li_simple.html" at <partial "publication...>: error calling partial: template: theme/partials/publication_links.html:17:14: executing "theme/partials/publication_links.html" at <readDir $directory>: error calling readDir: Failed to read Directory static/files/citations/ with error message open /Users/seisman/Gits/ustchome/static/files/citations: no such file or directory
ERROR 2017/10/19 16:35:41 Error while rendering "section": template: theme/section/publication.html:59:15: executing "theme/section/publication.html" at <partial "publication...>: error calling partial: template: theme/partials/publication_li_mla.html:15:8: executing "theme/partials/publication_li_mla.html" at <partial "publication...>: error calling partial: template: theme/partials/publication_links.html:17:14: executing "theme/partials/publication_links.html" at <readDir $directory>: error calling readDir: Failed to read Directory static/files/citations/ with error message open /Users/seisman/Gits/ustchome/static/files/citations: no such file or directory
ERROR 2017/10/19 16:35:41 Error while rendering "home": template: theme/index.html:1:3: executing "theme/index.html" at <partial "widget_page...>: error calling partial: template: theme/partials/widget_page.html:23:9: executing "theme/partials/widget_page.html" at <partial $widget $par...>: error calling partial: template: theme/partials/widgets/publications_selected.html:22:11: executing "theme/partials/widgets/publications_selected.html" at <partial "publication...>: error calling partial: template: theme/partials/publication_li_detailed.html:57:11: executing "theme/partials/publication_li_detailed.html" at <partial "publication...>: error calling partial: template: theme/partials/publication_links.html:17:14: executing "theme/partials/publication_links.html" at <readDir $directory>: error calling readDir: Failed to read Directory static/files/citations/ with error message open /Users/seisman/Gits/ustchome/static/files/citations: no such file or directory

This bug can be fixed after directory static/files/citations is created.

BTW: hugo 0.30 is already released, fileExists is available now.

@pat-s

This comment has been minimized.

Show comment
Hide comment
@pat-s

pat-s Oct 19, 2017

After creating static/files/citation I get the next error:

ERROR 2017/10/19 18:11:27 Error while rendering "home": template: theme/index.html:1:3: 
executing "theme/index.html" at <partial "widget_page...>: 
error calling partial: template: 
theme/partials/widget_page.html:23:9: executing "theme/partials/widget_page.html" 
at <partial $widget $par...>: error calling partial: template: 
theme/partials/widgets/posts.html:25:14: executing "theme/partials/widgets/posts.html" 
at <len $page.Params.tag...>: error calling len: len of untyped nil

pat-s commented Oct 19, 2017

After creating static/files/citation I get the next error:

ERROR 2017/10/19 18:11:27 Error while rendering "home": template: theme/index.html:1:3: 
executing "theme/index.html" at <partial "widget_page...>: 
error calling partial: template: 
theme/partials/widget_page.html:23:9: executing "theme/partials/widget_page.html" 
at <partial $widget $par...>: error calling partial: template: 
theme/partials/widgets/posts.html:25:14: executing "theme/partials/widgets/posts.html" 
at <len $page.Params.tag...>: error calling len: len of untyped nil
@gcushen

This comment has been minimized.

Show comment
Hide comment
@gcushen

gcushen Oct 19, 2017

Owner

@pat-s the new error you're getting sounds like you haven't updated the parameters of the Post widget - the breaking changes RE new/changed parameters can be found here: https://sourcethemes.com/academic/post/v2.0.0/

Posts widget: Add filter to exclude tags
Change tags option to tags_include [BREAKING CHANGE]
Add tags_exclude option

Owner

gcushen commented Oct 19, 2017

@pat-s the new error you're getting sounds like you haven't updated the parameters of the Post widget - the breaking changes RE new/changed parameters can be found here: https://sourcethemes.com/academic/post/v2.0.0/

Posts widget: Add filter to exclude tags
Change tags option to tags_include [BREAKING CHANGE]
Add tags_exclude option

@gcushen gcushen closed this in 3b76068 Oct 19, 2017

@gcushen gcushen added the bug label Oct 19, 2017

@gcushen gcushen added this to the v2 milestone Oct 19, 2017

gcushen added a commit to seisman/hugo-academic that referenced this issue Oct 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment