beyondcode / herd-community

91 stars 1 forks source link

[Bug]: Class "MongoDB\Driver\Manager" not found #1104

Closed gizburdt closed 1 month ago

gizburdt commented 1 month ago

Platform

macOS

Operating system version

macOS Sonoma 14.5

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.11.1

PHP Version

8.3.12

Bug description

I added the MongoDB service in Herd. I was able to connect to it with Tableplus/Compass. But when I try to do Model::create(), I get Class "MongoDB\Driver\Manager" not found.

Sorry if this is a duplicate. I tried googling, but only found posts from before Herd integrated MongoDB. So not sure if I'm doing something wrong or it's a real bug.

-- edit --

Looks like I only get this error in Tinkerwell. When I try it in a controller it works like it should be

Steps to reproduce

Relevant log output

No response

mpociot commented 1 month ago

If you only get this error in Tinkerwell this could mean that you don't have the same PHP binary selected in Tinkerwell. Please double check that it's the one we ship with Herd, otherwise you might be missing the mongodb extension.