Page 1 of 5 123 ... LastLast
Results 1 to 10 of 264

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    160
    Plugin Contributions
    3

    Default AutoTweet [support]

    Figured I'd go head and start a thread for the AutoTweet mod I uploaded that was recently made available at http://www.zen-cart.com/index.php?ma...oducts_id=1523.

    This simply auto updates your twitter followers everytime you add a product. The product name and shortened (bit.ly) link to the product are automatically tweeted without you ever having to leave the zencart admin. It also offers link tracking stats as well (through bit.ly).

    *Note: you will need to have Curl installed.
    *You will also need a free bit.ly api key (though this is optional).
    *More info available in readme.
    *Also I forgot to mention it in the readme, but this mod is shared under GPL licensing terms. Do whatever you want with it.


    ***Remember always backup your files before installing anything.

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: AutoTweet [support]

    Thanks for a great mod. Installation was simple and went without glitch. Useful tracking stats on Bit.ly

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

    Default Re: AutoTweet [support]

    Good, glad you liked it.

  4. #4
    Join Date
    May 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    I get the following after adding a product:

    Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/knivdavi/public_html/adminfolder/twitter/twitter.php on line 56

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

    Default Re: AutoTweet [support]

    what version of PHP are you running?

  6. #6
    Join Date
    May 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    It's 1.3.8a

  7. #7
    Join Date
    Feb 2010
    Posts
    1
    Plugin Contributions
    0

    Default Re: AutoTweet [support]

    Hi, I have installed the autotweet mod after changing the update_product.php file but get the following errors:

    Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /usr/www/users/soundoa/admin/twitter/bitly.php on line 141
    { "errorCode": 0, "errorMessage": "", "results": { "http://www.soundonline.co.za/index.php?main_page=product_info&cPath=93&products_id=427": { "hash": "cxFYvi", "shortCNAMEUrl": "http://bit.ly/9UmxW9", "shortKeywordUrl": "", "shortUrl": "http://bit.ly/9UmxW9", "userHash": "9UmxW9" } }, "statusCode": "OK" }
    Fatal error: Uncaught exception 'BitlyException' with message 'Invalid JSON-response' in /usr/www/users/soundoa/admin/twitter/bitly.php:196 Stack trace: #0 /usr/www/users/soundoa/admin/twitter/bitly.php(382): Bitly->doCall('shorten', Array) #1 /usr/www/users/soundoa/admin/includes/modules/update_product.php(146): Bitly->shorten('http://www.soun...') #2 /usr/www/users/soundoa/admin/product.php(62): require('/usr/www/users/...') #3 {main} thrown in /usr/www/users/soundoa/admin/twitter/bitly.php on line 196

    I have PHP5 and cURL enabled.

    I have no idea how to fix this. Please help.

  8. #8
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    160
    Plugin Contributions
    3

    Default Re: AutoTweet [support]

    I'm looking into this. In the meantime;

    1. Make sure your host's PHP configuration in not in safe mode (php.ini).
    2. Is open_basedir set to correct directories?

    You make have to contact your hosting co. to verify.

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

    Default Re: AutoTweet [support]

    It looks like CURLOPT_FOLLOWLOCATION doesn't work with open_basedir on. Your host may have to turn this off

  10. #10
    Join Date
    Dec 2009
    Location
    Richmond, VA
    Posts
    160
    Plugin Contributions
    3

    Default Re: AutoTweet [support]

    fixed this.
    You have to edit both bitly.php and twitter.php

    on line 133 bitly.php and line 158 of twitter.php comment out
    PHP Code:
    $options[CURLOPT_FOLLOWLOCATION] = true
    so that it looks like:
    PHP Code:
    //$options[CURLOPT_FOLLOWLOCATION] = true; 
    then somewhere around line 136 on bitly.php and line 161 on twitter.php add:
    PHP Code:
    if ( ini_get('open_basedir') == '' ) {
    $options[CURLOPT_FOLLOWLOCATION] = true;

    Everything should work fine. (at least it did on my local machine)

 

 
Page 1 of 5 123 ... LastLast

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. v151 Autotweet Errors/Not Posting
    By Little Red Crane in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 13 Mar 2014, 04:56 PM
  3. is there any AutoTweet addon or autofacebook addon work well with EasyPopulate?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 5 Dec 2010, 03:17 AM

Posting Permissions

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