Hello!

I got this problem only if i set bit.ly as shorten service in my profile. I cant attach anything. I dont get errors on the browser, the file is uploaded ok in /files/ but the notice is not posted at all. Then if i check on apache logs i got this:


[Wed Oct 14 21:19:03 2009] [error] [client 190.9.9.85] PHP Warning: current() [<a href='function.current'>function.current</a>]: Passed variable is not an array or object in /home/pipio/public_html/lib/ util.php on line 1392, referer: http://pipio.com.ar/ [Wed Oct 14 21:19:03 2009] [error] [client 190.9.9.85] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/pipio/public_html/lib/util.php:1392) in /home/pipio/ public_html/lib/htmloutputter.php on line 109, referer: http://pipio.com.ar/ [Wed Oct 14 21:19:03 2009] [error] [client 190.9.9.85] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/pipio/public_html/lib/util.php:1392) in /home/pipio/ public_html/lib/error.php on line 73, referer: http://pipio.com.ar/

Lines in util.php

1390     case 'bit.ly':
1391 curl_setopt($curlh, CURLOPT_URL, 'http://bit.ly/api? method=shorten&long_url='.urlencode($long_url)); 1392 $short_url = current(json_decode(curl_exec($curlh))- >results)->hashUrl;
1393     break;


Can i have something wrong in my server?

Thanks
Cristian

_______________________________________________
StatusNet-dev mailing list
StatusNet-dev@lists.status.net
http://lists.status.net/mailman/listinfo/statusnet-dev

Reply via email to