- Status changed to Postponed: needs info
5 months ago 10:20am 12 February 2025 - 🇳🇱Netherlands daffie
@faheemakhtar, Could you tell me which version of Drupal you are using? The module currently only supports Drupal 11.1. My second question is: did you follow the instructions in the readme file? Did you apply the Drupal core patch? Without it it does not work.
BTW Thank you for trying out this module. The easiest way to reach me is on Drupal Slack.
- 🇮🇳India shashank5563 New Delhi
I am trying to install mongodb 3.1 in my current Drupal 11.6 project.
Current project is running with mysql db. I want integrate mongodb 3.1 module as well.
After installing module getting following error.PHP Fatal error: Uncaught Error: Call to undefined method Drupal\mysql\Driver\Database\mysql\Connection::getConnection() in /var/www/html/web/modules/contrib/mongodb/src/Driver/Database/mongodb/TableInformation.php:70
- 🇮🇳India shashank5563 New Delhi
#daffie,
Mongodb : 3.1
Drupal : 11.6Existing project
Issue Summary:
The MongoDB 3.1 module currently assumes that MongoDB will act as the primary database. This design leads to conflicts when trying to integrate it into a Drupal project that already uses MySQL (or any SQL-based system) — especially when upgrading from Drupal 10 to 11.
---
Problem Points You Noticed:
Module doesn't provide an option to use MongoDB alongside MySQL (hybrid setup).
Upgrading Drupal 10 to 11 forces you to recreate the site just to change DB.
Ability to register MongoDB as a secondary database in settings.php.
What You Can Do Right Now:
Provide hybrid DB support documentation.
Allow MongoDB to be added as a secondary connection, not primary.
Update README to clarify that it is not drop-in compatible with Existing project.
- 🇫🇷France fgm Paris, France
AIUI the goal of the v3 series of this module (at this point) is to have a completely No SQL fresh Drupal install.
Compatibility with previous versions or a mix of SQL and NoSQL is not a current goal. It is, however, provided by the 2.x series which, as a consequence only provides a limited amount of dedicated MongoDB services instead of the whole CMS like 3.x does.
- 🇮🇳India shashank5563 New Delhi
@fmg, 2.x series is not compatible with Drupal-11.
So, please make it Drupal-11 compatible.