mongogento icon indicating copy to clipboard operation
mongogento copied to clipboard

Could not convert BSON document to a PHP variable

Open aftabnaveed opened this issue 8 years ago • 0 comments

When reading a collection of 250k products I get the following error, any idea why am I getting it?


Fatal error: Uncaught exception 'MongoDB\Driver\Exception\UnexpectedValueException' with message 'Could not convert BSON document to a PHP variable' in /srv/dd/www/app/code/community/Smile/MongoCatalog/Model/Resource/Override/Catalog/Product/Collection.php:153
Stack trace:
#0 /srv/dd/www/app/code/community/Smile/MongoCatalog/Model/Resource/Override/Catalog/Product/Collection.php(153): MongoDB\Driver\Cursor->next()
#1 /srv/dd/www/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php(874): Smile_MongoCatalog_Model_Resource_Override_Catalog_Product_Collection->_loadAttributes()
#2 /srv/dd/www/lib/Varien/Data/Collection.php(741): Mage_Eav_Model_Entity_Collection_Abstract->load()
#3 /srv/dd/www/shell/product-without-category.php(21): Varien_Data_Collection->getIterator()
#4 /srv/dd/www/shell/product-without-category.php(60): Mage_Shell_ProductWithoutCategory->run()
#5 {main}

aftabnaveed avatar Jul 27 '16 16:07 aftabnaveed