Giter VIP home page Giter VIP logo

Comments (3)

jinzhu avatar jinzhu commented on August 23, 2024 2

qor-example requires go 1.6+

from qor-example.

jinzhu avatar jinzhu commented on August 23, 2024

sorry for the problem, just fixed that, you need to upgrade gorm

from qor-example.

pingadi avatar pingadi commented on August 23, 2024

Still having same problem on:

  • go run main.go --> failed

Error:

# github.com/qor/qor-example/config/auth
config/auth/auth.go:35: Auth.LayoutPath undefined (type *authboss.Authboss has no field or method LayoutPath)
config/auth/auth.go:36: Auth.LayoutFuncMaker undefined (type *authboss.Authboss has no field or method LayoutFuncMaker)

Try Fixing:
comment out qor-example/config/auth/auth.go line 35 and 36

  • re-run go run main.go --> failed

Error:

[info] replacing callback `gorm:delete` from /home/ubuntu/qorsdk/src/github.com/qor/publish/publish.go:144
Failed to create unique index for translations key & locale, got: Error 1170: BLOB/TEXT column 'key' used in key specification without a key length

(Error 1170: BLOB/TEXT column 'key' used in key specification without a key length)
[2016-06-16 14:35:50]
[register] Loading
panic: [register] Error Initializing: template: authboss:8: function "t" not defined

goroutine 1 [running]:
github.com/qor/qor-example/config/auth.init.1()
    /home/ubuntu/qorsdk/src/github.com/qor/qor-example/config/auth/auth.go:58 +0x6a9
github.com/qor/qor-example/config/auth.init()
    /home/ubuntu/qorsdk/src/github.com/qor/qor-example/config/auth/session_storer.go:69 +0xd3
github.com/qor/qor-example/config/admin.init()
    /home/ubuntu/qorsdk/src/github.com/qor/qor-example/config/admin/worker.go:133 +0x7b
main.init()
    /home/ubuntu/qorsdk/src/github.com/qor/qor-example/main.go:29 +0x4a

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:1696 +0x1

goroutine 5 [chan receive]:
database/sql.(*DB).connectionOpener(0xc820272f00)
    /usr/local/go/src/database/sql/sql.go:634 +0x45
created by database/sql.Open
    /usr/local/go/src/database/sql/sql.go:481 +0x336
exit status 2

from qor-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.