I've a Vagrant setup with Mongo and PHP within, but any time I try to run a simple insert into a Mongo collection, I get the above error,
Uncaught exception 'MongoException' with message 'size of BSON doc is 210 bytes, max is 0'
The actual code is
$mongo = new Mongo();
$mongo->newdb->drop();
$db = $mongo->newdb;
$collection = $db->newcollection;
$collection->insert(array ( "_id" => new MongoId("4ec1019f87484465ae4d777e"), "id" => 1));
There's nearly no info about this error online, and near all my Vagrant setup is what's stated online to work. Anybody with an idea why it fails?