Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
Screenshot from 2020-04-19 09-18-31.png
Arturo de la Vega Ruiz
Im getting this
someone knows why?
hello, I want to try the qor example, using go get command. Its failing with the following errors:
neil@neil-Inspiron-7577:~$ go get -u github.com/qor/qor-example
# github.com/qor/auth
go1: internal compiler error: in methods, at go/gofrontend/types.cc:8611
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-8/README.Bugs> for instructions.
# github.com/qor/exchange/backends/csv
go/src/github.com/qor/exchange/backends/csv/xlsx2csv.go:28:27: error: reference to undefined field or method ‘Rows’
for _, row := range sheet.Rows {
go/src/github.com/qor/exchange/backends/csv/xlsx2csv.go:28:27: error: reference to undefined field or method ‘Rows’
go/src/github.com/qor/exchange/backends/csv/xlsx2csv.go:41:3: error: range clause must have array, slice, string, map, or channel type
for i, cell := range row.Cells {
go/src/github.com/qor/exchange/backends/csv/xlsx2csv.go:28:2: error: range clause must have array, slice, string, map, or channel type
for _, row := range sheet.Rows {
go/src/github.com/qor/exchange/backends/csv/xlsx2csv.go:28:6: error: invalid type for range clause
for _, row := range sheet.Rows {
Tao Ritchie
Any experienced QOR/Go programmers looking for freelance work?
how can i contact?
Glenford Williams
how do i get the dropdown to show something other than blank spaces?
Andre Basse
@glenfordwilliams Look at the select one Dcoumentation for a dropdown example https://doc.getqor.com/admin/metas/select-one.html
Glenford Williams
@abasse thanks i found that afterwards and had some success, Only issue i have now is i'm not sure how to set a default value in the editing view
Glenford Williams
Furkan AKSOY
hi all,
Is there anyone who can reach the doc? I've got 503 error
Hi all, One question is it possible to change Add and Edit word in slideout?

Screen Shot 2020-04-02 at 7.20.44 PM.png

put public before system

Prakash Divy
hello, is there any easiest way to learn how to use qor? i cloned the example repository and still can't run it well
Andre Basse

I'm looking for some help with the API. I can't the PUT (Update) call to work. The system always returns the old record.

curl --location --request PUT 'http://localhost:9090/api/task_types/1.json' \
--header 'Content-Type: application/javascript' \
--data-raw '{
"ID": 1,
"Icon": "foo",
"Title": "Text"

Any help is much appreciated.

Andre Basse

Hi all, One question is it possible to change Add and Edit word in slideout?

Found my problem. ("Accept", "application/json");

Aayush gautam
Hi, Everyone!!! Can anyone point me to relevant resources to explore use cases?
Hi, Everyone. How can I add exchange.Resource to admin.Resource? I need to import excel file to qor and save to db
I cant find any example
Sacha Snyman
Hi, everyone, can you help me?
I am gonna update age field value when select date on calendar.
How can I do?
Hello everyone. I'm trying the example program in the docu (Get Started). When I changed the struct name Product to Asset and tried adding new "Asset", handler for adding new "Asset" is not triggered. Is "Asset" an internal word that I should avoid using?
> I got the key error and "widget FullWidthBannerEditor not exists" error, when I was seeding it. Any idea how to fix it?
> $ go run config/db/seeds/main.go config/db/seeds/seeds.go
> Failed to create unique index for translations key & locale, got: Error 1170: BLOB/TEXT column 'key' used in key specification without a key length
> (/Users/jwong3/go/src/github.com/qor/i18n/backends/database/database.go:20)
> [2019-10-26 09:32:44] Error 1170: BLOB/TEXT column 'key' used in key specification without a key length
> WARNING: AssetFS is used before overwrite it!
> goroutine 1 [running, locked to thread]:
> runtime/debug.Stack(0x2e, 0x0, 0x0)
> /usr/local/go/src/runtime/debug/stack.go:24 +0x9d
> runtime/debug.PrintStack()
> /usr/local/go/src/runtime/debug/stack.go:16 +0x22
> github.com/qor/assetfs.SetAssetFS(0x6a57910, 0x24938e0)
> /Users/jwong3/go/src/github.com/qor/assetfs/assetfs.go:33 +0xc5
> github.com/qor/qor-example/config/bindatafs.init.0()
> /Users/jwong3/go/src/github.com/qor/qor-example/config/bindatafs/bindatafs.go:26 +0x5d
> Need to have gorm DB in the configuration in order to run migrations
> Start create sample data...
> --> Created setting.
> --> Created seo.
> --> Created admin users.
> --> Created users.
> --> Created addresses.
> --> Created categories.
> --> Created collections.
> --> Created colors.
> --> Created sizes.
> --> Created material.
> --> Created medialibraries.
> --> Created products.
> --> Created stores.
> --> Created orders.
> 2019/10/26 09:33:30 widget FullWidthBannerEditor not exists, make sure to register it
> 2019/10/26 09:33:30 widget FullWidthBannerEditor not exists, make sure to register it
> 2019/10/26 09:33:30 widget FullWidthBannerEditor not exists, make sure to register it
> 2019/10/26 09:33:30 widget FullWidthBannerEditor not exists, make sure to register it
> --> Created widgets.
> --> Created articles.
> --> Created helps.
> --> Done!

Did you ever fix this?
is there a graphql module to be working with qor?
hi did qor ever integrate with swagger?
Minh Nguyen
can anyone show me the way to setup qor-example with sql-lite?
Ayo Adesokan
I want to upgrade an existing Qor project in production . It currently uses v 1.0 . Is there any guide I can follow , or any tips.
Minh Nguyen
Why It return this error when did with this tutorial: https://doc.getqor.com/get_started.html -> error:
Ayo Adesokan
Did you configure your database ?
Minh Nguyen
I used sqlite3 like tutorial: https://doc.getqor.com/get_started.html, does it need to config?
Ayo Adesokan
I think you will need to have sql lite installed , could you check sqlite is installed on your machine.
Minh Nguyen
I think sql lite not need install, because if need install, it will be sql not lite, :D
Ayo Adesokan
I have a Qor instance on heroku . I upgraded it and everything looks fine locally, but on heroku , the /admin doesnt work and panic as in the error below.
Finish [GET] /admin Took 14.38ms
2021-03-08T01:42:21.479391+00:00 app[web.1]: 2021/03/08 01:42:21 http: panic serving runtime error: invalid memory address or nil pointer dereference
2021-03-08T01:42:21.479393+00:00 app[web.1]: goroutine 30 [running]:
2021-03-08T01:42:21.479394+00:00 app[web.1]: net/http.(*conn).serve.func1(0xc00031cb40)
2021-03-08T01:42:21.479396+00:00 app[web.1]: /tmp/codon/tmp/cache/go1.15.5/go/src/net/http/server.go:1801 +0x147
2021-03-08T01:42:21.479396+00:00 app[web.1]: panic(0xd38f40, 0x1416bf0)
2021-03-08T01:42:21.479397+00:00 app[web.1]: /tmp/codon/tmp/cache/go1.15.5/go/src/runtime/panic.go:975 +0x47a
2021-03-08T01:42:21.479397+00:00 app[web.1]: html/template.(*Template).escape(0x0, 0x0, 0x0)
2021-03-08T01:42:21.479398+00:00 app[web.1]: /tmp/codon/tmp/cache/go1.15.5/go/src/html/template/template.go:95 +0x3b
2021-03-08T01:42:21.479399+00:00 app[web.1]: html/template.(*Template).Execute(0x0, 0xf73d60, 0xc00092a000, 0xe1d9e0, 0xc0001a75e0, 0x1, 0xc00028c700)
2021-03-08T01:42:21.479399+00:00 app[web.1]: /tmp/codon/tmp/cache/go1.15.5/go/src/html/template/template.go:119 +0x2f
2021-03-08T01:42:21.479400+00:00 app[web.1]: github.com/qor/admin.(*Context).Execute(0xc0001a75e0, 0xe2afb9, 0x9, 0x0, 0x0)
2021-03-08T01:42:21.479400+00:00 app[web.1]: /tmp/codon/tmp/cache/go-path/pkg/mod/github.com/qor/admin@v0.0.0-20200908023436-0c0a0b041c88/context.go:227 +0x225
2021-03-08T01:42:21.479401+00:00 app[web.1]: github.com/qor/admin.(*Controller).Dashboard(...)
2021-03-08T01:42:21.479402+00:00 app[web.1]: /tmp/codon/tmp/cache/go-path/pkg/mod/github.com/qor/admin@v0.0.0-20200908023436-0c0a0b041c88/controller.go:28
2021-03-08T01:42:21.479402+00:00 app[web.1]: github.com/qor/admin.(*Admin).NewServeMux.func2(0xc0001a75e0, 0xc000568d80)
2021-03-08T01:42:21.479402+00:00 app[web.1]: /tmp/codon/tmp/cache/go-path/pkg/mod/github.com/qor/admin@v0.0.0-20200908023436-0c0a0b041c88/route.go:176 +0x1ea
2021-03-08T01:42:21.479403+00:00 app[web.1]: github.com/qor/admin.Middleware.Next(...)
2021-03-08T01:42:21.479403+00:00 app[web.1]: /tmp/codon/tmp/cache/go-path/pkg/mod/github.com/qor/admin@v0.0.0-20200908023436-0c0a0b041c88/route.go:37
2021-03-08T01:42:21.479404+00:00 app[web.1]: github.com/qor/admin.(*Admin).NewServeMux.func1(0xc0001a75e0, 0xc000568d40)
2021-03-08T01:42:21.479404+00:00 app[web.1]: /tmp/codon/tmp/cache/go-path/pkg/mod/github.com/qor/admin@v0.0.0-20200908023436-0c0a0b041c88/route.go:166 +0x117
2021-03-08T01:42:21.479405+00:00 app[web.1]: github.com/qor/admin.Middleware.Next(...)
2021-03-08T01:42:21.479405+00:00 app[web.1]: /tmp/codon/tmp/cache/go-path/pkg/mod/github.com/qor/admin@v0.0.0-20200908023436-0c0a0b041c88/route.go:37
2021-03-08T01:42:21.479406+00:00 app[web.1]: github.com/qor/l10n.(*Locale).ConfigureQorResource.func7(0xc0001a75e0, 0xc00086f300)
2021-03-08T01:42:21.479407+00:00 app[web.1]: /tmp/codon/tmp/cache/go-path/pkg/mod/github.com/qor/l10n@v0.0.0-20181031091737-2ca95fb3b4dd/l10n.go:248 +0x727
2021-03-08T01:42:21.479407+00:00 app[web.1]: github.com/qor/admin.Middleware.Next(...)
2021-03-08T01:42:21.479408+00:00 app[web.1]: /tmp/codon/tmp/cache/go-path/pkg/mod/github.com/qor/admin@v0.0.0-20200908023436-0c0a0b041c88/route.go:37
2021-03-08T01:42:21.479408+00:00 app[web.1]: github.com/qor/admin.Admin.registerCompositePrimaryKeyCallback.func1(0xc0001a75e0, 0xc00083eae0)
2021-03-08T01:42:21.479409+00:00 app[web.1]: /tmp/codon/tmp/cache/go-path/pkg/mod/github.com/qor/admin@v0.0.0-20200908023436-0c0a0b041c88/composite_primary_key_callback.go:27 +0x25c
2021-03-08T01:42:21.479410+00:00 app[web.1]: github.com/qor/admin.(*serveMux).ServeHTTP(0xc00058efe0, 0xf822e0, 0xc00092a000, 0xc000554300)
2021-03-08T01:42:21.479410+00:00 app[web.1]: /tmp/codon/tmp/cache/go-path/pkg/mod/github.com/qor/admin@v0.0.0-20200908023436-0c0a0b041c88/route.go:267 +0x54e
2021-03-08T01:42:21.479411+00:00 app[web.1]: net/http.(*ServeMux).ServeHTTP(0xc000033680, 0x
Utku Çağlayan

Hi everyone! I have been trying to add a filter to a resource as:

    kw := r.admin.AddResource(kw_dictionary.KWDictionary{}, &admin.Config{
        Menu: []string{r.menu.KWDictionaryManagement},

        Name: "CreatedAt",
        Config: &admin.DatetimeConfig{
            ShowTime: true,

with model being:

type KWDictionary struct {

    Query    string `gorm:"not null"`
    ActionID uint
    Username string

gorm.Model contains the "CreatedAt" field as you know. Sadly it does not show on UI. Have you ever experienced this?

Utku Çağlayan
It worked out thanks anyway
Ayo Adesokan
Sounds good. just FYI, I got the heroku issues where admin wasnt loading resolved as well.
Filip Dimitrovski
Is this lib maintained? I see last release is released in 2019
Also the demo app link doesn't work

Hello everyone. I started learning QOR and ran into a popular problem. (windows10 go1.16.3)

2021.04.16 15:47:28 End [GET] / admin Took 3.00ms
2021/04/16 15:47:28 http: panic serve [:: 1]: 1541: runtime error: invalid memory address or null pointer dereference
goroutine 162 [works]:
network / http. (* conn) .serve.func1 (0xc00017e640)
        C: / Program Files / Go / src / net / http / server.go: 1824 + 0x153
panic (0x6b9b20, 0xa91020)
        C: / Program Files / Go / src / runtime / panic.go: 971 + 0x49a
html / template. (* Template) .escape (0x0, 0x0, 0x0)
        C: / Program Files / Go / src / html / template / template.go: 97 + 0x42
html / template. (* Template) .Execute (0x0, 0x803600, 0xc0002b80e0, 0x731e80, 0xc00017c770, 0x1, 0xc0000184b0)
        C: / Program Files / Go / src / html / template / template.go: 121 + 0x36
github.com/qor/admin.(*Context).Execute(0xc00017c770, 0x73af31, 0x9, 0x0, 0x0)
        C: /Users/ALEXANDR/go/pkg/mod/github.com/qor/admin@v0.0.0-20210414090151-e54abcf1b0ac/context.go: 229 + 0x22c
github.com/qor/admin. (* Controller). Control Panel (...)
        C: /Users/ALEXANDR/go/pkg/mod/github.com/qor/admin@v0.0.0-20210414090151-e54abcf1b0ac/controller.go: 28
        C: /Users/ALEXANDR/go/pkg/mod/github.com/qor/admin@v0.0.0-20210414090151-e54abcf1b0ac/route.go: 197 + 0x1f2
github.com/qor/admin.Middleware.Next (...)
        C: /Users/ALEXANDR/go/pkg/mod/github.com/qor/admin@v0.0.0-20210414090151-e54abcf1b0ac/route.go: 38
        C: /Users/ALEXANDR/go/pkg/mod/github.com/qor/admin@v0.0.0-20210414090151-e54abcf1b0ac/route.go: 187 + 0x122
github.com/qor/admin.Middleware.Next (...)
        C: /Users/ALEXANDR/go/pkg/mod/github.com/qor/admin@v0.0.0-20210414090151-e54abcf1b0ac/route.go: 38
        C: /Users/ALEXANDR/go/pkg/mod/github.com/qor/admin@v0.0.0-20210414090151-e54abcf1b0ac/composite_primary_key_callback.go: 27 + 0x25d
github.com/qor/admin.(*serveMux).ServeHTTP(0xc000007818, 0x80a6b0, 0xc0002b80e0, 0xc0005b2700)
        C: /Users/ALEXANDR/go/pkg/mod/github.com/qor/admin@v0.0.0-20210414090151-e54abcf1b0ac/route.go: 288 + 0x55a
net / http. (* ServeMux) .ServeHTTP (0xc000035200, 0x80a6b0, 0xc0002b80e0, 0xc0005b2700)
        C: / Program Files / Go / src / net / http / server.go: 2448 + 0x1b7
net / http.serverHandler.ServeHTTP (0xc0003a6000, 0x80a6b0, 0xc0002b80e0, 0xc0005b2700)
        C: / Program Files / Go / src / net / http / server.go: 2887 + 0xaa
network / http. (* conn) .serve (0xc00017e640, 0x80c1c0, 0xc000034740)
        C: / Program Files / Go / src / net / http / server.go: 1952 + 0x8cd
net / http is created. (* Server) .Serve
        C: / Program Files / Go / src / net / http / server.go: 3013 + 0x3b8

the problem is that or cannot find * .tmpl files.

I solved it in the following way:

  1. changed the line of code in the function in the file https://github.com/qor/admin/admin.go with

     func (admin * Admin) SetAssetFS (assetFS assetfs.Interface) {
         admin.AssetFS = assetFS
         globalAssetFSes = append (globalAssetFSes, assetFS)
         admin.AssetFS.RegisterPath (filepath.Join (utils.AppRoot, "app/views/qor"))
         admin.RegisterViewPath ("github.com/qor/admin/views")
         for _, viewPath: = range globalViewPaths {
             admin.RegisterViewPath (viewPath)

    the line
    admin.AssetFS.RegisterPath (filepath.Join (utils.AppRoot, "app/views/qor"))

    was replaced by the line
    admin.AssetFS.RegisterPath (filepath.Join (utils.AppRoot, "app/views/qor/admin"))

  2. created the directory "app/views/qor/admin" in the application directory

  3. put the files with the "admin" module templates into it

sorry for my english :)
translated with google

Sredny M.

Hello everyone! am having some issues hiding a column that I use to calculate a virtual field. In summary if I hide the field then the virtual field shows a wrong value. This is the situation:

I have a resource named Zoo that have many Animals, currently in the index view I can see all the animals that belongs to that Zoo. Now, I don't want to show the list and instead only show the number of animals, in order to do so I created a virtual field as next:

myZoo := admin_app.AddResource(&Zoo{}, &admin.Config{Menu: []string{"Zoos"}})
        Name: "AnimalsCount",
        Valuer: func(record interface{}, context *qor.Context) interface{} {
            z := record.(*Zoo)
            return strconv.Itoa(len(z.Animals))
        Setter: func(record interface{}, metaValue *resource.MetaValue, context *qor.Context) {
        FormattedValuer: func(record interface{}, context *qor.Context) (result interface{}) {
            z := record.(*Zoo)
            return strconv.Itoa(len(z.Animals))

At this point everything goes well and the count displayed is correct. Now, when I hide the Animals column the count goes everytime to zero:


I already tried the workaround proposed in the issue qor/qor#258 but still doesn't work.

I just want show the count, not the list.
Read the Codes
Qor Example still broken!!! can anyone help? qor/qor-example#181