• Resolved vujone

    (@vujone)


    Click on Authorize plugin
    Authenticate Google page
    Get code, paste it in.
    Blank page, no activity.

    Last Error detected

    Last Error: 2017-02-03 22:14:02: exception ‘Google_IO_Exception’ with message ‘HTTP Error: Unable to connect: ‘fopen(https://accounts.google.com/o/oauth2/token): failed to open stream: No such file or directory” in /var/www/html/www/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/IO/Stream.php:106
    Stack trace:
    #0 /var/www/html/www/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/IO/Abstract.php(135): Google_IO_Stream->executeRequest(Object(Google_Http_Request))
    #1 /var/www/html/www/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/Auth/OAuth2.php(113): Google_IO_Abstract->makeRequest(Object(Google_Http_Request))
    #2 /var/www/html/www/wp-content/plugins/google-analytics-dashboard-for-wp/tools/src/Google/Client.php(133): Google_Auth_OAuth2->authenticate(‘4/DHTxQXzwa5PXE…’)
    #3 /var/www/html/www/wp-content/plugins/google-analytics-dashboard-for-wp/admin/settings.php(732): Google_Client->authenticate(‘4/DHTxQXzwa5PXE…’)
    #4 [internal function]: GADWP_Settings::general_settings(”)
    #5 /var/www/html/www/wp-includes/class-wp-hook.php(298): call_user_func_array(Array, Array)
    #6 /var/www/html/www/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #7 /var/www/html/www/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #8 /var/www/html/www/wp-admin/admin.php(222): do_action(‘toplevel_page_g…’)
    #9 {main}

    Error Details

    Error Details: None

    Cleared caches, no other plugins running.

    Any help or pointers would be greatly appreciated.
    With best regards
    Vuk

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Contact your hosting provider and ask them to enable PHP cURL with SSL support for your account. Minimum requirements are listed here.

    Thread Starter vujone

    (@vujone)

    Hi Alin,

    Thanks for your reply. My website has cURL enabled. Is there a specific version I need to ask for?

    This is what’s installed currently:
    http://owlsystems.co.uk/php.php

    All the best
    V

    Thread Starter vujone

    (@vujone)

    Hi Alin

    I still get the same authentication problem – blank page when I try to save google code for plugin.

    This is what my php -i returns, cURL enabled with SSL

    cURL support => enabled
    cURL Information => 7.29.0
    Age => 3
    Features
    AsynchDNS => Yes
    CharConv => No
    Debug => No
    GSS-Negotiate => Yes
    IDN => Yes
    IPv6 => Yes
    krb4 => No
    Largefile => Yes
    libz => Yes
    NTLM => Yes
    NTLMWB => Yes
    SPNEGO => No
    SSL => Yes
    SSPI => No
    TLS-SRP => No
    Protocols => dict, file, ftp, ftps, gopher, http, https, imap, imaps, ldap, ldaps, pop3, pop3s, rtsp, scp, sftp, smtp, smtps, telnet, tftp
    Host => x86_64-redhat-linux-gnu
    SSL Version => NSS/3.21 Basic ECC
    ZLib Version => 1.2.7
    libSSH Version => libssh2/1.4.3

    Testpage returns results fine:
    <?php

    $ch = curl_init(‘https://www.google.co.uk&#8217;);
    curl_exec($ch);
    curl_close($ch);

    Any help or pointers would be greatly appreciated.

    With best regards
    Vuk

    Hi,

    Thanks for the above details. Can you run and post the results of this php script:

    if (function_exists('curl_version') && function_exists('curl_exec') ){
    	echo "cURL: OK";
    } else {
    	echo "cURL: NOK";
    }
    
    if  (isset($_SERVER['SERVER_SOFTWARE']) && strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== false) {
        echo "Google App Engine: Yes";
    } else {
        echo "Google App Engine: No";
    }
    Thread Starter vujone

    (@vujone)

    Hi Alin,

    I must apologise, it’s all my providers fault!
    They’ve been testing PHP run-time, not PHP Apache Module.
    cURL in PHP apache module wasn’t present; now that it is, authentication works exactly as it should.

    I apologise again for wasting your time like this.

    Otherwise, an excellent plug in:)!

    No worries, glad to see it working!

    • This reply was modified 9 years, 4 months ago by Alin Marcu.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Authentication problem’ is closed to new replies.