Home Forums Extensions Office 365 Fatal Error after granting persmission to O365

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #60207
    Ray BaileyRay Bailey
    Participant

    Sorry, I posted this a WP.com first. I have configured the API and after I go through he steps to Grant Office 365 Permissions I get the following error:

    Fatal error: Uncaught Exception: cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
    in E:\Websites\StreetToFreedom\wp-content\plugins\post-smtp-extension-office365\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 186

    Call stack:

    GuzzleHttp\H\CurlFactory::createRejection()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:149
    GuzzleHttp\H\CurlFactory::finishError()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:102
    GuzzleHttp\H\CurlFactory::finish()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php:43
    GuzzleHttp\H\CurlHandler::__invoke()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:28
    GuzzleHttp\H\Proxy::GuzzleHttp\H\{closure}()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php:51
    GuzzleHttp\H\Proxy::GuzzleHttp\H\{closure}()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php:66
    GuzzleHttp\PrepareBodyMiddleware::__invoke()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Middleware.php:30
    GuzzleHttp\Middleware::GuzzleHttp\{closure}()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php:70
    GuzzleHttp\RedirectMiddleware::__invoke()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Middleware.php:60
    GuzzleHttp\Middleware::GuzzleHttp\{closure}()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/HandlerStack.php:67
    GuzzleHttp\HandlerStack::__invoke()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Client.php:277
    GuzzleHttp\Client::transfer()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Client.php:99
    GuzzleHttp\Client::sendAsync()
    wp-content/plugins/post-smtp-extension-office365/vendor/guzzlehttp/guzzle/src/Client.php:106
    GuzzleHttp\Client::send()
    wp-content/plugins/post-smtp-extension-office365/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:608
    League\O\C\P\AbstractProvider::getResponse()
    wp-content/plugins/post-smtp-extension-office365/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:621
    League\O\C\P\AbstractProvider::getParsedResponse()
    wp-content/plugins/post-smtp-extension-office365/vendor/league/oauth2-client/src/Provider/AbstractProvider.php:537
    League\O\C\P\AbstractProvider::getAccessToken()
    wp-content/plugins/post-smtp-extension-office365/plugin.php:85
    Post_Smtp_Office365::handle_oauth()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:484
    do_action()
    wp-content/plugins/post-smtp/Postman/PostmanAdminController.php:133
    PostmanAdminController::__construct()
    wp-content/plugins/post-smtp/Postman/Postman.php:280
    Postman::setup_admin()
    wp-content/plugins/post-smtp/Postman/Postman.php:206
    Postman::on_plugins_loaded()
    wp-includes/class-wp-hook.php:287
    WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:311
    WP_Hook::do_action()
    wp-includes/plugin.php:484
    do_action()
    wp-settings.php:420
    require_once()
    wp-config.php:92
    require_once()
    wp-load.php:37
    require_once()
    wp-admin/admin.php:34
    require_once()
    wp-admin/index.php:10

    #60219
    Tim NevilleTim
    Moderator

    Hi Ray,

    There is a problem with your hosting server, please contact your provider and ask them to check the servers certificate. cURL is making a certificate check and failing.

    Kind Regards,
    Tim

    #60228
    Ray BaileyRay Bailey
    Participant

    I host my own server. What do I need to look at? It is hosted on a Windows 2016 and IIS. It has a valid cert issued by CertifyTheWeb.

    #60231
    Tim NevilleTim
    Moderator

    Hi Ray,

    I had this with a user the other week. I actually asked the developer Yehuda about it, as he is more clued up on that than me.

    The specific error that you got, looking at the docs relates to:
    The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK. This error code has been unified with CURLE_SSL_CACERT since 7.62.0. Its previous value was 51.

    This is a different certificate than your public HTTPS certificate from CertifyTheWeb.

    In some cases, it may be that you are missing a CA certificate installed on your server – so installing/re-installing that might help.

    If you could also share your site’s URL with us that’d be great. If you want to keep this private, you can mark the reply as ‘private’ and it is only visible to myself, you, and the developer/creator Yehuda.

    Thanks.

    Kind Regards,
    Tim

    #60237
    Tim NevilleTim
    Moderator
    #60243
    Ray BaileyRay Bailey
    Participant

    That fixed the issue. Thanks!

    Home

    It is just a template at the moment though 🙂

    #60246
    Tim NevilleTim
    Moderator

    Hi Ray,

    Thanks for confirming this issue is resolved. Could I ask what you did to fix the problem? Any information you provide could be massively valuable and helpful to others in the future too.

    Site is looking good already, thanks for sharing! 🙂

    Kind Regards,
    Tim

    #60256
    Ray BaileyRay Bailey
    Participant

    I put the file downloaded from https://curl.haxx.se/ca/cacert.pem into C:\Program Files\PHP\v7.2\extras\ssl and edited the php.ini file and put curl.cainfo = C:\Program Files\PHP\v7.2\extras\ssl\cacert.pem

    You then need to run iisreset from an elevated command prompt.

    #60342
    Tim NevilleTim
    Moderator

    Thanks for feeding back Ray, that’s helpful!

    Kind Regards,
    Tim

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Scroll to Top