• Hi, I am getting the HTTP 500 error on a new site I launched when attempting to grant for G Suite account, current website forms using this is also not working (contact form 7 just keeps spinning with no errors). This started to happen on the latest update. Nothing in Apache error logs either, which is rather strange. This happens with this call with granting: /options-general.php?page=gmail-smtp-settings&action=oauth_grant&code=********************#

    Environment info:
    PHP version: 5.6.99-hhvm
    WordPress version: 4.8.1
    WordPress multisite: Yes
    openssl: Available
    allow_url_fopen: Enabled
    stream_socket_client: Available
    fsockopen: Available
    cURL: Available
    cURL Version: 7.30.0, OpenSSL/1.0.0

    WP Error log:
    Fatal error: Uncaught exception 'GuzzleHttp\\Exception\\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)' in /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187\nStack trace:\n#0 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(150): GuzzleHttp\\Handler\\CurlFactory::createRejection()\n#1 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(103): GuzzleHttp\\Handler\\CurlFactory::finishError()\n#2 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\\Handler\\CurlFactory::finish()\n#3 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\\Handler\\CurlHandler->__invoke()\n#4 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): Closure$GuzzleHttp\\Handler\\Proxy::wrapSync()\n#5 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): Closure$GuzzleHttp\\Handler\\Proxy::wrapStreaming()\n#6 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\\PrepareBodyMiddleware->__invoke()\n#7 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): Closure$GuzzleHttp\\Middleware::cookies#2()\n#8 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Middleware.php(57): GuzzleHttp\\RedirectMiddleware->__invoke()\n#9 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): Closure$GuzzleHttp\\Middleware::httpErrors#2()\n#10 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\\HandlerStack->__invoke()\n#11 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Client.php(100): GuzzleHttp\\Client->transfer()\n#12 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Client.php(106): GuzzleHttp\\Client->sendAsync()\n#13 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php(34): GuzzleHttp\\Client->send()\n#14 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/google/auth/src/OAuth2.php(492): Google\\Auth\\HttpHandler\\Guzzle6HttpHandler->__invoke()\n#15 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php(191): Google\\Auth\\OAuth2->fetchAuthToken()\n#16 /home/******/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php(170): Google_Client->fetchAccessTokenWithAuthCode()\n#17 /home/******/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(99): Google_Client->authenticate()\n#18 /home/******/public_html/wp-content/plugins/gmail-smtp/main.php(144): GmailXOAuth2::resetCredentials()\n#19 /home/******/public_html/wp-includes/class-wp-hook.php(298): GMAIL_SMTP->plugin_init()\n#20 /home/******/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters()\n#21 /home/******/public_html/wp-includes/plugin.php(453): WP_Hook->do_action()\n#22 /home/******/public_html/wp-settings.php(448): do_action()\n#23 /home/******/public_html/wp-config.php(105): include()\n#24 /home/******/public_html/wp-load.php(37): include()\n#25 /home/******/public_html/wp-admin/admin.php(31): include()\n#26 /home/******/public_html/wp-admin/options-general.php(10): include()\n#27 {main}

    All sites have a valid CA, error occurs even if I check “Disable SSL Certificate Verification”

    Your assistance is greatly appreciated, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter aedelgod

    (@aedelgod)

    Update:
    I have tried the following with no success, these suggestions from these articles throw 500 error on every website page that had the plugin enabled:
    https://flwebsites.biz/posts/how-fix-curl-error-60-ssl-issue
    https://github.com/google/google-api-php-client/issues/788
    https://noorsplugin.com/how-to-fix-curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate/

    Clean error with call stack for easier viewing:

    Fatal error: Uncaught exception 'GuzzleHttp\\Exception\\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)' in /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187
    
    Stack Trace:
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(150): GuzzleHttp\\Handler\\CurlFactory::createRejection()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(103): GuzzleHttp\\Handler\\CurlFactory::finishError()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\\Handler\\CurlFactory::finish()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\\Handler\\CurlHandler->__invoke()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): Closure$GuzzleHttp\\Handler\\Proxy::wrapSync()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): Closure$GuzzleHttp\\Handler\\Proxy::wrapStreaming()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\\PrepareBodyMiddleware->__invoke()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): Closure$GuzzleHttp\\Middleware::cookies#2()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Middleware.php(57): GuzzleHttp\\RedirectMiddleware->__invoke()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): Closure$GuzzleHttp\\Middleware::httpErrors#2()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\\HandlerStack->__invoke()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Client.php(100): GuzzleHttp\\Client->transfer()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Client.php(106): GuzzleHttp\\Client->sendAsync()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php(34): GuzzleHttp\\Client->send()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/google/auth/src/OAuth2.php(492): Google\\Auth\\HttpHandler\\Guzzle6HttpHandler->__invoke()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php(191): Google\\Auth\\OAuth2->fetchAuthToken()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php(170): Google_Client->fetchAccessTokenWithAuthCode()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(99): Google_Client->authenticate()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/main.php(144): GmailXOAuth2::resetCredentials()
    
    /home/***/public_html/wp-includes/class-wp-hook.php(298): GMAIL_SMTP->plugin_init()
    
    /home/***/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters()
    
    /home/***/public_html/wp-includes/plugin.php(453): WP_Hook->do_action()
    
    /home/***/public_html/wp-settings.php(448): do_action()
    
    /home/***/public_html/wp-config.php(105): include()
    
    /home/***/public_html/wp-load.php(37): include()
    
    /home/***/public_html/wp-admin/admin.php(31): include()
    
    /home/***/public_html/wp-admin/options-general.php(10): include()

    Thanks.

    Setting it to:
    $conf[CURLOPT_SSL_VERIFYPEER] = false;
    in CurlFactory.php

    did work but I don’t like that solution for obvious reasons.

    • This reply was modified 7 years, 3 months ago by aedelgod.
    • This reply was modified 7 years, 3 months ago by aedelgod. Reason: added file name of change
    Thread Starter aedelgod

    (@aedelgod)

    Update:
    Changing the configuration to:
    $conf[CURLOPT_SSL_VERIFYPEER] = false;
    in CurlFactory.php

    allows it to work but this is not a valid solution.

    I have followed the rabbit hole with your previous replies to similar issues but none of them works for me. The following articles also did not help, it actually made matters worse:
    https://flwebsites.biz/posts/how-fix-curl-error-60-ssl-issue
    https://noorsplugin.com/how-to-fix-curl-error-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate/
    https://stackoverflow.com/questions/21114371/php-curl-error-code-60

    All the sites that use this have valid CA certs from Comodo or Let’s encrypt so we can rule out the actual cert and configuration of the cert out. It certainly resides in the compatibility of GuzzleHttp and the plugin/server. I am in talks with my hosting provider but prior to the update, everything was working fine. What Google API PHP client version were you using before in 1.1.3/1.1.4? Thanks.

    Cleaner Stack:

    Fatal error: Uncaught exception 'GuzzleHttp\\Exception\\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see https://curl.haxx.se/libcurl/c/libcurl-errors.html)' in /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:187
    
    Stack Trace:
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(150): GuzzleHttp\\Handler\\CurlFactory::createRejection()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(103): GuzzleHttp\\Handler\\CurlFactory::finishError()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\\Handler\\CurlFactory::finish()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(28): GuzzleHttp\\Handler\\CurlHandler->__invoke()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Handler/Proxy.php(51): Closure$GuzzleHttp\\Handler\\Proxy::wrapSync()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/PrepareBodyMiddleware.php(66): Closure$GuzzleHttp\\Handler\\Proxy::wrapStreaming()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Middleware.php(30): GuzzleHttp\\PrepareBodyMiddleware->__invoke()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/RedirectMiddleware.php(70): Closure$GuzzleHttp\\Middleware::cookies#2()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Middleware.php(57): GuzzleHttp\\RedirectMiddleware->__invoke()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/HandlerStack.php(67): Closure$GuzzleHttp\\Middleware::httpErrors#2()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Client.php(277): GuzzleHttp\\HandlerStack->__invoke()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Client.php(100): GuzzleHttp\\Client->transfer()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/guzzlehttp/guzzle/src/Client.php(106): GuzzleHttp\\Client->sendAsync()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/google/auth/src/HttpHandler/Guzzle6HttpHandler.php(34): GuzzleHttp\\Client->send()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/vendor/google/auth/src/OAuth2.php(492): Google\\Auth\\HttpHandler\\Guzzle6HttpHandler->__invoke()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php(191): Google\\Auth\\OAuth2->fetchAuthToken()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/google-api-php-client/src/Google/Client.php(170): Google_Client->fetchAccessTokenWithAuthCode()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/class.phpmaileroauthgoogle.php(99): Google_Client->authenticate()
    
    /home/***/public_html/wp-content/plugins/gmail-smtp/main.php(144): GmailXOAuth2::resetCredentials()
    
    /home/***/public_html/wp-includes/class-wp-hook.php(298): GMAIL_SMTP->plugin_init()
    
    /home/***/public_html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters()
    
    /home/***/public_html/wp-includes/plugin.php(453): WP_Hook->do_action()
    
    /home/***/public_html/wp-settings.php(448): do_action()
    
    /home/***/public_html/wp-config.php(105): include()
    
    /home/***/public_html/wp-load.php(37): include()
    
    /home/***/public_html/wp-admin/admin.php(31): include()
    
    /home/***/public_html/wp-admin/options-general.php(10): include()
    Plugin Author Noor Alam

    (@naa986)

    The plugin was using Google API Client version 1.1.5. I recently updated it to 2.2.0 since it was conflicting with so many other plugins that use the latest version of the client library.

    Hi,

    Did the update resolve the issue? How can I update?

    Thanks
    Rotimi

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘1.1.5 500 Server Error’ is closed to new replies.