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

Errors after upgrade from V3 to V4 #945

Closed
6 tasks
serverfriendsorg opened this issue May 28, 2024 · 2 comments
Closed
6 tasks

Errors after upgrade from V3 to V4 #945

serverfriendsorg opened this issue May 28, 2024 · 2 comments

Comments

@serverfriendsorg
Copy link
Contributor

serverfriendsorg commented May 28, 2024

Expected Behavior

Website running correctly

Current Behavior

$ hugo server -w 
Watching for changes in /Users/serverfriendsorg/projects/gitlab.com/serverfriends_org/ws_serverfriendsorg/{assets,content,data,i18n,layouts,node_modules,package.hugo.json,package.json}
Watching for config changes in /Users/serverfriendsorg/projects/gitlab.com/serverfriends_org/ws_serverfriendsorg/hugo.yaml, /Users/serverfriendsorg/projects/gitlab.com/serverfriends_org/ws_serverfriendsorg/go.mod
Start building sites … 
hugo v0.126.1+extended darwin/arm64 BuildDate=2024-05-15T10:42:34Z VendorInfo=brew

Built in 958 ms
Error: error building site: render: failed to render pages: render of "home" failed: "/Users/serverfriendsorg/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-toha/toha/[email protected]/layouts/index.html:52:18": execute of template failed: template: index.html:52:18: executing "index.html" at <partial .section.template .>: error calling partial: "/Users/serverfriendsorg/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-toha/toha/[email protected]/layouts/partials/sections/experiences.html:21:12": execute of template failed: template: partials/sections/experiences.html:21:12: executing "partials/sections/experiences.html" at <partial "sections/experiences/positions.html" $experience>: error calling partial: "/Users/serverfriendsorg/Library/Caches/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugo-toha/toha/[email protected]/layouts/partials/sections/experiences/positions.html:14:37": execute of template failed: template: partials/sections/experiences/positions.html:14:37: executing "partials/sections/

Possible Solution

Steps to Reproduce

Screenshots

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Detailed Description

  • Hugo Version: hugo v0.126.1+extended darwin/arm64 BuildDate=2024-05-15T10:42:34Z VendorInfo=brew
  • node/npm: v22.2.0/10.7.0
  • Go: version go1.22.3 darwin/arm64

Thanks in advance for looking into this.

@hossainemruz
Copy link
Member

There are some breaking changes between v3 and v4. Please, follow this migration guide.
https://toha-guides.netlify.app/posts/update-v3-to-v4/

@serverfriendsorg
Copy link
Contributor Author

Thanks @hossainemruz, that worked!

I had initialized the wrong project, so I ran instead of hugo mod init the theme path github.com/hugo-toha/toha/v4

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

2 participants