yogiben / meteor-admin

A complete admin dashboard solution
https://atmospherejs.com/yogiben/admin
GNU General Public License v3.0
826 stars 261 forks source link

No data available in tables #294

Open rizkysyazuli opened 8 years ago

rizkysyazuli commented 8 years ago

It's been a while since i visit the admin section of my app. Suddenly i'm seeing empty tables. Even though I can see the data is being published and the widgets on the dashboard shows the correct count.

Any ideas? Here's the dev console output: screen shot 2015-10-21 at 4 09 14 pm

physicsteacher commented 8 years ago

I have the same issue. I can't see any of the objects in any collection including the users. I can add users but not objects to other collections.

mikeislearning commented 8 years ago

I have the same issue as well. It shows the document count in a collection, but that's it. No actual collection details, and I'm getting the same error as OP.

merlinstardust commented 8 years ago

I have a similar issue as well. Though a slightly different stack trace (copied below). This is from when I attempted to access the Users collection. I'm using Meteor 1.2.0.2

TypeError: Cannot convert undefined or null to object
at hasOwnProperty (native)
at Function._.has (http://localhost:3000/packages/underscore.js?fa590de5090ceb4a42555b48562fd8f8e7035758:1124:27)
at Object.Blaze._lexicalBindingLookup (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:3060:11)
at Blaze.View.lookup (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:3134:36)
at Blaze.View.lookup (http://localhost:3000/packages/iron_dynamic-template.js?ee3a82d9513d6672d735cd269e5a228a8adb9247:777:23)
at Template.adminUsersIsAdmin.Blaze.If.HTML.I.class (http://localhost:3000/packages/yogiben_admin.js?b9ccd2d5fdb467996d0b508819c17a741fdeb92a:1050:40)
at null.<anonymous> (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:2682:44)
at http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:1880:20
at Function.Template._withTemplateInstanceFunc (http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:3679:12)
at http://localhost:3000/packages/blaze.js?695c7798b7f4eebed3f8ce0cbb17c21748ff8ba8:1878:29 undefined

It seems that the above error only occurs when I access Users. When I access the other collections, I get the same error as the OP.

merlinstardust commented 8 years ago

So, a quick fix, is to add showDelColumn: true to every collection configuration.

This is by no means a permanent fix, unless you plan to never delete anything.

physicsteacher commented 8 years ago

That quick fix made no difference for me.

physicsteacher commented 8 years ago

Ok so I added showDelColumn: false to my collection config and now the data is showing! Not sure how or why.

merlinstardust commented 8 years ago

It's because the error has to do with delete buttons. By stopping them from being shown, the error can't occur

physicsteacher commented 8 years ago

Ok. How did you configure your user collection. I tried:

userSchema: { showDelColumn: false, },

but my app starts crashing.

mikeislearning commented 8 years ago

I remove this package and installed Houston - everything worked perfectly right away. I highly recommend it.

RamEduard commented 8 years ago

I can't remove this package... i did: userSchema: { showDelColumn: false, }, but the error is same...

Please fix this issue...

kedare commented 8 years ago

Same issue here.

PR #289 fix this.

physicsteacher commented 8 years ago

I fixed this in my app, first go to https://github.com/CaptainN/meteor-admin fork it to your git account and clone this to your desktop but save it in the Packages folder of your app (create a packages folder if you don't have one). In the package.js file I had to change the 'name: yogiben:admin' to 'name: physicsteacher:admin' and then run meteor add physicsteacher:admin.

jamc92 commented 8 years ago

+1

vicesalles commented 8 years ago

Same for me

jessaimaya commented 8 years ago

+1

ChristBKK commented 8 years ago

+1