anuj607 / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Problem with variable in buzz example #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to  http://localhost/google-api-php-client/examples/buzz
2. Click on the Get the consumption stream or Get the public stream links

What is the expected output? What do you see instead?

The expected output is the consumption stream or the public stream instead 
there is the following error:

Notice: Undefined variable: client in 
/var/www/google-api-php-client/examples/buzz/getConsumptionStream.php on line 
33 Call Stack: 0.0003 629104 1. {main}() 
/var/www/google-api-php-client/examples/buzz/getConsumptionStream.php:0 Fatal 
error: Call to a member function setApplicationName() on a non-object in 
/var/www/google-api-php-client/examples/buzz/getConsumptionStream.php on line 
33 Call Stack: 0.0003 629104 1. {main}() 
/var/www/google-api-php-client/examples/buzz/getConsumptionStream.php:0

What version of the product are you using? On what operating system?

google-api-php-client-0.4.4.tar.gz

Ubuntu 10.04

Please provide any additional information below.

I change the name of the variable on line 33 from $client to $apiClient that is 
what is defined on line 32 and everything works.

Original issue reported on code.google.com by olive...@gmail.com on 15 Sep 2011 at 8:29

GoogleCodeExporter commented 9 years ago
I can confirm this issue and the solution. Note it also affects the other 
examples:

fetchPeople.php on line 8
fetchActivities.php on line 8
createPost.php on line 7
getPublicStream.php on line 33

Original comment by lazyk...@gmail.com on 16 Sep 2011 at 4:57

GoogleCodeExporter commented 9 years ago
Thank you for bringing this to our attention. It should be fixed in trunk.

Original comment by chiragsh...@gmail.com on 16 Sep 2011 at 5:24