Page 4 of 23 FirstFirst ... 2345614 ... LastLast
Results 31 to 40 of 230
  1. #31
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    166
    Plugin Contributions
    3

    Default Re: AutoTweet [support]

    hmm i'm looking into it.

    and you are running php 5/
    and have cURL installed?

  2. #32
    Join Date
    Aug 2009
    Location
    London
    Posts
    106
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    curl
    cURL support enabled
    cURL Information libcurl/7.19.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

    PHP Version 5.2.10

    Zen Cart 1.3.8a

  3. #33
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    166
    Plugin Contributions
    3

    Default Re: AutoTweet [support]

    ok lets try this;

    Create a new file called: test.php
    paste this code in it
    <?php
    $url = "http://www.test.com";
    $aParameters['login'] = 'username';
    $aParameters['apiKey'] = 'R_f5003d838cfcc1498a0e43';
    $aParameters['version'] = '2.0.1';
    $queryString = '';
    foreach($aParameters as $key => $value) $queryString .= '&'. $key .'='. urlencode(utf8_encode($value));
    $queryString = trim($queryString, '&');
    $url .= '?'. $queryString;
    $url = 'http://api.bit.ly/'. $url;
    $options[CURLOPT_URL] = $url;
    $options[CURLOPT_PORT] = 80;
    $options[CURLOPT_FOLLOWLOCATION] = true;
    $options[CURLOPT_RETURNTRANSFER] = true;
    $options[CURLOPT_TIMEOUT] = 60;
    $curl = curl_init();
    curl_setopt_array($curl, $options);
    $response = curl_exec($curl);
    $headers = curl_getinfo($curl);
    $errorNumber = curl_errno($curl);
    $errorMessage = curl_error($curl);
    curl_close($curl);
    print_r($headers);
    ?>
    enter your bit.ly username and api key inplace of the ones shown in red.
    upload the file to your server.
    run it from your browser.

    if all goes well, it should spit out an array, showing us what your headers look like.
    if not, you should get a similar error, either way let me know what you get.

  4. #34
    Join Date
    Aug 2009
    Location
    London
    Posts
    106
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    Hi Jamie
    Thanks for help , here is the result of http://pcitshop.com/test.php

    Array ( [url] => http://api.bit.ly/http://www.test.com?login=my user name was here&apiKey=R_my key was here&version=2.0.1 [content_type] => text/html [http_code] => 403 [header_size] => 155 [request_size] => 139 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.131384 [namelookup_time] => 0.009571 [connect_time] => 0.069427 [pretransfer_time] => 0.069431 [size_upload] => 0 [size_download] => 169 [speed_download] => 1286 [speed_upload] => 0 [download_content_length] => 169 [upload_content_length] => -1 [starttransfer_time] => 0.131309 [redirect_time] => 0 )

    regards

  5. #35
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    166
    Plugin Contributions
    3

    Default Re: AutoTweet [support]

    You're being blocked.

    the [http_code] => 403 means that api.bit.ly is receiving your request but for whatever reason they're denying. I'm not sure why this is happening, they do black list sites but i already checked you're not blacklisted. It's possible that maybe you've reached some sort of limit, but you'd have to be a pretty heavy bit.ly user. more reason 403 errors occur: http://en.wikipedia.org/wiki/HTTP_403

    try pasting this url into your browsers address bar:
    PHP Code:
    http://api.bit.ly/shorten?version=2.0.1&longUrl=http://bbc.com&login=username&apiKey=R_f5003d838cf6d2a0e4 
    (obviously change the username and apikey with your bit.ly info)

    you should get a string of text with an error code. if it works your error code should be 0 and you should see a shortened url for bbc.com if you get a different message it's probably your IP or your username

    You could also try creating a new bitly account just to be safe and seeing if that works.

    other than that you could disable the bitly portion of the script. however you run the chance of your tweets being over 140 chars. however you could just have something like "new product available "product name" @ http://pcitshop.com" posted to twitter.

    I don't know why else you'd get that code. Sorry, it has to do with the headers being sent for json but that isn't really my area of expertise.
    Last edited by jamielife; 5 Mar 2010 at 12:37 AM.

  6. #36
    Join Date
    Aug 2009
    Location
    London
    Posts
    106
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    i got this result from above test you mentioned

    { "errorCode": 0, "errorMessage": "", "results": { "http://bbc.com": { "hash": "5KM2", "shortCNAMEUrl": "http://bit.ly/aET8Me", "shortKeywordUrl": "", "shortUrl": "http://bit.ly/aET8Me", "userHash": "aET8Me" } }, "statusCode": "OK" }


    plz let me know what to do next?

    Regards

  7. #37
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    166
    Plugin Contributions
    3

    Default Re: AutoTweet [support]

    is json enabled? you can find out by typing:
    phpinfo();
    into a blank php file and scrolling down to json.

  8. #38
    Join Date
    Aug 2009
    Location
    London
    Posts
    106
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    yes it is

    json
    json support enabled
    json version 1.2.1

  9. #39
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    166
    Plugin Contributions
    3

    Default Re: AutoTweet [support]

    then i'm at a loss.

    replace lines 128 through 148 of update_product.php with:
    // bof Auto Tweet.
    include_once 'twitter/twitter.php';

    // CHANGE: path to your store (i.e. http://example.com/store
    $myStoreUrl = 'http://pcitshop.com';
    // CHANGE: Your stores Twitter username and password
    $twitter = new Twitter("username","password");
    //build full link to product
    $produrl = $myStoreUrl . '/index.php?main_page=product_info&cPath=' . $current_category_id . '&products_id=' . $products_id ;
    // send tweet.
    $prodname = $sql_data_array['products_name'];
    $mytweet = $prodname . ' now available at ' . $produrl;
    $twitter->updateStatus($mytweet);
    // eof Auto-Tweet
    and see if it updates your twitter now. Basically this does the same thing without the link bit.ly shortening should be fine so long as your products name's arent too long.

  10. #40
    Join Date
    Aug 2009
    Location
    London
    Posts
    106
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    yes its working now , Thanks for help

 

 
Page 4 of 23 FirstFirst ... 2345614 ... LastLast

Similar Threads

  1. PHP 5.3 Support on 1.3.7
    By DogTags in forum General Questions
    Replies: 3
    Last Post: 4 Aug 2010, 03:53 PM
  2. PHP 5.3 Support for v1.3.8/a
    By DrByte in forum Zen Cart Release Announcements
    Replies: 2
    Last Post: 9 Nov 2009, 08:38 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •