composer安装mongodb出错

问题描述 投票:0回答:0

我正在尝试在 WordPress 网站内实现 divi 自定义模块,使用 divi 构建。目前,我使用Local(localwp)作为本地开发的一种方式。自定义模块将用于从 MongoDB 获取数据并显示所有数据(对于熟悉 divi 的人来说,类似于博客文章模块)。然而,在将 MongoDB 与 PHP 集成时,我遇到了一些严重的问题。起初,我忘记包含供应商的 autoload.php 文件,但现在,问题似乎有所不同。

这是错误的完整日志:

致命错误:未捕获错误:在 C:\Users\qhuser\Local Sites\wordpress-with-react pp\public\wp-content\plugins est endor\mongodb\mongodb\ 中找不到类“MongoDB\Driver\Manager” src\Client.php:118 堆栈跟踪: #0 C:\Users\qhuser\Local Sites\wordpress-with-react pp\public\wp-content\plugins est\includes\modules\Exams\Exams.php(55 ): MongoDB\Client->__construct('mongodb://produ...') #1 C:\Users\qhuser\Local Sites\wordpress-with-react pp\public\wp-content\plugins est\includes \modules\Exams\Exams.php(39): Exams->get_mongodb_data() #2 C:\Users\qhuser\Local Sites\wordpress-with-react pp\public\wp-content hemes\Divi\includes uilde

php wordpress mongodb composer-php php-mongodb
© www.soinside.com 2019 - 2024. All rights reserved.