Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • glenng Friend
    #184613

    I have checked settings again and again, all ok… And “Enabled cache” section is NO now but I can’t see anything. Any suggestion?

    Luna Garden Moderator
    #482332

    Hello Glen,

    Can you show me your capture of JA Twitter setting on you site ? And show how JA Twitter display on you front-end.

    I have checked JA Twitter Module on Mero, change the parameter, but JA Twitter module still works well.

    glenng Friend
    #482566

    Thank you for your reply. Here is the settings:
    (I use a different screen/twitter name)


    1. egeg
    2. tw
    Luna Garden Moderator
    #482673

    Hello,

    In your setting, parameter Twitter Screen Name must be a valid name in Twitter system, not text username.

    Change the username and try to check Twitter again.

    glenng Friend
    #485812

    It was just an example. I use a twitter username but it doesn’t work.

    Luna Garden Moderator
    #485928

    <em>@glenng 363528 wrote:</em><blockquote>It was just an example. I use a twitter username but it doesn’t work.</blockquote>

    PM me your Admin info, and FTP account, includes this forum link to follow, I will check the problem for you.

    glenng Friend
    #486066

    Thanks I just sent you.

    Luna Garden Moderator
    #486325

    Thanks for the info.

    I get your problem, will ask the developer to check about this and reply you soon.

    dieudonne Friend
    #486386

    Same problem for us.
    If you have a solution ??

    dieudonne Friend
    #486542

    Hello,

    any news about this bug ?

    Ninja Lead Moderator
    #486573

    <em>@glenng 363904 wrote:</em><blockquote>Thanks I just sent you.</blockquote>

    Hi glenng,

    I have spent lot of my time to check your problem. When i debug to function makeRequest($url, $post = array()) function on this file:modules/mod_jatwitter/jatwitter.php


    function makeRequest($url, $post = array())
    {
    if ($this->_iscurlinstalled()) {
    //use curl to get content from url
    $handle = curl_init();

    curl_setopt($handle, CURLOPT_URL, $url);

    curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($handle, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
    curl_setopt($handle, CURLOPT_TIMEOUT, 400);

    if ($this->_auth != '') {
    curl_setopt($handle, CURLOPT_USERPWD, $this->_auth);
    }
    curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($handle, CURLOPT_HTTPHEADER, array('Expect:'));
    $response = curl_exec($handle);
    $this->_status = curl_getinfo($handle, CURLINFO_HTTP_CODE);
    curl_close($handle);
    if ($this->_format == 'json') {
    $this->_output = strstr($response, "[{");
    if (empty($this->_output)) {
    $this->_output = strstr($response, "{");
    }
    }
    $pos = strpos($response, '<?xml');
    if ($pos) {
    $this->_output = substr($response, $pos, strlen($response));
    }
    return;
    } else {
    $response = '';
    $out = parse_url($url);
    $errno = $errstr = '';
    $host = $out['host'];
    $path = $out['path'] . '?' . $out['query'];
    $header = "GET $path HTTP/1.1rn";
    $header .= "Host: $hostrn";
    $header .= "Content-Type: application/x-www-form-urlencodedrn";
    $header .= "Accept-Encoding: nonern";

    if ($this->_auth != '') {
    $header .= "Authorization: Basic " . base64_encode("$this->_auth") . "rn";
    }
    $header .= "Connection: Closernrn";

    $sock = fsockopen($host, 80, $errno, $errstr, 400);
    if (!$sock) {
    return null;
    } else {
    fwrite($sock, $header);
    while (!feof($sock)) {
    $response .= fgets($sock, 128);
    }
    fclose($sock);
    if ($this->_format == 'json') {
    $this->_output = strstr($response, "[{");
    if (empty($this->_output)) {
    $this->_output = strstr($response, "{");
    }
    $this->_status = 200;
    }
    $pos = strpos($response, '<?xml');
    if ($pos) {
    $this->_output = substr($response, $pos, strlen($response));
    $this->_status = 200;
    }
    return true;
    }
    }
    }

    Data connect to API Twitter always return to NULL data, you need to contact with system admin check it, maybe your hosting is disconnecting you from Twitter.

    Regards

    glenng Friend
    #486611

    All right, thanks a lot. I’ll contact them.

    glenng Friend
    #486613

    This is what they told me:

    “Can you contact him and ask if he using curl to connect to it. As we had an issue on curl connection being blocked but we are releasing an update later today that should fix this and best to check if it works after.”

    Ninja Lead Moderator
    #486614

    <em>@glenng 364626 wrote:</em><blockquote>This is what they told me:

    “Can you contact him and ask if he using curl to connect to it. As we had an issue on curl connection being blocked but we are releasing an update later today that should fix this and best to check if it works after.”
    </blockquote>

    Great, hope they will fix as soon

Viewing 14 posts - 1 through 14 (of 14 total)

This topic contains 14 replies, has 4 voices, and was last updated by  Ninja Lead 11 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum