Smile-SA / mongogento

98 stars 48 forks source link

Fatal error: MongoInt32 class not found #31

Open satishsojitra opened 7 years ago

satishsojitra commented 7 years ago

I am getting following fatal error:

Fatal error: Class 'MongoInt32' not found in app\code\community\Smile\MongoCatalog\Model\Resource\Override\Catalog\Product\Collection.php on line 142

What can be the issue?

southerncomputer commented 7 years ago

This is because the mongoDB driver you are using is Newer than supported!, this class is not php7 compatible! There has been work to port it to php7 from someone here! It is not official..

MongoInt32 This extension that defines this class is deprecated. Instead, the MongoDB extension should be used. There is no equivalent for this class in the new extension.

romainruaud commented 7 years ago

Hello @satishsojitra , @southerncomputer is right, the module is untested against PHP 7 and we dot not plan to maintain such a feature.

The fork by @jdchmiel here added php7 compatibility : https://github.com/jdchmiel/mongogento/commits/master