meteor-admin icon indicating copy to clipboard operation
meteor-admin copied to clipboard

No data available in tables

Open rizkysyazuli opened this issue 10 years ago • 16 comments

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

rizkysyazuli avatar Oct 21 '15 09:10 rizkysyazuli

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.

physicsteacher avatar Oct 23 '15 02:10 physicsteacher

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.

mikeislearning avatar Oct 24 '15 17:10 mikeislearning

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 avatar Oct 26 '15 22:10 merlinstardust

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.

merlinstardust avatar Oct 26 '15 22:10 merlinstardust

That quick fix made no difference for me.

physicsteacher avatar Oct 27 '15 02:10 physicsteacher

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

physicsteacher avatar Oct 27 '15 20:10 physicsteacher

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

merlinstardust avatar Oct 27 '15 20:10 merlinstardust

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

userSchema: { showDelColumn: false, },

but my app starts crashing.

physicsteacher avatar Oct 27 '15 23:10 physicsteacher

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

mikeislearning avatar Oct 27 '15 23:10 mikeislearning

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

Please fix this issue...

RamEduard avatar Oct 28 '15 22:10 RamEduard

Same issue here.

PR #289 fix this.

kedare avatar Oct 31 '15 18:10 kedare

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.

physicsteacher avatar Oct 31 '15 22:10 physicsteacher

+1

jamc92 avatar Nov 02 '15 00:11 jamc92

Same for me

vicesalles avatar Nov 28 '15 12:11 vicesalles

+1

jessaimaya avatar Dec 08 '15 18:12 jessaimaya

+1

ChristBKK avatar Jan 25 '16 23:01 ChristBKK