Mavykins
Mavykins

Reputation: 61

Attempted to load interface "CommandSubscriber" from namespace "MongoDB\Driver\Monitoring"

I have Symfony 5 project and just following the instructions to install the DoctrineMongoDBBundle package, and I'm receiving te following error,

Attempted to load interface "CommandSubscriber" from namespace "MongoDB\Driver\Monitoring". Did you forget a "use" statement for another namespace?

/vendor/doctrine/mongodb-odm/lib/Doctrine/ODM/MongoDB/APM/CommandLoggerInterface.php (line 9)

I have the following versions of mongodb and doctrine running.

Also the php driver installed through Pecl (Version 1.7.4)

Anyone got any ideas to what I'm missing?

Upvotes: 0

Views: 1208

Answers (1)

Mavykins
Mavykins

Reputation: 61

If it helps anyone in the future, whilst the MongoDB Driver was installed, I needed to restart PHP FPM, that fixed it.

Upvotes: 5

Related Questions