julien-c / Circular

An open source Buffer app clone
http://circular.io
MIT License
1.03k stars 193 forks source link

My Circular is unable to pull from Mongo. See screenshot of error. #49

Closed dhilowitz closed 9 years ago

dhilowitz commented 9 years ago

I set Circular up exactly the way the readme described. Unfortunately, I'm getting this error when I get to the main dashboard.

screen shot 2015-02-28 at 1 27 08 pm

I looked in Mongo, and it looks like collections are being created.

dhilowitz commented 9 years ago

The issue is related to this: https://jira.mongodb.org/browse/PHP-1051

We just need to surround $app['account']['users'] with array_values():

$m->circular->posts->remove(array(
    '_id'      => new MongoId($id),
    'user._id' => array('$in' => array_values($app['account']['users']))
));
julien-c commented 9 years ago

@dhilowitz Do you mind opening a Pull request?

dhilowitz commented 9 years ago

I've created a pull request. (It's issue #59)