Uncaught MongoCursorException
Closed this issue · 1 comments
Fatal error: Uncaught exception 'MongoCursorException' with message 'unauthorized db:admin lock type:-1 client:50.74.154.18' in C:\xampp\htdocs\phpmoadmin\moadmin.php:449 Stack trace: #0 C:\xampp\htdocs\phpmoadmin\moadmin.php(449): MongoDB->listCollections() #1 C:\xampp\htdocs\phpmoadmin\moadmin.php(806): moadminModel->listCollections() #2 C:\xampp\htdocs\phpmoadmin\moadmin.php(1976): moadminComponent->__construct() #3 {main} thrown in C:\xampp\htdocs\phpmoadmin\moadmin.php on line 449
Am running PHP 5.3.8 and using mongohq as my cloud host. You can test it with
define('MONGO_CONNECTION', 'mongodb://admin:admin@staff.mongohq.com:10042/Programs');
Reply from Jason McCay of MongoHQ:
Running a listCollections request should not throw an error. In looking at the example provided ... there is a chance that the user did not pass authentication to this database before attempting to view collections