- Issue created by @Remya.P
- Status changed to Postponed: needs info
about 1 year ago 10:23am 9 October 2023 - 🇫🇷France fgm Paris, France
The namespace eri_mongo does not belong to this module. Is this your custom code ? Or are you using some specific third-party package ? I can not find eri_mongo on drupal.org.
- 🇫🇷France fgm Paris, France
Without an answer from you, I can only hazard three hypotheses, in order of decreasing likelihood.
- The code in the
eri_mongo
has a bug, trying to insert documents in a collection info instead of a collection. - The site uses that
eri_mongo
module, was not installed with Composer and the non-Composer install missed installing the MongoDB PHP library (that missing class is from the MongoDB PHP library, not the MongoDB module suite - That
eri_mongo
module is missing the declaration of the dependency on the MongoDB PHP library, or even missing acomposer.json
altogether
Note that all three may actually be present.
Since none of these seem to be related to the MongoDB module suite, I shall be closing this issue unless you provide more information.
- The code in the
- 🇫🇷France fgm Paris, France
OK, so the issue is in that module: the bug is that the code at that line is trying to use
insertOne
on the wrong object: it is using theCollectionInfo
instead of theCollection
.You can look at the way to insert documents in
mongodb/modules/mongodb_storage/src/Queue/Queue.php::createItem();
. - Status changed to Fixed
about 1 year ago 10:23am 25 October 2023 - 🇫🇷France fgm Paris, France
No answer over 1 week later, assuming fixed. Feel free to reopen if you need more help.
Automatically closed - issue fixed for 2 weeks with no activity.