tiaguinho / mongodb-cakephp3

An Mongodb datasource for CakePHP 3.0
MIT License
28 stars 29 forks source link

Error: Class 'Mongo' not found #4

Closed kawaiidesune closed 8 years ago

kawaiidesune commented 8 years ago

So, when I went to implement this plugin, I got this error message in CakePHP...

Error: Class 'Mongo' not found 
File /var/www/llamacast/vendor/hayko/mongodb/src/Database/Connection.php 
Line: 112

I find it peculiar because on line 112 of /src/Database/Connection.php, it is a new instance of Mongodb being instantiated, not "Mongo". 😖

tiaguinho commented 8 years ago

which version of mongo drive do you use?

shraddhabanerjee commented 7 years ago

Hi @tiaguinho,

I am getting the following error

Class '\MongoDB' not found Error Documentation API Error in: ROOT/vendor/hayko/mongodb/src/Database/Driver/Mongodb.php, line 152

If you want to customize this error message, create src/Template/Error/error500.ctp toggle vendor stack frames

⟩ Hayko\Mongodb\Database\Driver\Mongodb->connect ROOT/vendor/hayko/mongodb/src/Database/Connection.php, line 126

MongoDB shell version: 3.2.15 CakePHP 3

Kindly request you yo help in this issue.