1

I get an error after enabling mongodb module in Drupal 8. I am using Drupal 8.1.3 and MongoDB 8.x-1.x-dev.

I get the following error:

Argument 1 passed to Drupal\\mongodb\\MongoCollectionFactory::__construct() must be of the type array, object given, called in /var/www/html/d/core/lib/Drupal/Component/DependencyInjection/Container.php on line 268 and defined in /var/www/html/d/modules/contrib/mongodb/src/MongoCollectionFactory.php on line 48, referer: http://localhost/d/admin/modules

I followed all the steps in README.txt. What is causing the error?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.