Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class '\MongoDB' not found #17

Open
shraddhabanerjee opened this issue Jul 25, 2017 · 5 comments
Open

Class '\MongoDB' not found #17

shraddhabanerjee opened this issue Jul 25, 2017 · 5 comments

Comments

@shraddhabanerjee
Copy link

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
Copy link
Owner

What is the version of the driver?

@angelxmoreno
Copy link

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

@shraddhabanerjee
Copy link
Author

shraddhabanerjee commented Jul 26, 2017

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
Copy link

benoitkopp commented Oct 16, 2017

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
Copy link

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants