WordPress.org

Ready to get started?Download WordPress

Forums

Disqus Comment System
Unable to connect to the Disqus API servers (4 posts)

  1. shakensoul
    Member
    Posted 1 year ago #

    I am trying to install disqus, receiving this message constantly. Deactivated all plugins, but no good.

    Below is the debug information


    URL: http://www.xxxxx PHP Version: 5.3.22 Version: 3.5.1
    Active Theme: URLOpen Method: curl
    Plugin Version: 2.74
    Settings:

    dsq_is_installed:
    _disqus_sync_lock:
    _disqus_sync_post_ids:
    disqus_active:
    disqus_forum_url:
    disqus_api_key:
    disqus_user_api_key:
    disqus_replace:
    disqus_cc_fix:
    disqus_partner_key:
    disqus_public_key:
    disqus_secret_key:
    disqus_sso_button:
    disqus_sso_icon:
    disqus_manual_sync:
    disqus_disable_ssr:
    disqus_last_comment_id:
    disqus_version:

    Plugins:

    Admin Post Navigation 1.7.2
    Akismet 2.5.7
    Better WP Security 3.4.9
    Contact Form 7 3.3.3
    Contact Form 7 reCAPTCHA extension 0.0.12
    Disqus Comment System 2.74 (active)
    Lightbulb Save and Close 1.0
    Regenerate Thumbnails 2.2.4
    Shortcodes Ultimate 3.9.5
    Simple Local Avatars 1.3.1
    Social PopUP - Google+, Facebook and Twitter popup 1.4.1
    TablePress 0.9-RC
    TinyMCE Advanced 3.4.9
    WooCommerce 2.0.5
    WooCommerce Facebook Like Share Button 2.0.11
    WooCommerce Grid / List toggle 0.3.2
    WooCommerce Menu Cart 2.0.1
    WooSidebars 1.2.2
    WordPress Importer 0.6.1
    WordPress SEO 1.4.6
    WP-Mail-SMTP 0.9.1
    WP-reCAPTCHA 3.1.6
    ZillaShortcodes 1.1

    http://wordpress.org/extend/plugins/disqus-comment-system/

  2. samson2
    Member
    Posted 11 months ago #

    switch to the alternative function _dsq_fsockopen_urlopen().

    - open /wp-content/plugins/disqus-comment-system/lib/api/disqus/url.php and comment curl code :

    [code]
    /**
    * Wrapper to provide a single interface for making an HTTP request.
    *
    * Attempts to use cURL, fopen(), or fsockopen(), whichever is available
    * first.
    *
    * @param string $url URL to make request to.
    * @param array $postdata (optional) If postdata is provided, the request
    * method is POST with the key/value pairs as
    * the data.
    * @param array $file (optional) Should provide associative array
    * with two keys: name and field. Name should
    * be the name of the file and field is the name
    * of the field to POST.
    */
    function dsq_urlopen($url, $postdata=false, $file=false) {
    $response = array(
    'data' => '',
    'code' => 0
    );

    if($file) {
    extract($file, EXTR_PREFIX_ALL, 'file');
    }
    if(empty($file_name) || empty($file_field)) {
    $file_name = false;
    $file_field = false;
    }

    //
    /*
    // Try curl, fsockopen, fopen + stream (PHP5 only), exec wget
    if(function_exists('curl_init')) {
    if (!function_exists('curl_setopt_array')) {
    function curl_setopt_array(&$ch, $curl_options)
    {
    foreach ($curl_options as $option => $value) {
    if (!curl_setopt($ch, $option, $value)) {
    return false;
    }
    }
    return true;
    }
    }
    _dsq_curl_urlopen($url, $postdata, $response, $file_name, $file_field);
    } else if(ini_get('allow_url_fopen') && function_exists('stream_get_contents')) {
    _dsq_fopen_urlopen($url, $postdata, $response, $file_name, $file_field);
    } else {
    // TODO: Find the failure condition for fsockopen() (sockets?)
    _dsq_fsockopen_urlopen($url, $postdata, $response, $file_name, $file_field);
    }
    */
    //open urls with fsockopen
    _dsq_fsockopen_urlopen($url, $postdata, $response, $file_name, $file_field);

    // returns array with keys data and code (from headers)
    return $response;
    }

    [/code]

  3. l576
    Member
    Posted 8 months ago #

    does not help...(

  4. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    @l576 - start your own thread if you need help

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.