Beratung und Kontakt

PANIC: template: pagemodules.html:2:11: executing "pagemodules" at <.P.StaticDomain>: can't evaluate field StaticDomain in type *models.Page goroutine 352061484 [running]: github.com/urfave/negroni.(*Recovery).ServeHTTP.func1(0x7fec144fd938, 0xc000406b10, 0xc00037a5f0, 0xc000034400) /home/go/src/github.com/urfave/negroni/recovery.go:159 +0xce panic(0xbcb200, 0xc000571460) /usr/lib/golang/src/runtime/panic.go:969 +0x1b9 gosites/handlers.(*Direct).Show(0xc0003aa2a0, 0x7fec144fd938, 0xc000406b10, 0xc000034500) /home/go/src/gosites/handlers/direct.go:115 +0x16c8 github.com/dimfeld/httptreemux.(*ContextGroup).Handle.func1(0x7fec144fd938, 0xc000406b10, 0xc000034400, 0xc0008c4240) /home/go/src/github.com/dimfeld/httptreemux/context.go:55 +0x17c github.com/dimfeld/httptreemux.(*TreeMux).ServeLookupResult(0xc00037c960, 0x7fec144fd938, 0xc000406b10, 0xc000034400, 0xc8, 0xc0003aa8e0, 0xc0008c4240, 0x0) /home/go/src/github.com/dimfeld/httptreemux/router.go:247 +0x178 github.com/dimfeld/httptreemux.(*TreeMux).ServeHTTP(0xc00037c960, 0x7fec144fd938, 0xc000406b10, 0xc000034400) /home/go/src/github.com/dimfeld/httptreemux/router.go:268 +0x16c github.com/urfave/negroni.Wrap.func1(0x7fec144fd938, 0xc000406b10, 0xc000034400, 0xc000226020) /home/go/src/github.com/urfave/negroni/negroni.go:46 +0x4d github.com/urfave/negroni.HandlerFunc.ServeHTTP(0xc0003ac8c0, 0x7fec144fd938, 0xc000406b10, 0xc000034400, 0xc000226020) /home/go/src/github.com/urfave/negroni/negroni.go:29 +0x4e github.com/urfave/negroni.middleware.ServeHTTP(0xd66b40, 0xc0003ac8c0, 0xc0003ac9a0, 0x7fec144fd938, 0xc000406b10, 0xc000034400) /home/go/src/github.com/urfave/negroni/negroni.go:38 +0x9c github.com/urfave/negroni.(*Logger).ServeHTTP(0xc00037f1d0, 0x7fec144fd938, 0xc000406b10, 0xc000034400, 0xc000226000) /home/go/src/github.com/urfave/negroni/logger.go:66 +0x8e github.com/urfave/negroni.middleware.ServeHTTP(0xd65ae0, 0xc00037f1d0, 0xc0003ac980, 0x7fec144fd938, 0xc000406b10, 0xc000034400) /home/go/src/github.com/urfave/negroni/negroni.go:38 +0x9c github.com/urfave/negroni.(*Recovery).ServeHTTP(0xc00037a5f0, 0x7fec144fd938, 0xc000406b10, 0xc000034400, 0xc0000b1fe0) /home/go/src/github.com/urfave/negroni/recovery.go:193 +0x8c github.com/urfave/negroni.middleware.ServeHTTP(0xd65b20, 0xc00037a5f0, 0xc0003ac960, 0x7fec144fd938, 0xc000406b10, 0xc000034400) /home/go/src/github.com/urfave/negroni/negroni.go:38 +0x9c gosites/middleware.(*SessionManager).ProblemAlert(0xc00037a4b0, 0x7fec144fd938, 0xc000406b10, 0xc000034300, 0xc0000b1fc0) /home/go/src/gosites/middleware/problemalert.go:73 +0x33f github.com/urfave/negroni.HandlerFunc.ServeHTTP(0xc0003aa140, 0x7fec144fd938, 0xc000406b10, 0xc000034300, 0xc0000b1fc0) /home/go/src/github.com/urfave/negroni/negroni.go:29 +0x4e github.com/urfave/negroni.middleware.ServeHTTP(0xd66b40, 0xc0003aa140, 0xc0003ac940, 0x7fec144fd938, 0xc000406b10, 0xc000034300) /home/go/src/github.com/urfave/negroni/negroni.go:38 +0x9c gosites/middleware.(*SessionManager).Session(0xc00037a4b0, 0x7fec144fd938, 0xc000406b10, 0xc0009b9e00, 0xc0001d95e0) /home/go/src/gosites/middleware/sessionmanager.go:259 +0x969 github.com/urfave/negroni.HandlerFunc.ServeHTTP(0xc0003aa130, 0x7fec144fd938, 0xc000406b10, 0xc0009b9e00, 0xc0001d95e0) /home/go/src/github.com/urfave/negroni/negroni.go:29 +0x4e github.com/urfave/negroni.middleware.ServeHTTP(0xd66b40, 0xc0003aa130, 0xc0003ac920, 0x7fec144fd938, 0xc000406b10, 0xc0009b9e00) /home/go/src/github.com/urfave/negroni/negroni.go:38 +0x9c github.com/urfave/negroni.(*Static).ServeHTTP(0xc00037f1a0, 0x7fec144fd938, 0xc000406b10, 0xc0009b9e00, 0xc0001d95c0) /home/go/src/github.com/urfave/negroni/static.go:53 +0x748 github.com/urfave/negroni.middleware.ServeHTTP(0xd65b40, 0xc00037f1a0, 0xc0003ac900, 0x7fec144fd938, 0xc000406b10, 0xc0009b9e00) /home/go/src/github.com/urfave/negroni/negroni.go:38 +0x9c gosites/middleware.(*Instrumentation).ServeHTTP(0xc0003aa0a0, 0x7fec144fd938, 0xc000406b10, 0xc0009b9e00, 0xc0001d95a0) /home/go/src/gosites/middleware/instrumentation.go:58 +0x88 github.com/urfave/negroni.middleware.ServeHTTP(0xd65d60, 0xc0003aa0a0, 0xc0003ac8e0, 0x7fec144fd938, 0xc000406b10, 0xc0009b9e00) /home/go/src/github.com/urfave/negroni/negroni.go:38 +0x9c github.com/urfave/negroni.(*Negroni).ServeHTTP(0xc00037ef30, 0xd72560, 0xc000346000, 0xc0009b9e00) /home/go/src/github.com/urfave/negroni/negroni.go:96 +0xeb net/http.serverHandler.ServeHTTP(0xc0003476c0, 0xd72560, 0xc000346000, 0xc0009b9e00) /usr/lib/golang/src/net/http/server.go:2843 +0xa3 net/http.(*conn).serve(0xc0002d7a40, 0xd73ce0, 0xc000604e40) /usr/lib/golang/src/net/http/server.go:1925 +0x8ad created by net/http.(*Server).Serve /usr/lib/golang/src/net/http/server.go:2969 +0x36c