Skip to content

Template error in version 0.11.0 #207

@Kansattica

Description

@Kansattica

I just updated to WriteFreely 0.11.0 from 0.10.0. I downloaded the tarball from the releases page, extracted it into a new place, and copied over my database, keys, and config.ini. I ran the database migration and, when I start writefreely and try to load the home page, I get an error screen and the following message in the console.

ERROR: 2019/11/11 11:57:56 collections.go:820: Unable to render collection index: template: collection.tmpl:74:125: executing "collection" at <.Host>: can't evaluate field Host in type writefreely.PublicPost
ERROR: 2019/11/11 11:57:56 handle.go:508: [Web handler] 500: template: collection.tmpl:74:125: executing "collection" at <.Host>: can't evaluate field Host in type writefreely.PublicPost

I assume this is because your PublicPost struct doesn't have a .Host property, as seen here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions