鍍金池/ 問答/PHP  數(shù)據(jù)庫/ PHP7 MongoDB Invalid reply to find comma

PHP7 MongoDB Invalid reply to find command

錯(cuò)誤信息:

PHP Fatal error: Uncaught MongoDB\\Driver\\Exception\\RuntimeException: Invalid reply to find command. in .../library/MongoDB/Operation/Find.php:299
Stack trace:
#0 .../library/MongoDB/Operation/Find.php(299): MongoDB\\Driver\\Server->executeQuery('crm.t_accountin...', Object(MongoDB\\Driver\\Query), Array)
#1 .../library/MongoDB/Operation/FindOne.php(126): MongoDB\\Operation\\Find->execute(Object(MongoDB\\Driver\\Server))
#2 .../library/MongoDB/Collection.php(657): MongoDB\\Operation\\FindOne->execute(Object(MongoDB\\Driver\\Server))
#3 .../Mongo.php(211): MongoDB\\Collection->findOne(Array, Array)
#4 xxx.php(315): xxx->fetchRow('xxx...', Array, 'xxx...')
#5 xxx.php(220): xxx->fetchR in xxx/library/MongoDB/Operation/Find.php on line 299

網(wǎng)上有些說這個(gè)問題在 1.2 版本中已經(jīng)修復(fù)了:https://jira.mongodb.org/brow...
https://github.com/mongodb/mo...

但是我的擴(kuò)展和操作庫都是最新的

語法是根據(jù)文檔來的

而且同樣寫法的其它位置沒有報(bào)錯(cuò)

回答
編輯回答
影魅

似乎是開啟了多個(gè)操作的原因

2017年9月21日 00:44