Aleksey, Thank you. I made the suggested change and as expected I am now getting the string "An error occured" (spelling of occurred is incorrect in the result.php (line 230) file).
Marcus, Thank you. I am able to query twitter user timelines from the browser, so I assume that this is not a twitter issue. http://twitter.com/statuses/user_timeline.xml Does anyone have some examples of this code working? Any additional help is appreciated Jack -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Aleksey Zapparov Sent: Tuesday, June 15, 2010 8:00 AM To: Jack Houghton Cc: [email protected] Subject: Re: [fw-general] Zend_Service_Twitter - Notice: Undefined offset: 0 in \library\Zend\Rest\Client\Result.php on line 232 Seems like some kind of error occured. And due to some kind of bogus in Zend\Rest\Client\Result.php you are receiving such error. I'm not really familiar with this component, so I don't know which solution is more correct. Basically, you can simply change 229'th line of this file and fix (replace) condition (see v1.patch): if (sizeof($result) > 1) { with: if (sizeof($result) != 1) { But if empty $results array is not an error, than it's better to use v2.patch instead. 2010/6/15 Jack Houghton <[email protected]>: > Actually, I am using Zend FW 1.10.5 and PHP 5.3.0. > > -----Original Message----- > From: Jack Houghton [mailto:[email protected]] > Sent: Tuesday, June 15, 2010 6:36 AM > To: [email protected] > Subject: RE: [fw-general] Zend_Service_Twitter - Notice: Undefined offset: 0 > in \library\Zend\Rest\Client\Result.php on line 232 > > Thanks Jan. > > Also, for total disclosure, I am running on Windows 7 in my development > environment. I will be running on Linux in production. > > Thanks > Jack > > -----Original Message----- > From: Jan Pieper [mailto:[email protected]] > Sent: Tuesday, June 15, 2010 5:11 AM > To: [email protected] > Subject: Re: [fw-general] Zend_Service_Twitter - Notice: Undefined offset: 0 > in \library\Zend\Rest\Client\Result.php on line 232 > >>> I am using the Zend Framework 1.10. > > ;) > > with regards, > jan > > >> Which version are you using? Thanks. >> >> Paddy >> >> Sent from my iPhone >> >> On 15 Jun 2010, at 02:50, "Jack Houghton" <[email protected] >> <mailto:[email protected]>> wrote: >> >>> I am receiving the following error when trying to authenticate to >>> twitter using Zend_Service_Twitter: >>> >>> >>> >>> *Notice*: Undefined offset: 0 in* \library\Zend\Rest\Client\Result.php >>> *on line *232*** >>> >>> >>> >>> I am using the Zend Framework 1.10. >>> >>> >>> >>> The following is the code snippet: >>> >>> >>> >>> try >>> >>> { >>> >>> $this->twitter = new Zend_Service_Twitter( 'notbaggage', >>> '################' ); >>> >>> } >>> >>> catch(Exception $e) >>> >>> { >>> >>> echo "<h6>" . $e . "</h6>"; >>> >>> } >>> >>> >>> >>> Any help is appreciated >>> >>> Jack >>> >>> >>> > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.829 / Virus Database: 271.1.1/2938 - Release Date: 06/14/10 > 14:35:00 > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.829 / Virus Database: 271.1.1/2938 - Release Date: 06/14/10 > 14:35:00 > > -- Sincerely yours, Aleksey V. Zapparov A.K.A. ixti FSF Member #7118 Mobile Phone: +34 617 179 344 Homepage: http://www.ixti.ru JID: [email protected] *Origin: Happy Hacking! No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.829 / Virus Database: 271.1.1/2938 - Release Date: 06/14/10 14:35:00
