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

mongodb use on heroku php nginx error #515

Closed
tidus30691nexus5 opened this issue Sep 29, 2017 · 2 comments
Closed

mongodb use on heroku php nginx error #515

tidus30691nexus5 opened this issue Sep 29, 2017 · 2 comments

Comments

@tidus30691nexus5
Copy link

Configuration:

PhpFastCache version: 6.0.4
PHP version: 7.1.9
Operating system: 1.8.1

Issue description:

alway not found class mongodb
error mongodb

am ready installed lib mongodb 1.2.10
please help me fix problem.

@Geolim4
Copy link
Member

Geolim4 commented Sep 29, 2017

Hello,

Installing mongodb server is not enough, did you installed the composer dependency too ?
See:

"mongodb/mongodb": "^1.1",

But you right, there's nothing about this in Wiki, I just added a mention for this change:
https://github.com/PHPSocialNetwork/phpfastcache/wiki/%5BV5%CB%96%5D-Migrating-your-code-to-the-V6#third-party-libraries-are-no-longer-required

Also, the driverCheck() method were inefficient, I'm gonna push a fix about this line:

return extension_loaded('Mongodb');

This part of code still relies on the Mongo Extension :(

Cheers,
Georges.L

@Geolim4
Copy link
Member

Geolim4 commented Sep 29, 2017

A commit has been added, tests are pending :)

@Geolim4 Geolim4 self-assigned this Sep 29, 2017
@Geolim4 Geolim4 added this to To be tested in V6 Roadmap Sep 29, 2017
@Geolim4 Geolim4 added this to the 6.0.6 milestone Sep 29, 2017
Geolim4 added a commit that referenced this issue Sep 29, 2017
Fixed #515 // Fixed inefficient Mongodb::driverCheck() method
@Geolim4 Geolim4 moved this from To be tested to Fixed in V6 Roadmap Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
V6 Roadmap
  
Done
Development

No branches or pull requests

2 participants