Created on 9 May 2025, 29 days ago

Problem/Motivation

I tried to install the MongoDB module with a vanilla Drupal project for making sure, that no individual setup conflicts with the MongoDB setup. I got errors and broke this vanilla Drupal project.

Steps to reproduce

Create a vanilla Drupal project (only core, not CMS) via DDEV:

  1. mkdir my-drupal-site && cd my-drupal-site
  2. ddev config --project-type=drupal11 --docroot=web
  3. ddev start
  4. ddev composer create drupal/recommended-project:^11
  5. ddev composer require drush/drush
  6. ddev drush site:install --account-name=admin --account-pass=admin -y

Add the MongoDB DDEV extension (see https://github.com/ddev/ddev-mongo):

  1. ddev add-on get ddev/ddev-mongo
  2. ddev restart

Install the MongoDB Drupal Modul:

  1. composer require 'drupal/mongodb:^3.1'
  2. ddev drush en mongodb

Afterwards the Drush console shows the following error:

➜ drupal-11 d drush en mongodb -y
[error] Error: Call to undefined method Drupal\menu_link_content\MenuLinkContentStorage::getJsonStorageCurrentRevisionTable() in Drupal\mongodb\EntityQuery\Condition->addConditions() (line 284 of /var/www/html/web/modules/contrib/mongodb/src/EntityQuery/Condition.php) #0 /var/www/html/web/modules/contrib/mongodb/src/EntityQuery/Condition.php(51): Drupal\mongodb\EntityQuery\Condition->addConditions()

If I like to sign-in via /user/login to my Drupal site, I get the following error:

The website encountered an unexpected error. Try again later.

Error: Call to undefined method Drupal\Core\Entity\Sql\SqlContentEntityStorage::getJsonStorageCurrentRevisionTable() in Drupal\mongodb\EntityQuery\Condition->addConditions() (line 284 of modules/contrib/mongodb/src/EntityQuery/Condition.php).

🐛 Bug report
Status

Active

Version

3.1

Component

Miscellaneous

Created by

🇩🇪Germany Peter Majmesku 🇩🇪Düsseldorf

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024