Warning: include(../../../htpasswd/mongodb.inc): Failed to open stream: No such file or directory in /home/course/u31/public_html/submissions/submission05/scripts/get_quote_from_mongodb.php on line 7
Warning: include(): Failed opening '../../../htpasswd/mongodb.inc' for inclusion (include_path='.:/usr/share/php') in /home/course/u31/public_html/submissions/submission05/scripts/get_quote_from_mongodb.php on line 7
Warning: Undefined variable $username in /home/course/u31/public_html/submissions/submission05/scripts/get_quote_from_mongodb.php on line 10
Warning: Undefined variable $password in /home/course/u31/public_html/submissions/submission05/scripts/get_quote_from_mongodb.php on line 10
Fatal error: Uncaught MongoDB\Driver\Exception\InvalidArgumentException: Failed to parse MongoDB URI: 'mongodb://:@localhost/u31'. Default authentication mechanism requires username. in /var/shared/vendor/mongodb/mongodb/src/Client.php:107
Stack trace:
#0 /var/shared/vendor/mongodb/mongodb/src/Client.php(107): MongoDB\Driver\Manager->__construct()
#1 /home/course/u31/public_html/submissions/submission05/scripts/get_quote_from_mongodb.php(10): MongoDB\Client->__construct()
#2 /home/course/u31/public_html/submissions/submission05/scripts/get_quote_from_mongodb.php(66): create_quote_today()
#3 /home/course/u31/public_html/submissions/submission05/common/banner.php(43): include('...')
#4 /home/course/u31/public_html/submissions/submission05/pages/vision.php(10): include_once('...')
#5 {main}
thrown in /var/shared/vendor/mongodb/mongodb/src/Client.php on line 107