tiaguinho / mongodb-cakephp3

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

Class '\MongoDB' not found #17

Open shraddhabanerjee opened 7 years ago

shraddhabanerjee commented 7 years ago

Hi @tiaguinho,

I have installed PHP 5.6 Mongo 3 Cakephp 3

I am getting the following error : Error: Class '\MongoDB' not found File /var/www/caketest/vendor/hayko/mongodb/src/Database/Driver/Mongodb.php Line: 152

Thanks, Shraddha

tiaguinho commented 7 years ago

What is the version of the driver?

angelxmoreno commented 7 years ago

@shraddhabanerjee create a php file with <?php phpinfo(); ?> and see the version there

shraddhabanerjee commented 7 years ago

Hi @tiaguinho & @angelxmoreno Thanks for the reply. In php.ini file: mongo Version | 1.6.14 But when I type mongod --version on console it shows 3.2.15

benoitkopp commented 7 years ago

Hey, i have the same problem. Any ideas ?

mongodb extension version: 1.3.0 CakePHP 3 MongoDB 3.4

home.ctp render error:

Error: Class '\MongoDB' not found File C:\wamp64\www\project_name\vendor\hayko\mongodb\src\Database\Driver\Mongodb.php Line: 152

Priyanka-Mandhan commented 6 years ago

Hi @tiaguinho. mongodb extension version: 1.3.4 CakePHP 3 MongoDB 3.6

home.ctp render error:

Error: Class '\MongoDB' not found vendor\hayko\mongodb\src\Database\Driver\Mongodb.php Line: 152

Please provide us the feedback for new php driver "mongodb". All classes has been changed in new driver.

Thanks in advance :)