Warning: Undefined array key "course" in /var/www/html/wp-content/themes/ewaste-v2/template-e-learning-course-details.php on line 25

Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 60: SSL certificate problem: self-signed certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:201 Stack trace: #0 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #3 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\Handler\CurlHandler->__invoke(Object(GuzzleHttp\Psr7\Request), Array) #4 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array) #5 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): GuzzleHttp\Handler\Proxy::GuzzleHttp\Handler\{closure}(Object(GuzzleHttp\Psr7\Request), Array) #6 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Middleware.php(29): GuzzleHttp\PrepareBodyMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array) #7 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array) #8 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Middleware.php(59): GuzzleHttp\RedirectMiddleware->__invoke(Object(GuzzleHttp\Psr7\Request), Array) #9 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/HandlerStack.php(71): GuzzleHttp\Middleware::GuzzleHttp\{closure}(Object(GuzzleHttp\Psr7\Request), Array) #10 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Client.php(351): GuzzleHttp\HandlerStack->__invoke(Object(GuzzleHttp\Psr7\Request), Array) #11 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Client.php(162): GuzzleHttp\Client->transfer(Object(GuzzleHttp\Psr7\Request), Array) #12 /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Client.php(182): GuzzleHttp\Client->requestAsync('POST', Object(GuzzleHttp\Psr7\Uri), Array) #13 /var/www/html/wp-content/themes/ewaste-v2/api-clients/moodleClient.php(59): GuzzleHttp\Client->request('POST', 'https://e-learn...', Array) #14 /var/www/html/wp-content/themes/ewaste-v2/api-clients/moodleClient.php(82): Netpulse\Api\Client\MoodleClient->getCoursesByField('', 'shortname') #15 /var/www/html/wp-content/themes/ewaste-v2/template-e-learning-course-details.php(26): Netpulse\Api\Client\MoodleClient->getCourseByField('') #16 /var/www/html/wp-includes/template-loader.php(106): include('/var/www/html/w...') #17 /var/www/html/wp-blog-header.php(19): require_once('/var/www/html/w...') #18 /var/www/html/index.php(17): require('/var/www/html/w...') #19 {main} thrown in /var/www/html/wp-content/themes/ewaste-v2/api-clients/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 201